[evince/wip/cdavis/fix-toolbar-fullscreen-mode: 2/2] window: hide close button when fullscreened




commit 6908de544de991a15da86d55a398e2756cae8b4a
Author: Christopher Davis <brainblasted disroot org>
Date:   Thu Feb 4 23:54:33 2021 -0800

    window: hide close button when fullscreened
    
    This is expected when apps fullscreen.

 shell/ev-window.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index b10fbbe9..34eaea52 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -4548,6 +4548,8 @@ ev_window_run_fullscreen (EvWindow *window)
        ev_document_model_set_fullscreen (priv->model, TRUE);
        ev_window_update_fullscreen_action (window);
 
+       hdy_header_bar_set_show_close_button (HDY_HEADER_BAR (priv->toolbar), FALSE);
+
        if (fullscreen_window)
                gtk_window_fullscreen (GTK_WINDOW (window));
        gtk_widget_grab_focus (priv->view);
@@ -4568,6 +4570,8 @@ ev_window_stop_fullscreen (EvWindow *window,
        ev_document_model_set_fullscreen (priv->model, FALSE);
        ev_window_update_fullscreen_action (window);
 
+       hdy_header_bar_set_show_close_button (HDY_HEADER_BAR (priv->toolbar), TRUE);
+
        if (unfullscreen_window)
                gtk_window_unfullscreen (GTK_WINDOW (window));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]