cpw.gillux.detachablepurple: e110726a: Updated purpled (the purple daemon) Purp...

gillux at soc.pidgin.im gillux at soc.pidgin.im
Fri May 25 15:47:18 EDT 2012


----------------------------------------------------------------------
Revision: e110726a862a4acfe739c705230863d481a9856e
Parent:   701a370e7379a88370edda7d9740779e0b708ba5
Author:   gillux at soc.pidgin.im
Date:     05/25/12 15:40:04
Branch:   im.pidgin.cpw.gillux.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/e110726a862a4acfe739c705230863d481a9856e

Changelog: 

Updated purpled (the purple daemon) PurpleAccount uiops,
according to the new gdbus-based API.

Changes against parent 701a370e7379a88370edda7d9740779e0b708ba5

  patched  purpled/purpled-account.c

-------------- next part --------------
============================================================
--- purpled/purpled-account.c	3d7b9040340a92c9589ed87764de7215fb56242e
+++ purpled/purpled-account.c	92dfa1e85b37dbae134caf09b1061ac0b43f0757
@@ -22,20 +22,20 @@
 #include "internal.h"
 #include "account.h"
 #include "dbus/callback.h"
+#include "dbus/account.xml.h"
+#include "dbus/callback.xml.h"
 #include "nullmarshaller.h"
 #include "purpled-account.h"
 
-/**
- * PurpleAccountUiOps.notify_added daemon callback.
- * This sends the NotifyAdded dbus signal.
- */
+/** PurpleAccountUiOps.notify_added daemon callback. */
 static void
 purpled_account_notify_added(PurpleAccount *account, const char *remote_user,
 	                     const char *id, const char *alias,
                              const char *message)
 {
-	g_signal_emit_by_name(account, "notify_added",
-	                      remote_user, id, alias, message);
+	purple_object_emit_dbus_signal
+	  (PURPLE_OBJECT(account), purple_account_interface_info.name,
+	   "NotifyAdded", remote_user, id, alias, message);
 }
 
 /**
@@ -47,8 +47,9 @@ purpled_account_request_add(PurpleAccoun
 	                     const char *id, const char *alias,
                              const char *message)
 {
-	g_signal_emit_by_name(account, "request_add",
-	                      remote_user, id, alias, message);
+	purple_object_emit_dbus_signal
+	  (PURPLE_OBJECT(account), purple_account_interface_info.name,
+	   "RequestAdd", remote_user, id, alias, message);
 }
 
 static void
@@ -60,7 +61,9 @@ purpled_close_account_request(void *ui_h
 	g_return_if_fail(req_id > 0);
 
 	/* Send the RequestClosed dbus signal with the request id */
-	g_signal_emit_by_name(handler, "request_closed", req_id);
+	purple_object_emit_dbus_signal
+	  (PURPLE_OBJECT(handler), purple_callback_interface_info.name,
+	   "RequestClosed", req_id);
 }
 
 /**
@@ -98,8 +101,9 @@ purpled_account_request_authorize(Purple
 	g_return_val_if_fail(req_id > 0, NULL);
 
 	/* Send the RequestAuthorize dbus signal with this new request id */
-	g_signal_emit_by_name(account, "request_authorize", remote_user, id,
-	                      alias, message, on_list, req_id);
+	purple_object_emit_dbus_signal
+	  (PURPLE_OBJECT(account), purple_account_interface_info.name,
+	   "RequestAuthorize", remote_user, id, alias, message, on_list, req_id);
 
 	return GINT_TO_POINTER(req_id);
 }


More information about the Commits mailing list