]> git.0d.be Git - empathy.git/commitdiff
factor out account_widget_is_gtalk
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 21 Dec 2009 17:21:18 +0000 (17:21 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 22 Dec 2009 11:14:15 +0000 (11:14 +0000)
libempathy-gtk/empathy-account-widget.c

index a48694711af98782f84c2a33808e2e02692b523a..9b395d08eea5451848d8bf668e188b5b9dfb177d 100644 (file)
@@ -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)
     {