diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-09-20 16:11:52 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-09-20 16:11:52 +0800 |
commit | c5221159ffcbf123e22a6313995e8fc784de1141 (patch) | |
tree | e059c39f055de8c0f1acaa005769329baa06e673 /src/ephy-window.c | |
parent | d1c2b88f108a6f461383d6d8bf9bbe9a13bf64a4 (diff) | |
download | gsoc2013-epiphany-c5221159ffcbf123e22a6313995e8fc784de1141.tar gsoc2013-epiphany-c5221159ffcbf123e22a6313995e8fc784de1141.tar.gz gsoc2013-epiphany-c5221159ffcbf123e22a6313995e8fc784de1141.tar.bz2 gsoc2013-epiphany-c5221159ffcbf123e22a6313995e8fc784de1141.tar.lz gsoc2013-epiphany-c5221159ffcbf123e22a6313995e8fc784de1141.tar.xz gsoc2013-epiphany-c5221159ffcbf123e22a6313995e8fc784de1141.tar.zst gsoc2013-epiphany-c5221159ffcbf123e22a6313995e8fc784de1141.zip |
Do not fail if prefs.js is corrupted.
2003-09-20 Marco Pesenti Gritti <marco@gnome.org>
* embed/mozilla/mozilla-embed-single.cpp:
Do not fail if prefs.js is corrupted.
* src/ephy-window.c: (ephy_window_state_event_cb):
Do not allow to edit toolbar in fs
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; |