[empathy] roster-window: display a specific message if there is no offline contact either



commit 3f757018829e1b2d025c38efd3f98017f368cd86
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Dec 26 11:04:11 2012 +0100

    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 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c
index a8018b7..78d47f8 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;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]