aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-12-26 18:04:11 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-12-26 18:16:16 +0800
commit3f757018829e1b2d025c38efd3f98017f368cd86 (patch)
tree52ecdc79ae4e609ef9950f4b8a6136dd9294873b
parent184b73e4e79b426a72eaf4d27b411014313c8e89 (diff)
downloadgsoc2013-empathy-3f757018829e1b2d025c38efd3f98017f368cd86.tar
gsoc2013-empathy-3f757018829e1b2d025c38efd3f98017f368cd86.tar.gz
gsoc2013-empathy-3f757018829e1b2d025c38efd3f98017f368cd86.tar.bz2
gsoc2013-empathy-3f757018829e1b2d025c38efd3f98017f368cd86.tar.lz
gsoc2013-empathy-3f757018829e1b2d025c38efd3f98017f368cd86.tar.xz
gsoc2013-empathy-3f757018829e1b2d025c38efd3f98017f368cd86.tar.zst
gsoc2013-empathy-3f757018829e1b2d025c38efd3f98017f368cd86.zip
roster-window: display a specific message if there is no offline contact either
Displaying "No online contacts" while we are actually displaying all the contacts is miss leading. https://bugzilla.gnome.org/show_bug.cgi?id=670048
-rw-r--r--src/empathy-roster-window.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c
index a8018b778..78d47f8f6 100644
--- a/src/empathy-roster-window.c
+++ b/src/empathy-roster-window.c
@@ -1625,8 +1625,13 @@ set_notebook_page (EmpathyRosterWindow *self)
}
else
{
- display_page_message (self, _("No online contacts"),
- PAGE_MESSAGE_FLAG_NONE);
+ if (g_settings_get_boolean (self->priv->gsettings_ui,
+ EMPATHY_PREFS_UI_SHOW_OFFLINE))
+ display_page_message (self, _("You haven't added any contact yet"),
+ PAGE_MESSAGE_FLAG_NONE);
+ else
+ display_page_message (self, _("No online contacts"),
+ PAGE_MESSAGE_FLAG_NONE);
}
goto out;
}