]> git.0d.be Git - empathy.git/commitdiff
roster-window: display a specific message if there is no offline contact either
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 26 Dec 2012 10:04:11 +0000 (11:04 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 26 Dec 2012 10:16:16 +0000 (11:16 +0100)
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

index a8018b778c8b5aa1a241ff7519d00edc721dfafd..78d47f8f6322e5f53dc6381685cf5f41faf1bc59 100644 (file)
@@ -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;
     }