diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-22 01:21:18 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-22 19:14:15 +0800 |
commit | 6886131ed1c93f39dc8d961dbcd52ef85c64c18c (patch) | |
tree | 6229ef20ea6ead21465aea77038f8d7113db6981 /libempathy-gtk | |
parent | 047a96316d388258fcff299ac4bea1bc3881ecae (diff) | |
download | gsoc2013-empathy-6886131ed1c93f39dc8d961dbcd52ef85c64c18c.tar gsoc2013-empathy-6886131ed1c93f39dc8d961dbcd52ef85c64c18c.tar.gz gsoc2013-empathy-6886131ed1c93f39dc8d961dbcd52ef85c64c18c.tar.bz2 gsoc2013-empathy-6886131ed1c93f39dc8d961dbcd52ef85c64c18c.tar.lz gsoc2013-empathy-6886131ed1c93f39dc8d961dbcd52ef85c64c18c.tar.xz gsoc2013-empathy-6886131ed1c93f39dc8d961dbcd52ef85c64c18c.tar.zst gsoc2013-empathy-6886131ed1c93f39dc8d961dbcd52ef85c64c18c.zip |
factor out account_widget_is_gtalk
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | 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 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) { |