summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan-Michael Brummer <jan.brummer@tabos.org>2020-08-24 20:33:39 +0200
committerMichael Catanzaro <mcatanzaro@gnome.org>2020-08-24 19:08:42 +0000
commitbba638e56b676e456436cc5187709c2213f46ab4 (patch)
treedf6c48080c4513891cb53dfef7d9a4f8090d4c14 /src
parent27d3a070fecddcfd0f90a10325ab6a3ac7c7df56 (diff)
downloadepiphany-bba638e56b676e456436cc5187709c2213f46ab4.tar.gz
action-bar-start: Hide navigation button if mobile capable is set
Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1313
Diffstat (limited to 'src')
-rw-r--r--src/ephy-action-bar-start.c7
1 files changed, 7 insertions, 0 deletions
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