[epiphany/wip/exalm/elementary3] window: Don't trigger narrow mode on Pantheon



commit ec11fe9b62e24c327414ef12fb0842e95d27987c
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Sep 30 22:29:22 2019 +0500

    window: Don't trigger narrow mode on Pantheon
    
    The mobile mode is very unpolished with elementary stylesheet, and it's
    not something that's wanted on Pantheon in any case, so disable it.
    
    Closes https://gitlab.gnome.org/GNOME/epiphany/issues/941

 src/ephy-window.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index cd105beda..4cf1d703d 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -28,6 +28,7 @@
 #include "ephy-action-helper.h"
 #include "ephy-bookmarks-manager.h"
 #include "ephy-debug.h"
+#include "ephy-desktop-utils.h"
 #include "ephy-embed-container.h"
 #include "ephy-embed-prefs.h"
 #include "ephy-embed-shell.h"
@@ -541,7 +542,7 @@ update_adaptive_mode (EphyWindow *window)
   is_mobile_landscape = geometry.height <= 400 &&
                         (gtk_window_is_maximized (GTK_WINDOW (window)) ||
                          window->is_fullscreen);
-  adaptive_mode = is_narrow || is_mobile_landscape ?
+  adaptive_mode = (is_narrow || is_mobile_landscape) && !is_desktop_pantheon () ?
                   EPHY_ADAPTIVE_MODE_NARROW :
                   EPHY_ADAPTIVE_MODE_NORMAL;
   ephy_header_bar_set_adaptive_mode (header_bar, adaptive_mode);


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