[maemo-commits] [maemo-commits] r14124 - in projects/haf/trunk/hildon-desktop: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Sep 26 17:38:03 EEST 2007
Author: moimart
Date: 2007-09-26 17:38:01 +0300 (Wed, 26 Sep 2007)
New Revision: 14124

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/hd-panel-window-dialog.c
Log:
2007-09-26  Moises Martinez  <moises.martinez at nokia.com>

        * src/hd-panel-window-dialog.c:
        (hd_panel_window_dialog_notify_condition):
        - Get the condition anyways and send it off. Fixes: NB#70308
	* ChangeLog updated.



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-26 13:46:47 UTC (rev 14123)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-26 14:38:01 UTC (rev 14124)
@@ -1,3 +1,9 @@
+2007-09-26  Moises Martinez  <moises.martinez at nokia.com>
+
+	* src/hd-panel-window-dialog.c:
+	(hd_panel_window_dialog_notify_condition):
+	- Get the condition anyways and send it off. Fixes: NB#70308
+
 2007-09-26  Lucas Rocha  <lucas.rocha at nokia.com>
 
 	* src/hd-applications-menu.c (hd_applications_menu_get_items): center

Modified: projects/haf/trunk/hildon-desktop/src/hd-panel-window-dialog.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hd-panel-window-dialog.c	2007-09-26 13:46:47 UTC (rev 14123)
+++ projects/haf/trunk/hildon-desktop/src/hd-panel-window-dialog.c	2007-09-26 14:38:01 UTC (rev 14124)
@@ -141,8 +141,12 @@
 		                         gboolean condition, 
 					 HDPanelWindowDialog *window)
 {
-  g_signal_emit_by_name (window, "update-status", HILDON_DESKTOP_ITEM (object)->id, condition);
+  gboolean real_condition = FALSE;
 
+  g_object_get (G_OBJECT (object), "condition", &real_condition, NULL);
+	
+  g_signal_emit_by_name (window, "update-status", HILDON_DESKTOP_ITEM (object)->id, real_condition);
+
   /* Some day instropection will work for GObject signals and this code won't make any sense */
 
   DBusMessage *message;
@@ -154,8 +158,8 @@
 
   dbus_message_append_args (message,
                             DBUS_TYPE_STRING, &(HILDON_DESKTOP_ITEM (object)->id),
-                           DBUS_TYPE_BOOLEAN, condition,
-                           DBUS_TYPE_INVALID);
+                            DBUS_TYPE_BOOLEAN, &real_condition,
+                            DBUS_TYPE_INVALID);
 
   dbus_connection_send (dbus_g_connection_get_connection(window->priv->connection),
                        message,


More information about the maemo-commits mailing list