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-15 20:35:51 +0800
commitf69c1fa76e874e0dd4210d896174b03c6d250fba (patch)
tree1a9dbf399079d61f510b0472a50d307fb071fd24 /src
parent17c25e5bdfa617b67ac3a40f4d7a43f70cb8e91f (diff)
downloadgsoc2013-epiphany-f69c1fa76e874e0dd4210d896174b03c6d250fba.tar.gz
gsoc2013-epiphany-f69c1fa76e874e0dd4210d896174b03c6d250fba.tar.zst
gsoc2013-epiphany-f69c1fa76e874e0dd4210d896174b03c6d250fba.zip
Show "Stop Archiving" only when the EphyWebView is archivingHEADarchive-creationarchive-integration
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 c05734ab8..57364cd70 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1996,8 +1996,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,