Mercurial > pidgin
diff src/buddyicon.c @ 13554:52985bb3ec70
[gaim-migrate @ 15932]
SF Patch #1456692 from Sadrul
"GaimBuddyIcon bindings for DBus"
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Thu, 23 Mar 2006 18:36:45 +0000 |
| parents | fbdc9e7ef77a |
| children | d1da27a099d2 |
line wrap: on
line diff
--- a/src/buddyicon.c Thu Mar 23 17:05:47 2006 +0000 +++ b/src/buddyicon.c Thu Mar 23 18:36:45 2006 +0000 @@ -25,6 +25,7 @@ #include "internal.h" #include "buddyicon.h" #include "conversation.h" +#include "dbus-maybe.h" #include "debug.h" #include "util.h" @@ -39,6 +40,7 @@ GHashTable *icon_cache; icon = g_new0(GaimBuddyIcon, 1); + GAIM_DBUS_REGISTER_POINTER(icon, GaimBuddyIcon); gaim_buddy_icon_set_account(icon, account); gaim_buddy_icon_set_username(icon, username); @@ -136,6 +138,7 @@ if (icon->data != NULL) g_free(icon->data); + GAIM_DBUS_UNREGISTER_POINTER(icon); g_free(icon); }
