[empathy] roster-window: Fix enabling add-contact action
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] roster-window: Fix enabling add-contact action
- Date: Thu, 1 Dec 2016 05:03:44 +0000 (UTC)
commit 8abd8c8c9a9eaaf446f46800c0775b3140af5070
Author: Daniel Boles <dboles src gnome org>
Date: Thu Dec 1 04:25:13 2016 +0000
roster-window: Fix enabling add-contact action
This was commented "update widget sensibilities [action sensitivities]',
yet it could only ever disable the action. Not sure where/if this action
gets enabled, but either way, let's make the code do the sensible thing.
src/empathy-roster-window.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c
index 3c19958..5ef3887 100644
--- a/src/empathy-roster-window.c
+++ b/src/empathy-roster-window.c
@@ -785,13 +785,12 @@ roster_window_update_status (EmpathyRosterWindow *self)
gtk_widget_hide (self->priv->throbber);
}
- /* Update widgets sensibility */
+ /* Update sensitivities of actions */
for (l = self->priv->actions_connected; l; l = l->next)
g_simple_action_set_enabled (l->data, connected);
action = g_action_map_lookup_action (G_ACTION_MAP (self), "chat-add-contact");
- if (!can_add_contact (self))
- g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE);
+ g_simple_action_set_enabled (G_SIMPLE_ACTION (action), can_add_contact (self));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]