aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget-irc.c8
-rw-r--r--libempathy-gtk/empathy-account-widget-irc.h7
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