aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-widget-irc.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-16 20:29:33 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-16 20:29:33 +0800
commit293340151049a04517bb3741172a1f6750ddeabb (patch)
tree01d57d7d9d310f7254ef7166ef5311d74de64650 /libempathy-gtk/empathy-account-widget-irc.c
parent5d0a01756d410f44588870dabbed42145f2b765e (diff)
downloadgsoc2013-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-account-widget-irc.c')
-rw-r--r--libempathy-gtk/empathy-account-widget-irc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-account-widget-irc.c b/libempathy-gtk/empathy-account-widget-irc.c
index 043f05dc8..3af842415 100644
--- a/libempathy-gtk/empathy-account-widget-irc.c
+++ b/libempathy-gtk/empathy-account-widget-irc.c
@@ -505,9 +505,5 @@ empathy_account_widget_irc_new (McAccount *account)
"combobox_network", "changed", account_widget_irc_combobox_network_changed_cb,
NULL);
- g_object_ref (settings->vbox_settings);
- g_object_force_floating (G_OBJECT (settings->vbox_settings));
- g_object_unref (gui);
-
- return settings->vbox_settings;
+ return empathy_builder_unref_and_keep_widget (gui, settings->vbox_settings);
}