[Galago-commits] r3023 - in trunk/notification-daemon/src: capplet daemon

galago-commits at freedesktop.org galago-commits at freedesktop.org
Thu Nov 20 02:49:57 PST 2008


Author: chipx86
Date: 2008-11-20 02:49:56 -0800 (Thu, 20 Nov 2008)
New Revision: 3023

Modified:
   trunk/notification-daemon/src/capplet/notification-properties.c
   trunk/notification-daemon/src/daemon/engines.c
Log:
Some compiler error/warning fixes.


Modified: trunk/notification-daemon/src/capplet/notification-properties.c
===================================================================
--- trunk/notification-daemon/src/capplet/notification-properties.c	2008-11-20 10:44:22 UTC (rev 3022)
+++ trunk/notification-daemon/src/capplet/notification-properties.c	2008-11-20 10:49:56 UTC (rev 3023)
@@ -397,7 +397,7 @@
 							   GTK_DIALOG_DESTROY_WITH_PARENT,
 							   GTK_MESSAGE_ERROR,
 							   GTK_BUTTONS_CLOSE,
-							   message);
+							   "%s", message);
 	gtk_dialog_run(GTK_DIALOG(d));
 	gtk_widget_destroy(d);
 }

Modified: trunk/notification-daemon/src/daemon/engines.c
===================================================================
--- trunk/notification-daemon/src/daemon/engines.c	2008-11-20 10:44:22 UTC (rev 3022)
+++ trunk/notification-daemon/src/daemon/engines.c	2008-11-20 10:49:56 UTC (rev 3023)
@@ -115,6 +115,15 @@
 }
 
 static void
+theme_engine_unref(ThemeEngine *engine)
+{
+	engine->ref_count--;
+
+	if (engine->ref_count == 0)
+		destroy_engine(engine);
+}
+
+static void
 theme_changed_cb(GConfClient *client, guint cnxn_id, GConfEntry *entry,
 				 gpointer user_data)
 {
@@ -167,15 +176,6 @@
 	return active_engine;
 }
 
-static void
-theme_engine_unref(ThemeEngine *engine)
-{
-	engine->ref_count--;
-
-	if (engine->ref_count == 0)
-		destroy_engine(engine);
-}
-
 GtkWindow *
 theme_create_notification(UrlClickedCb url_clicked_cb)
 {



More information about the galago-commits mailing list