From 2f01609f26023723a5efd09b1e8f1d8f5caf76fb Mon Sep 17 00:00:00 2001 From: ahze Date: Mon, 5 Sep 2005 21:45:11 +0000 Subject: - Fix build on 4.x git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4729 df743ca5-7f9a-e211-a948-0013205c9059 --- .../patch-capplets_mouse_gnome-mouse-properties.c | 21 +++++++++++++++++++++ .../patch-capplets_mouse_gnome-mouse-properties.c | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 sysutils/gnome-control-center/files/patch-capplets_mouse_gnome-mouse-properties.c create mode 100644 sysutils/gnomecontrolcenter2/files/patch-capplets_mouse_gnome-mouse-properties.c diff --git a/sysutils/gnome-control-center/files/patch-capplets_mouse_gnome-mouse-properties.c b/sysutils/gnome-control-center/files/patch-capplets_mouse_gnome-mouse-properties.c new file mode 100644 index 000000000..32c81dfde --- /dev/null +++ b/sysutils/gnome-control-center/files/patch-capplets_mouse_gnome-mouse-properties.c @@ -0,0 +1,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); diff --git a/sysutils/gnomecontrolcenter2/files/patch-capplets_mouse_gnome-mouse-properties.c b/sysutils/gnomecontrolcenter2/files/patch-capplets_mouse_gnome-mouse-properties.c new file mode 100644 index 000000000..32c81dfde --- /dev/null +++ b/sysutils/gnomecontrolcenter2/files/patch-capplets_mouse_gnome-mouse-properties.c @@ -0,0 +1,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); -- cgit v1.2.3