[epiphany] window: Pass the adaptive state to the notebook



commit 7369e1472b9f1aaa026192fe82f340d2a483c406
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Nov 13 14:00:31 2018 +0100

    window: Pass the adaptive state to the notebook
    
    This lets the notebook disappear in narrow mode.

 src/ephy-window.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 4366dea9f..c6065e4cf 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -497,6 +497,7 @@ update_adaptive_mode (EphyWindow *window)
 {
   EphyHeaderBar *header_bar = EPHY_HEADER_BAR (ephy_window_get_header_bar (window));
   EphyActionBar *action_bar = EPHY_ACTION_BAR (window->action_bar);
+  EphyNotebook *notebook = EPHY_NOTEBOOK (window->notebook);
   gboolean is_narrow, is_mobile_landscape;
   EphyAdaptiveMode adaptive_mode;
   gint width, height;
@@ -533,6 +534,7 @@ update_adaptive_mode (EphyWindow *window)
     EPHY_ADAPTIVE_MODE_NORMAL;
   ephy_header_bar_set_adaptive_mode (header_bar, adaptive_mode);
   ephy_action_bar_set_adaptive_mode (action_bar, adaptive_mode);
+  ephy_notebook_set_adaptive_mode (notebook, adaptive_mode);
 }
 
 static void


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