gnome-power-manager r3161 - in trunk: . src



Author: rhughes
Date: Thu Jan 15 16:37:57 2009
New Revision: 3161
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3161&view=rev

Log:
2009-01-15  Richard Hughes  <richard hughsie com>

* src/gpm-prefs-core.c: (pk_prefs_set_defaults_cb):
Fix build when building self checks.


Modified:
   trunk/ChangeLog
   trunk/src/gpm-prefs-core.c

Modified: trunk/src/gpm-prefs-core.c
==============================================================================
--- trunk/src/gpm-prefs-core.c	(original)
+++ trunk/src/gpm-prefs-core.c	Thu Jan 15 16:37:57 2009
@@ -972,10 +972,11 @@
 static void
 pk_prefs_set_defaults_cb (PolKitGnomeAction *default_action, GpmPrefs *prefs)
 {
+	GConfClient *client;
 	DBusGProxy *proxy;
 	DBusGConnection *connection;
 	GError *error;
-	gchar *keys[5] = {
+	const gchar *keys[5] = {
 		"/apps/gnome-power-manager/actions",
 		"/apps/gnome-power-manager/ui",
 		"/apps/gnome-power-manager/buttons",
@@ -1000,7 +1001,6 @@
 		return;
 	}
 
-	GConfClient *client;
 	client = gconf_client_get_default ();
 	gconf_client_suggest_sync (client, NULL);
 	g_object_unref (client);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]