diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-06-24 03:39:03 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-06-24 03:39:03 +0800 |
commit | f9d16e71518fd593d966c503baad72c049daa4ab (patch) | |
tree | b336bcf9d56cb7b6ff3f9430964e8c3eb6f3cf16 /src | |
parent | 96aedf7f4f19c494a549310b7c6e55b6fcd7668a (diff) | |
download | gsoc2013-epiphany-f9d16e71518fd593d966c503baad72c049daa4ab.tar gsoc2013-epiphany-f9d16e71518fd593d966c503baad72c049daa4ab.tar.gz gsoc2013-epiphany-f9d16e71518fd593d966c503baad72c049daa4ab.tar.bz2 gsoc2013-epiphany-f9d16e71518fd593d966c503baad72c049daa4ab.tar.lz gsoc2013-epiphany-f9d16e71518fd593d966c503baad72c049daa4ab.tar.xz gsoc2013-epiphany-f9d16e71518fd593d966c503baad72c049daa4ab.tar.zst gsoc2013-epiphany-f9d16e71518fd593d966c503baad72c049daa4ab.zip |
Make the "Exit Fullscreen" button toggle the action instead of doing to
2004-06-23 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-window.c: (exit_fullscreen_button_clicked_cb),
(get_chromes_visibility), (ephy_window_state_event_cb):
Make the "Exit Fullscreen" button toggle the action instead of
doing to work itself. Fixes bug #144785.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-window.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 0ddf7f59c..9ff9c06cd 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -464,7 +464,12 @@ size_changed_cb (GdkScreen *screen, EphyWindow *window) static void exit_fullscreen_button_clicked_cb (GtkWidget *button, EphyWindow *window) { - gtk_window_unfullscreen (GTK_WINDOW (window)); + GtkAction *action; + + action = gtk_action_group_get_action (window->priv->action_group, "ViewFullscreen"); + g_return_if_fail (action != NULL); + + gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), FALSE); } static void @@ -488,6 +493,7 @@ get_chromes_visibility (EphyWindow *window, gboolean *show_menubar, break; default: *show_menubar = *show_statusbar = *show_toolbar = *show_bookmarksbar = FALSE; + break; } } @@ -599,7 +605,11 @@ ephy_window_state_event_cb (GtkWidget *widget, GdkEventWindowState *event, EphyW action_group = window->priv->action_group; action = gtk_action_group_get_action (action_group, "ViewFullscreen"); + g_signal_handlers_block_by_func + (action, G_CALLBACK (window_cmd_view_fullscreen), window); gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), fullscreen); + g_signal_handlers_unblock_by_func + (action, G_CALLBACK (window_cmd_view_fullscreen), window); action = gtk_action_group_get_action (action_group, "EditToolbar"); g_object_set (action, "sensitive", !fullscreen, NULL); |