diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-08-20 23:58:13 +0800 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-08-20 23:58:13 +0800 |
commit | 547c7e8d49b1e7a6ce0c77fc2b002c64f02fb1d5 (patch) | |
tree | 589a59363f59a0717a04d871e46f809ee7861be3 /src | |
parent | bad888152af7f4920001f41ffe069ae56d913dc7 (diff) | |
download | gsoc2013-empathy-547c7e8d49b1e7a6ce0c77fc2b002c64f02fb1d5.tar gsoc2013-empathy-547c7e8d49b1e7a6ce0c77fc2b002c64f02fb1d5.tar.gz gsoc2013-empathy-547c7e8d49b1e7a6ce0c77fc2b002c64f02fb1d5.tar.bz2 gsoc2013-empathy-547c7e8d49b1e7a6ce0c77fc2b002c64f02fb1d5.tar.lz gsoc2013-empathy-547c7e8d49b1e7a6ce0c77fc2b002c64f02fb1d5.tar.xz gsoc2013-empathy-547c7e8d49b1e7a6ce0c77fc2b002c64f02fb1d5.tar.zst gsoc2013-empathy-547c7e8d49b1e7a6ce0c77fc2b002c64f02fb1d5.zip |
EmpathyRosterWindow: Show message when there is no online accounts
See https://bugzilla.gnome.org/show_bug.cgi?id=656097#c20
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-roster-window.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c index cc25c1995..b92507b4f 100644 --- a/src/empathy-roster-window.c +++ b/src/empathy-roster-window.c @@ -1588,6 +1588,19 @@ set_notebook_page (EmpathyRosterWindow *self) goto out; } + if (empathy_roster_view_is_empty (self->priv->view)) + { + if (empathy_roster_view_is_searching (self->priv->view)) + { + display_page_message (self, _("No match found"), FALSE, FALSE); + } + else + { + display_page_message (self, _("No online contacts"), FALSE, FALSE); + } + goto out; + } + display_page_contact_list (self); out: @@ -1895,16 +1908,10 @@ view_empty_cb (EmpathyRosterView *view, GParamSpec *spec, EmpathyRosterWindow *self) { - if (empathy_roster_view_is_empty (view)) - { - if (empathy_roster_view_is_searching (self->priv->view)) - { - display_page_message (self, _("No match found"), FALSE, FALSE); - } - } - else + set_notebook_page (self); + + if (!empathy_roster_view_is_empty (view)) { - display_page_contact_list (self); gtk_widget_grab_focus (GTK_WIDGET (self->priv->view)); /* The store is being filled, it will be done after an idle cb. |