soc.2010.detachablepurple: 07fcf3bc: Added the signal handlers for the dbus n...

gillux at soc.pidgin.im gillux at soc.pidgin.im
Sat Jul 17 10:38:05 EDT 2010


----------------------------------------------------------------------
Revision: 07fcf3bc6898f3ccac5d6a393a521d74284829e3
Parent:   11dfbe583683cd073529aed0719494003cbd4914
Author:   gillux at soc.pidgin.im
Date:     07/17/10 10:26:51
Branch:   im.pidgin.soc.2010.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/07fcf3bc6898f3ccac5d6a393a521d74284829e3

Changelog: 

Added the signal handlers for the dbus notify signal, which updates the local
properties of an object. This is the client part of the "daemon to client
properties updates".

Changes against parent 11dfbe583683cd073529aed0719494003cbd4914

  patched  libpurple/dbus-server.c
  patched  libpurple/marshallers.list

-------------- next part --------------
============================================================
--- libpurple/dbus-server.c	da2ac7dc86cbbe7156ac25f65c639c0bca278db3
+++ libpurple/dbus-server.c	c72e37dcddb40e694399e3ac712b68fedfc20eae
@@ -47,6 +47,7 @@
 #include "dbus-bindings.h"
 #include "debug.h"
 #include "core.h"
+#include "marshallers.h"
 #include "savedstatuses.h"
 #include "smiley.h"
 #include "util.h"
@@ -778,6 +779,12 @@ purple_dbus_g_init(void)
 	guint request_ret;
 
 	if (purple_core_is_remote_mode()) {
+		/* In remote mode we need to register the marshallers
+		 * we will use to receive the signals sent by the daemon */
+		dbus_g_object_register_marshaller(purple_smarshal_VOID__STRING_BOXED,
+						G_TYPE_NONE, G_TYPE_STRING,
+						G_TYPE_VALUE, G_TYPE_INVALID);
+
 		/* We also use the "dbus path name -> gobject" hash table */
 		dbus_path_gobjects = g_hash_table_new_full(g_str_hash, g_str_equal,
 							g_free, NULL);
============================================================
--- libpurple/marshallers.list	c5a4cd7ed04de076d46c5bdc1484ae828e1c11bc
+++ libpurple/marshallers.list	3ee72ae8b7449434fbd10d01edf16982893546b3
@@ -13,3 +13,4 @@ VOID:STRING,STRING,OBJECT,OBJECT
 VOID:ENUM,STRING,STRING,BOOLEAN
 VOID:FLAGS,FLAGS
 VOID:STRING,STRING,OBJECT,OBJECT
+VOID:STRING,BOXED


More information about the Commits mailing list