[epiphany] ephy-window: Allow again undo and redo and work again accel Ctrl+Z and Shift+Ctrl+Z



commit e3df5031c2508f54fbaa4aac3051b7b9b59347a2
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Thu Nov 14 16:49:48 2013 +0200

    ephy-window: Allow again undo and redo and work again accel Ctrl+Z and Shift+Ctrl+Z
    
    * Add Undo and Redo to the gear menu
    * Add Undo and Redo to the popup menu when context is editable
    * Work again Ctrl+Z accel to Undo and Shift+Ctrl+Z accel to Redo
    * Bump the WebKitGTK+ requirements to 2.2.2
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698703

 configure.ac                  |    2 +-
 src/ephy-window.c             |    6 ++++++
 src/resources/epiphany-ui.xml |    3 +++
 3 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 255dc00..d27ae86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,7 +69,7 @@ GLIB_REQUIRED=2.35.6
 GTK_REQUIRED=3.9.12
 LIBXML_REQUIRED=2.6.12
 LIBXSLT_REQUIRED=1.1.7
-WEBKIT_GTK_REQUIRED=2.1.4
+WEBKIT_GTK_REQUIRED=2.2.2
 LIBSOUP_REQUIRED=2.42.1
 GNOME_DESKTOP_REQUIRED=2.91.2
 LIBSECRET_REQUIRED=0.14
diff --git a/src/ephy-window.c b/src/ephy-window.c
index b8896a4..a2e655f 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1956,6 +1956,12 @@ populate_context_menu (WebKitWebView *web_view,
                update_edit_actions_sensitivity (window, FALSE);
 
                add_action_to_context_menu (context_menu,
+                                           priv->action_group, "EditUndo");
+               add_action_to_context_menu (context_menu,
+                                           priv->action_group, "EditRedo");
+               webkit_context_menu_append (context_menu,
+                                           webkit_context_menu_item_new_separator ());
+               add_action_to_context_menu (context_menu,
                                            priv->action_group, "EditCut");
                add_action_to_context_menu (context_menu,
                                            priv->action_group, "EditCopy");
diff --git a/src/resources/epiphany-ui.xml b/src/resources/epiphany-ui.xml
index ba40007..2faa796 100644
--- a/src/resources/epiphany-ui.xml
+++ b/src/resources/epiphany-ui.xml
@@ -77,6 +77,9 @@
                 <menuitem name="FileSaveAsMenu" action="FileSaveAs"/>
                 <menuitem name="FileSaveAsApplicationMenu" action="FileSaveAsApplication"/>
                 <separator name="FileSep2"/>
+                <menuitem name="EditUndoMenu" action="EditUndo"/>
+                <menuitem name="EditRedoMenu" action="EditRedo"/>
+                <separator name="EditSep2"/> 
                 <menuitem name="EditCutMenu" action="EditCut"/>
                 <menuitem name="EditCopyMenu" action="EditCopy"/>
                 <menuitem name="EditPasteMenu" action="EditPaste"/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]