diff options
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 1c6ebf531..367c91e73 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -552,6 +552,7 @@ ephy_window_state_event_cb (GtkWidget *widget, GdkEventWindowState *event, EphyW { if (event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) { + GtkActionGroup *action_group; GtkAction *action; gboolean fullscreen; @@ -566,9 +567,13 @@ ephy_window_state_event_cb (GtkWidget *widget, GdkEventWindowState *event, EphyW ephy_window_unfullscreen (window); } - action = gtk_action_group_get_action (window->priv->action_group, - "ViewFullscreen"); + action_group = window->priv->action_group; + + action = gtk_action_group_get_action (action_group, "ViewFullscreen"); gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), fullscreen); + + action = gtk_action_group_get_action (action_group, "EditToolbar"); + g_object_set (action, "sensitive", !fullscreen, NULL); } return FALSE; |