[empathy] factor out account_widget_is_gtalk



commit 6886131ed1c93f39dc8d961dbcd52ef85c64c18c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Dec 21 17:21:18 2009 +0000

    factor out account_widget_is_gtalk

 libempathy-gtk/empathy-account-widget.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index a486947..9b395d0 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -916,6 +916,15 @@ account_widget_build_msn (EmpathyAccountWidget *self,
     }
 }
 
+static gboolean
+account_widget_is_gtalk (EmpathyAccountWidget *self)
+{
+  EmpathyAccountWidgetPriv *priv = GET_PRIV (self);
+
+  return !tp_strdiff (empathy_account_settings_get_icon_name (priv->settings),
+      "im-google-talk");
+}
+
 static void
 account_widget_build_jabber (EmpathyAccountWidget *self,
     const char *filename)
@@ -928,9 +937,7 @@ account_widget_build_jabber (EmpathyAccountWidget *self,
   GtkWidget *label_example_gtalk, *label_example_jabber;
   gboolean is_gtalk;
 
-  is_gtalk = !tp_strdiff (
-      empathy_account_settings_get_icon_name (priv->settings),
-      "im-google-talk");
+  is_gtalk = account_widget_is_gtalk (self);
 
   if (priv->simple && !is_gtalk)
     {



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