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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Sep 18 18:08:55 EEST 2007
Author: moimart
Date: 2007-09-18 18:08:53 +0300 (Tue, 18 Sep 2007)
New Revision: 13902

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

        * src/hd-panel-window-dialog.c:
        (hd_panel_window_dialog_notify_condition):
        - Send a real DBus signal.
	* ChangeLog updated.



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-18 14:17:26 UTC (rev 13901)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-18 15:08:53 UTC (rev 13902)
@@ -1,3 +1,9 @@
+2007-09-18  Moises Martinez  <moises.martinez at nokia.com>
+
+	* src/hd-panel-window-dialog.c:
+	(hd_panel_window_dialog_notify_condition):
+	- Send a real DBus signal.
+
 2007-09-18 Johan Bilien  <johan.bilien at nokia.com>
 
 	* src/hd-app-menu-tree.c: set an abitrary default value

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-18 14:17:26 UTC (rev 13901)
+++ projects/haf/trunk/hildon-desktop/src/hd-panel-window-dialog.c	2007-09-18 15:08:53 UTC (rev 13902)
@@ -142,6 +142,26 @@
 					 HDPanelWindowDialog *window)
 {
   g_signal_emit_by_name (window, "update-status", HILDON_DESKTOP_ITEM (object)->id, condition);
+
+  /* Some day instropection will work for GObject signals and this code won't make any sense */
+
+  DBusMessage *message;
+
+  message =
+    dbus_message_new_signal ("/org/hildon/Statusbar",
+                             "org.hildon.Statusbar",
+                             "UpdateStatus");
+
+  dbus_message_append_args (message,
+                            DBUS_TYPE_STRING, &(HILDON_DESKTOP_ITEM (object)->id),
+                           DBUS_TYPE_BOOLEAN, condition,
+                           DBUS_TYPE_INVALID);
+
+  dbus_connection_send (dbus_g_connection_get_connection(window->priv->connection),
+                       message,
+                       NULL);
+
+  dbus_message_unref (message);
 }
 
 static void


More information about the maemo-commits mailing list