From 6886131ed1c93f39dc8d961dbcd52ef85c64c18c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 21 Dec 2009 17:21:18 +0000 Subject: factor out account_widget_is_gtalk --- libempathy-gtk/empathy-account-widget.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index a48694711..9b395d08e 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) { -- cgit v1.2.3