evolution r36150 - branches/mail-dbus-remoting/mail



Author: michael
Date: Thu Aug 28 08:43:42 2008
New Revision: 36150
URL: http://svn.gnome.org/viewvc/evolution?rev=36150&view=rev

Log:
more async tweaks ...


Modified:
   branches/mail-dbus-remoting/mail/camel-object-remote-impl.c
   branches/mail-dbus-remoting/mail/camel-object-remote.c
   branches/mail-dbus-remoting/mail/dbind.c

Modified: branches/mail-dbus-remoting/mail/camel-object-remote-impl.c
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-object-remote-impl.c	(original)
+++ branches/mail-dbus-remoting/mail/camel-object-remote-impl.c	Thu Aug 28 08:43:42 2008
@@ -26,12 +26,14 @@
 	dbus_bool_t ret;
 	dbus_error_init (&err);
 
+	access ("before dbind context emit signal", 0);
 	ret = dbind_context_emit_signal (e_dbus_peek_context(),
 					 CAMEL_DBUS_NAME,
 					 CAMEL_SESSION_OBJECT_PATH,
 					 CAMEL_SESSION_INTERFACE,
 					 "session_signal",
 					 &err, "ii", ev_data, data);
+	access ("after dbind context emit signal", 0);
 
 	if (!ret)
 		g_warning ("error: %s\n", err.message);

Modified: branches/mail-dbus-remoting/mail/camel-object-remote.c
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-object-remote.c	(original)
+++ branches/mail-dbus-remoting/mail/camel-object-remote.c	Thu Aug 28 08:43:42 2008
@@ -50,7 +50,7 @@
 	dbus_listener_vtable->message_function = reg;
 	dbus_listener_vtable->unregister_function = unreg;
 
-	rule = g_strconcat ("type='signal',path='", object_path, "'", NULL);
+	rule = g_strconcat ("type='signal',sender='", CAMEL_DBUS_NAME, "',path='", object_path, "'", NULL);
 	d(printf("EVODBUS: add match '%s'\n", rule)); 
 	dbus_bus_add_match (ctx->cnx, rule, NULL);
 	g_free (rule);

Modified: branches/mail-dbus-remoting/mail/dbind.c
==============================================================================
--- branches/mail-dbus-remoting/mail/dbind.c	(original)
+++ branches/mail-dbus-remoting/mail/dbind.c	Thu Aug 28 08:43:42 2008
@@ -266,7 +266,7 @@
     if (!dest)
         goto out;
 
-    if (*p == '\0' || message_type == DBUS_MESSAGE_TYPE_SIGNAL) { /* one-way */
+    if (message_type == DBUS_MESSAGE_TYPE_SIGNAL) { /* one-way */
 	success = dbus_connection_send (cnx, msg, NULL);
 	goto out;
     } else {



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