soc.2010.detachablepurple: c51017e4: Adapted the purple_set_password() RPC co...
gillux at soc.pidgin.im
gillux at soc.pidgin.im
Tue Jul 6 17:01:13 EDT 2010
----------------------------------------------------------------------
Revision: c51017e43a6e943e373547e1d28193ab39211ec7
Parent: eeba3edf2664c1e2652edaf4286a6c6614b1d4b1
Author: gillux at soc.pidgin.im
Date: 07/06/10 16:05:22
Branch: im.pidgin.soc.2010.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/c51017e43a6e943e373547e1d28193ab39211ec7
Changelog:
Adapted the purple_set_password() RPC code accordingly to the previous work.
Changes against parent eeba3edf2664c1e2652edaf4286a6c6614b1d4b1
patched libpurple/account.c
-------------- next part --------------
============================================================
--- libpurple/account.c cdbc5221fbbcb5234076f3239bcb0ec740160256
+++ libpurple/account.c bd5a723e3f9cdd3a65a5a35a87d24ab74e0a4786
@@ -1428,17 +1428,15 @@ purple_account_set_password(PurpleAccoun
{
PurpleAccountPrivate *priv;
#ifdef HAVE_DBUS
+ DBusGProxy *proxy;
GError *error = NULL;
if (purple_core_get_remote_mode()) {
- if (!im_pidgin_purple_account_set_password((DBusGProxy *)account,
+ proxy = purple_object_get_dbus_proxy(PURPLE_OBJECT(account));
+ if (!im_pidgin_purple_account_set_password(proxy,
password, &error)) {
- purple_debug_error("dbus", "Failed to remotely call purple_account_set_password(): %s\n",
- error->message);
- g_error_free(error);
+ PURPLE_RPC_FAILED(purple_account_set_password, error);
}
- else
- purple_debug_info("dbus", "Successfully remotely called purple_account_set_password :-D\n");
return;
}
#endif
More information about the Commits
mailing list