[empathy] Revert "roster-window: Fix enabling add-contact action"
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Revert "roster-window: Fix enabling add-contact action"
- Date: Thu, 1 Dec 2016 05:08:22 +0000 (UTC)
commit 6879d7a6aa0c64a3dde72ca41321178de93035e7
Author: Daniel Boles <dboles src gnome org>
Date: Thu Dec 1 05:05:53 2016 +0000
Revert "roster-window: Fix enabling add-contact action"
This reverts commit 8abd8c8c9a9eaaf446f46800c0775b3140af5070.
Ah, oops. I hadn't noticed that chat-add-contact is an element in
priv->actions_connected. That means my change potentially breaks the
sense of whatever this cryptic machinery is doing. So, never mind.
src/empathy-roster-window.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c
index 5ef3887..3c19958 100644
--- a/src/empathy-roster-window.c
+++ b/src/empathy-roster-window.c
@@ -785,12 +785,13 @@ roster_window_update_status (EmpathyRosterWindow *self)
gtk_widget_hide (self->priv->throbber);
}
- /* Update sensitivities of actions */
+ /* Update widgets sensibility */
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");
- g_simple_action_set_enabled (G_SIMPLE_ACTION (action), can_add_contact (self));
+ if (!can_add_contact (self))
+ g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]