aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@.gnome.org>2003-08-14 03:17:03 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-08-14 03:17:03 +0800
commita85acf972a5cfa1b6cff927de2c74130d29928e2 (patch)
treeda8d3955f63114ef8215fab217a40114f6b38b33 /src/ephy-window.c
parent2b694ee3289f08527ad278b811cdd76d8408cdb7 (diff)
downloadgsoc2013-epiphany-a85acf972a5cfa1b6cff927de2c74130d29928e2.tar
gsoc2013-epiphany-a85acf972a5cfa1b6cff927de2c74130d29928e2.tar.gz
gsoc2013-epiphany-a85acf972a5cfa1b6cff927de2c74130d29928e2.tar.bz2
gsoc2013-epiphany-a85acf972a5cfa1b6cff927de2c74130d29928e2.tar.lz
gsoc2013-epiphany-a85acf972a5cfa1b6cff927de2c74130d29928e2.tar.xz
gsoc2013-epiphany-a85acf972a5cfa1b6cff927de2c74130d29928e2.tar.zst
gsoc2013-epiphany-a85acf972a5cfa1b6cff927de2c74130d29928e2.zip
Do not show popups on print preview.
2003-08-13 Marco Pesenti Gritti <marco@.gnome.org> * src/ephy-window.c: (show_embed_popup): Do not show popups on print preview. * src/ppview-toolbar.c: (ppview_toolbar_set_window), (ppview_toolbar_init), (toolbar_cmd_ppv_goto_first), (toolbar_cmd_ppv_goto_last), (clamp_page_limits), (toolbar_cmd_ppv_go_back), (toolbar_cmd_ppv_go_forward): Use only known to work api to navigate.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 41944f37b..59ff4e30e 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1064,6 +1064,12 @@ show_embed_popup (EphyWindow *window, EphyTab *tab, EphyEmbedEvent *event)
GtkWidget *widget;
EphyEmbedEventType type;
+ /* Do not show the menu in print preview mode */
+ if (window->priv->chrome_mask & EMBED_CHROME_PPVIEWTOOLBARON)
+ {
+ return;
+ }
+
ephy_embed_event_get_property (event, "framed_page", &value);
framed = g_value_get_int (value);