summaryrefslogtreecommitdiff
path: root/sysutils/gnomecontrolcenter2/files/patch-capplets_mouse_gnome-mouse-properties.c
blob: 32c81dfdebba81d6333fdfea2326f136084b3144 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- capplets/mouse/gnome-mouse-properties.c.orig	Mon Sep  5 17:05:46 2005
+++ capplets/mouse/gnome-mouse-properties.c	Mon Sep  5 17:06:23 2005
@@ -658,7 +658,8 @@
 
 	gchar **iterator = NULL;
 	gchar **paths = NULL;
-
+	const gchar *xpaths;
+	
 	GConfClient* client = gconf_client_get_default();
 	GtkListStore* store = GTK_LIST_STORE(gtk_tree_model_sort_get_model(model));
 	gchar* current_theme = gconf_client_get_string(client, CURSOR_THEME_KEY, NULL);
@@ -666,7 +667,7 @@
 	g_object_unref(client);
 	client = NULL;
 
-	const gchar *xpaths = g_getenv ("XCURSOR_PATH");
+	xpaths = g_getenv ("XCURSOR_PATH");
 
 	if (xpaths != NULL) {
 		paths = g_strsplit (xpaths, ":", 0);