[empathy] account-widget-irc: return the EmpathyIrcNetworkChooser when building the widget



commit dea80ff6471a66f17dc0ade2c1c5795439e4078c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Aug 31 10:23:07 2010 +0200

    account-widget-irc: return the EmpathyIrcNetworkChooser when building the widget

 libempathy-gtk/empathy-account-widget-irc.c |    8 ++++++--
 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 6cb1e22..4507677 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 0c51cfa..cc5dfff 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]