[epiphany] action-bar-start: Hide navigation button if mobile capable is set



commit bba638e56b676e456436cc5187709c2213f46ab4
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Mon Aug 24 20:33:39 2020 +0200

    action-bar-start: Hide navigation button if mobile capable is set
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1313

 src/ephy-action-bar-start.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/ephy-action-bar-start.c b/src/ephy-action-bar-start.c
index 69a70572d..2ebd3c559 100644
--- a/src/ephy-action-bar-start.c
+++ b/src/ephy-action-bar-start.c
@@ -27,6 +27,7 @@
 #include "ephy-embed-prefs.h"
 #include "ephy-embed-utils.h"
 #include "ephy-favicon-helpers.h"
+#include "ephy-file-helpers.h"
 #include "ephy-gui.h"
 #include "ephy-settings.h"
 #include "ephy-shell.h"
@@ -570,6 +571,12 @@ ephy_action_bar_start_constructed (GObject *object)
                           gtk_image_new_from_icon_name ("go-home-symbolic",
                                                         get_icon_size ()));
   }
+
+  if (ephy_profile_dir_is_web_application ()) {
+    GtkWidget *navigation_box = ephy_action_bar_start_get_navigation_box (action_bar_start);
+
+    g_settings_bind (EPHY_SETTINGS_WEB_APP, EPHY_PREFS_WEB_APP_MOBILE_CAPABLE, navigation_box, "visible", 
G_SETTINGS_BIND_GET | G_SETTINGS_BIND_INVERT_BOOLEAN);
+  }
 }
 
 static void


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