diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-04-16 20:29:33 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-04-16 20:29:33 +0800 |
commit | 293340151049a04517bb3741172a1f6750ddeabb (patch) | |
tree | 01d57d7d9d310f7254ef7166ef5311d74de64650 /libempathy-gtk/empathy-contact-widget.c | |
parent | 5d0a01756d410f44588870dabbed42145f2b765e (diff) | |
download | gsoc2013-empathy-293340151049a04517bb3741172a1f6750ddeabb.tar gsoc2013-empathy-293340151049a04517bb3741172a1f6750ddeabb.tar.gz gsoc2013-empathy-293340151049a04517bb3741172a1f6750ddeabb.tar.bz2 gsoc2013-empathy-293340151049a04517bb3741172a1f6750ddeabb.tar.lz gsoc2013-empathy-293340151049a04517bb3741172a1f6750ddeabb.tar.xz gsoc2013-empathy-293340151049a04517bb3741172a1f6750ddeabb.tar.zst gsoc2013-empathy-293340151049a04517bb3741172a1f6750ddeabb.zip |
Refactor the floating ref hack into a new function
From: Xavier Claessens <xclaesse@gmail.com>
svn path=/trunk/; revision=2871
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 6d302171a..0b2fb82b8 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -209,11 +209,8 @@ empathy_contact_widget_new (EmpathyContact *contact, contact_widget_set_contact (information, contact); - g_object_ref (information->vbox_contact_widget); - g_object_force_floating (G_OBJECT (information->vbox_contact_widget)); - g_object_unref (gui); - - return information->vbox_contact_widget; + return empathy_builder_unref_and_keep_widget (gui, + information->vbox_contact_widget); } EmpathyContact * |