aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-images.h3
-rw-r--r--libempathy-gtk/empathy-ui-utils.c8
2 files changed, 9 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-images.h b/libempathy-gtk/empathy-images.h
index 173543877..a668395f5 100644
--- a/libempathy-gtk/empathy-images.h
+++ b/libempathy-gtk/empathy-images.h
@@ -31,7 +31,8 @@ G_BEGIN_DECLS
#define EMPATHY_IMAGE_AVAILABLE "user-available"
#define EMPATHY_IMAGE_BUSY "user-busy"
#define EMPATHY_IMAGE_AWAY "user-away"
-#define EMPATHY_IMAGE_EXT_AWAY "user-idle"
+#define EMPATHY_IMAGE_EXT_AWAY "user-extended-away"
+#define EMPATHY_IMAGE_IDLE "user-idle"
#define EMPATHY_IMAGE_PENDING "empathy-pending"
#define EMPATHY_IMAGE_MESSAGE "im-message"
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index ff7ed34ed..586eaee16 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -182,7 +182,13 @@ empathy_icon_name_for_presence (TpConnectionPresenceType presence)
case TP_CONNECTION_PRESENCE_TYPE_AWAY:
return EMPATHY_IMAGE_AWAY;
case TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY:
- return EMPATHY_IMAGE_EXT_AWAY;
+ if (gtk_icon_theme_has_icon (gtk_icon_theme_get_default (),
+ EMPATHY_IMAGE_EXT_AWAY))
+ return EMPATHY_IMAGE_EXT_AWAY;
+
+ /* The 'extended-away' icon is not an official one so we fallback to idle if
+ * it's not implemented */
+ return EMPATHY_IMAGE_IDLE;
case TP_CONNECTION_PRESENCE_TYPE_HIDDEN:
if (gtk_icon_theme_has_icon (gtk_icon_theme_get_default (),
EMPATHY_IMAGE_HIDDEN))