[epiphany/overview: 31/31] ephy-window: make the overview action insensitive when in overview mode
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview: 31/31] ephy-window: make the overview action insensitive when in overview mode
- Date: Sat, 4 Aug 2012 21:17:19 +0000 (UTC)
commit 26de025da84a59060379cbb6e10f7acb19449ad1
Author: Claudio Saavedra <csaavedra igalia com>
Date: Sat Aug 4 18:03:03 2012 +0200
ephy-window: make the overview action insensitive when in overview mode
src/ephy-window.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index a33037c..1975625 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3582,6 +3582,14 @@ ephy_window_constructor (GType type,
G_BINDING_SYNC_CREATE
| G_BINDING_INVERT_BOOLEAN
| G_BINDING_BIDIRECTIONAL);
+ action = gtk_action_group_get_action (window->priv->toolbar_action_group,
+ "ViewOverviewMode");
+ g_object_bind_property (window, "overview-mode",
+ action, "sensitive",
+ G_BINDING_SYNC_CREATE
+ | G_BINDING_INVERT_BOOLEAN
+ | G_BINDING_BIDIRECTIONAL);
+
priv->downloads_box = setup_downloads_box (window);
gtk_box_pack_start (GTK_BOX (priv->main_vbox),
GTK_WIDGET (priv->downloads_box), FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]