aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-04-07 13:58:43 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-06-15 07:16:09 +0800
commitbab0d69b121a3693295e3f7a71ba9367cb65445b (patch)
tree341e37315b2e9107d83127e7ebb1277a8cad18d5
parent9954541fdc25579033d396554717b4e4c30c8cfb (diff)
downloadgsoc2013-epiphany-bab0d69b121a3693295e3f7a71ba9367cb65445b.tar
gsoc2013-epiphany-bab0d69b121a3693295e3f7a71ba9367cb65445b.tar.gz
gsoc2013-epiphany-bab0d69b121a3693295e3f7a71ba9367cb65445b.tar.bz2
gsoc2013-epiphany-bab0d69b121a3693295e3f7a71ba9367cb65445b.tar.lz
gsoc2013-epiphany-bab0d69b121a3693295e3f7a71ba9367cb65445b.tar.xz
gsoc2013-epiphany-bab0d69b121a3693295e3f7a71ba9367cb65445b.tar.zst
gsoc2013-epiphany-bab0d69b121a3693295e3f7a71ba9367cb65445b.zip
ephy-web-view: remove unused EphyWebViewChrome elements
https://bugzilla.gnome.org/show_bug.cgi?id=676904
-rw-r--r--embed/ephy-web-view.c4
-rw-r--r--embed/ephy-web-view.h10
-rw-r--r--src/ephy-shell.c5
3 files changed, 5 insertions, 14 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index e4ae30f09..2b4af2954 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -202,11 +202,9 @@ popups_manager_new_window_info (EphyEmbedContainer *container)
gtk_widget_get_allocation (GTK_WIDGET (embed), &allocation);
features = g_strdup_printf
- ("width=%d,height=%d,menubar=%d,status=%d,toolbar=%d",
+ ("width=%d,height=%d,toolbar=%d",
allocation.width,
allocation.height,
- (chrome & EPHY_WEB_VIEW_CHROME_MENUBAR) > 0,
- (chrome & EPHY_WEB_VIEW_CHROME_STATUSBAR) > 0,
(chrome & EPHY_WEB_VIEW_CHROME_TOOLBAR) > 0);
return features;
diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h
index 1ffa7ee8a..2bdd7dbed 100644
--- a/embed/ephy-web-view.h
+++ b/embed/ephy-web-view.h
@@ -51,16 +51,10 @@ typedef enum
typedef enum
{
- EPHY_WEB_VIEW_CHROME_MENUBAR = 1 << 0,
- EPHY_WEB_VIEW_CHROME_TOOLBAR = 1 << 1,
- EPHY_WEB_VIEW_CHROME_STATUSBAR = 1 << 2,
- EPHY_WEB_VIEW_CHROME_BOOKMARKSBAR = 1 << 3
+ EPHY_WEB_VIEW_CHROME_TOOLBAR = 1 << 0,
} EphyWebViewChrome;
-#define EPHY_WEB_VIEW_CHROME_ALL (EPHY_WEB_VIEW_CHROME_MENUBAR | \
- EPHY_WEB_VIEW_CHROME_TOOLBAR | \
- EPHY_WEB_VIEW_CHROME_STATUSBAR | \
- EPHY_WEB_VIEW_CHROME_BOOKMARKSBAR)
+#define EPHY_WEB_VIEW_CHROME_ALL (EPHY_WEB_VIEW_CHROME_TOOLBAR)
typedef enum
{
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 35325b8cf..36e453f90 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -514,10 +514,9 @@ ephy_shell_new_window_cb (EphyEmbedSingle *single,
parent = gtk_widget_get_toplevel (GTK_WIDGET (parent_embed));
}
- /* what's a popup ? ATM, any window opened with menubar toggled on
- * is *not* a popup
+ /* Any window opened with a toolbar is *not* a popup.
*/
- is_popup = (chromemask & EPHY_WEB_VIEW_CHROME_MENUBAR) == 0;
+ is_popup = (chromemask & EPHY_WEB_VIEW_CHROME_TOOLBAR) == 0;
return ephy_shell_new_tab_full
(shell,