aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-02 19:16:52 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-30 18:38:10 +0800
commit242c8fda4fbf2bb57ebc3502eed4628cf81203ff (patch)
tree2de73a81f675e8c7aac7b3ee3654a165e6d72640 /libempathy-gtk/empathy-ui-utils.c
parentf2f2a999c6459d0ac17771075fe3e6a4f4e68515 (diff)
downloadgsoc2013-empathy-242c8fda4fbf2bb57ebc3502eed4628cf81203ff.tar
gsoc2013-empathy-242c8fda4fbf2bb57ebc3502eed4628cf81203ff.tar.gz
gsoc2013-empathy-242c8fda4fbf2bb57ebc3502eed4628cf81203ff.tar.bz2
gsoc2013-empathy-242c8fda4fbf2bb57ebc3502eed4628cf81203ff.tar.lz
gsoc2013-empathy-242c8fda4fbf2bb57ebc3502eed4628cf81203ff.tar.xz
gsoc2013-empathy-242c8fda4fbf2bb57ebc3502eed4628cf81203ff.tar.zst
gsoc2013-empathy-242c8fda4fbf2bb57ebc3502eed4628cf81203ff.zip
use the 'user-invisible' icon if implemented
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index d4de211c0..422eb910f 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -183,7 +183,13 @@ empathy_icon_name_for_presence (TpConnectionPresenceType presence)
case TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY:
return EMPATHY_IMAGE_EXT_AWAY;
case TP_CONNECTION_PRESENCE_TYPE_HIDDEN:
- return EMPATHY_IMAGE_HIDDEN;
+ if (gtk_icon_theme_has_icon (gtk_icon_theme_get_default (),
+ EMPATHY_IMAGE_HIDDEN))
+ return EMPATHY_IMAGE_HIDDEN;
+
+ /* The 'hidden' icon is not an official one so we fallback to offline if
+ * it's not implemented */
+ return EMPATHY_IMAGE_OFFLINE;
case TP_CONNECTION_PRESENCE_TYPE_OFFLINE:
case TP_CONNECTION_PRESENCE_TYPE_ERROR:
case TP_CONNECTION_PRESENCE_TYPE_UNKNOWN: