diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-31 16:23:07 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-02 17:59:51 +0800 |
commit | dea80ff6471a66f17dc0ade2c1c5795439e4078c (patch) | |
tree | 2ca7056e8fe1c97c0caa6f8ad98cbe692f069f79 | |
parent | 7afc46a7f88a0fb1d92cbc25b6a96c1a11633bf6 (diff) | |
download | gsoc2013-empathy-dea80ff6471a66f17dc0ade2c1c5795439e4078c.tar gsoc2013-empathy-dea80ff6471a66f17dc0ade2c1c5795439e4078c.tar.gz gsoc2013-empathy-dea80ff6471a66f17dc0ade2c1c5795439e4078c.tar.bz2 gsoc2013-empathy-dea80ff6471a66f17dc0ade2c1c5795439e4078c.tar.lz gsoc2013-empathy-dea80ff6471a66f17dc0ade2c1c5795439e4078c.tar.xz gsoc2013-empathy-dea80ff6471a66f17dc0ade2c1c5795439e4078c.tar.zst gsoc2013-empathy-dea80ff6471a66f17dc0ade2c1c5795439e4078c.zip |
account-widget-irc: return the EmpathyIrcNetworkChooser when building the widget
-rw-r--r-- | libempathy-gtk/empathy-account-widget-irc.c | 8 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget-irc.h | 7 |
2 files changed, 11 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-account-widget-irc.c b/libempathy-gtk/empathy-account-widget-irc.c index 6cb1e22dd..450767751 100644 --- a/libempathy-gtk/empathy-account-widget-irc.c +++ b/libempathy-gtk/empathy-account-widget-irc.c @@ -99,7 +99,7 @@ network_changed_cb (EmpathyIrcNetworkChooser *chooser, empathy_account_widget_changed (settings->self); } -void +EmpathyIrcNetworkChooser * empathy_account_widget_irc_build (EmpathyAccountWidget *self, const char *filename, GtkWidget **table_common_settings) @@ -145,9 +145,11 @@ empathy_account_widget_irc_build (EmpathyAccountWidget *self, self->ui_details->default_focus = g_strdup ("entry_nick"); g_object_unref (ac_settings); + + return EMPATHY_IRC_NETWORK_CHOOSER (settings->network_chooser); } -void +EmpathyIrcNetworkChooser * empathy_account_widget_irc_build_simple (EmpathyAccountWidget *self, const char *filename) { @@ -186,4 +188,6 @@ empathy_account_widget_irc_build_simple (EmpathyAccountWidget *self, self->ui_details->default_focus = g_strdup ("entry_nick_simple"); g_object_unref (ac_settings); + + return EMPATHY_IRC_NETWORK_CHOOSER (settings->network_chooser); } diff --git a/libempathy-gtk/empathy-account-widget-irc.h b/libempathy-gtk/empathy-account-widget-irc.h index 0c51cfa8f..cc5dfff27 100644 --- a/libempathy-gtk/empathy-account-widget-irc.h +++ b/libempathy-gtk/empathy-account-widget-irc.h @@ -23,14 +23,17 @@ #include <gtk/gtk.h> #include <libempathy-gtk/empathy-account-widget.h> +#include <libempathy-gtk/empathy-irc-network-chooser.h> G_BEGIN_DECLS -void empathy_account_widget_irc_build (EmpathyAccountWidget *self, +EmpathyIrcNetworkChooser * empathy_account_widget_irc_build ( + EmpathyAccountWidget *self, const char *filename, GtkWidget **table_common_settings); -void empathy_account_widget_irc_build_simple (EmpathyAccountWidget *self, +EmpathyIrcNetworkChooser * empathy_account_widget_irc_build_simple ( + EmpathyAccountWidget *self, const char *filename); G_END_DECLS |