[epiphany/wip/exalm/fix] action-bar: Always use narrow mode



commit 60be6e49ebc13496d87736e5082b281a80edac91
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Apr 21 21:39:17 2020 +0500

    action-bar: Always use narrow mode
    
    There's no point in ever using normal mode for it, as the whole bar is
    hidden in normal mode and it just causes a visual glitch with transition.

 src/ephy-action-bar.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-action-bar.c b/src/ephy-action-bar.c
index 47fcd60a0..396c97bd0 100644
--- a/src/ephy-action-bar.c
+++ b/src/ephy-action-bar.c
@@ -173,6 +173,9 @@ ephy_action_bar_init (EphyActionBar *action_bar)
   mode = ephy_embed_shell_get_mode (EPHY_EMBED_SHELL (ephy_shell_get_default ()));
   gtk_widget_set_visible (GTK_WIDGET (action_bar->pages_button),
                           mode != EPHY_EMBED_SHELL_MODE_APPLICATION);
+
+  ephy_action_bar_start_set_adaptive_mode (action_bar->action_bar_start,
+                                           EPHY_ADAPTIVE_MODE_NARROW);
 }
 
 EphyActionBar *
@@ -209,6 +212,4 @@ ephy_action_bar_set_adaptive_mode (EphyActionBar    *action_bar,
 
       break;
   }
-
-  ephy_action_bar_start_set_adaptive_mode (action_bar->action_bar_start, adaptive_mode);
 }


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