aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2013-09-15 20:35:07 +0800
committerLAN-TW <lantw44@gmail.com>2013-09-16 22:10:57 +0800
commit5508e5e6b1f4e3ec7d3fc84aa7533ae88014487d (patch)
tree0132580bf8b0785b2600f88aa7f22e996ec1f4fa /src
parent240be1762b670533729a8a27239bd93f92a5b78a (diff)
downloadgsoc2013-epiphany-gsoc2013-end.tar
gsoc2013-epiphany-gsoc2013-end.tar.gz
gsoc2013-epiphany-gsoc2013-end.tar.bz2
gsoc2013-epiphany-gsoc2013-end.tar.lz
gsoc2013-epiphany-gsoc2013-end.tar.xz
gsoc2013-epiphany-gsoc2013-end.tar.zst
gsoc2013-epiphany-gsoc2013-end.zip
Show "Stop Archiving" only when the EphyWebView is archivinggsoc2013-end
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index a1b33649f..d2b76e735 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1994,8 +1994,11 @@ populate_context_menu (WebKitWebView *web_view,
priv->toolbar_action_group, "NavigationForward");
add_action_to_context_menu (context_menu,
priv->action_group, "ViewReload");
- add_action_to_context_menu (context_menu,
+
+ if (ephy_web_view_get_is_archiving (EPHY_WEB_VIEW (web_view)))
+ add_action_to_context_menu (context_menu,
priv->action_group, "ViewStopArchiving");
+
webkit_context_menu_append (context_menu,
webkit_context_menu_item_new_separator ());
add_action_to_context_menu (context_menu,