[empathy] EmpathyRosterWindow: Show message when there is no online accounts
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] EmpathyRosterWindow: Show message when there is no online accounts
- Date: Mon, 20 Aug 2012 16:02:14 +0000 (UTC)
commit 547c7e8d49b1e7a6ce0c77fc2b002c64f02fb1d5
Author: Xavier Claessens <xavier claessens collabora co uk>
Date: Mon Aug 20 17:58:13 2012 +0200
EmpathyRosterWindow: Show message when there is no online accounts
See https://bugzilla.gnome.org/show_bug.cgi?id=656097#c20
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 cc25c19..b92507b 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]