aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYosef Or Boczko <yoseforb@gmail.com>2013-08-30 17:07:35 +0800
committerYosef Or Boczko <yoseforb@gmail.com>2013-08-30 17:07:35 +0800
commitd42ace6d967556cef7675de7414fb16938530497 (patch)
tree76f70c7c1d5c26ed2d0108e0d4ab7952adffcf7d
parentd2b81dfca703ba9d6f0dc34a89884ca66c4aad74 (diff)
downloadgsoc2013-epiphany-d42ace6d967556cef7675de7414fb16938530497.tar
gsoc2013-epiphany-d42ace6d967556cef7675de7414fb16938530497.tar.gz
gsoc2013-epiphany-d42ace6d967556cef7675de7414fb16938530497.tar.bz2
gsoc2013-epiphany-d42ace6d967556cef7675de7414fb16938530497.tar.lz
gsoc2013-epiphany-d42ace6d967556cef7675de7414fb16938530497.tar.xz
gsoc2013-epiphany-d42ace6d967556cef7675de7414fb16938530497.tar.zst
gsoc2013-epiphany-d42ace6d967556cef7675de7414fb16938530497.zip
ephy-window: Always show the top bar in app mode and show/hide title according mode window
* In normal mode: show address bar and hide title and reload/stop buttons. * In web application mode: hidde the address bar and show instead the page title and the reload/stop button. https://bugzilla.gnome.org/show_bug.cgi?id=706050
-rw-r--r--src/ephy-window.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index a57508669..a6cd27d51 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -691,7 +691,7 @@ get_chromes_visibility (EphyWindow *window,
if (ephy_embed_shell_get_mode (ephy_embed_shell_get_default ()) == EPHY_EMBED_SHELL_MODE_APPLICATION)
{
- *show_toolbar = FALSE;
+ *show_toolbar = TRUE;
*show_tabsbar = FALSE;
}
else
@@ -3975,6 +3975,11 @@ ephy_window_constructor (GType type,
mode = ephy_embed_shell_get_mode (ephy_embed_shell_get_default ());
if (mode == EPHY_EMBED_SHELL_MODE_APPLICATION)
{
+ /* We don't need to show the page menu in web application mode. */
+ action = gtk_action_group_get_action (toolbar_action_group, "PageMenu");
+ ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME, TRUE);
+ gtk_action_set_visible (action, FALSE);
+
action = gtk_action_group_get_action (toolbar_action_group, "FileNewTab");
ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME,
TRUE);