From 3f757018829e1b2d025c38efd3f98017f368cd86 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 26 Dec 2012 11:04:11 +0100 Subject: 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 --- src/empathy-roster-window.c | 9 +++++++-- 1 file 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; } -- cgit v1.2.3