[gnome-commander/vte] vte: added "view.terminal" user action



commit b24a182fa9cad63008d48e17e74ad788004b11fa
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Jun 3 20:48:45 2010 +0200

    vte: added "view.terminal" user action

 src/gnome-cmd-user-actions.cc |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 8fa404b..365ecc3 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -207,9 +207,7 @@ static UserActionData user_actions_data[] = {
                                              {view_new_tab, "view.new_tab", N_("Open directory in a new tab")},
                                              {view_refresh, "view.refresh", N_("Refresh")},
                                              {view_root, "view.root", N_("Root directory")},
-#if 0
                                              {view_terminal, "view.terminal", N_("Show terminal")},
-#endif
                                              {view_up, "view.up", N_("Up one directory")},
                                             };
 
@@ -302,7 +300,7 @@ void GnomeCmdUserActions::init()
     }
 
     if (!registered("options.edit"))
-        register_action(GDK_CONTROL_MASK, GDK_O, "options.edit");
+        register_action(GDK_CONTROL_MASK | GDK_SHIFT_MASK, GDK_O, "options.edit");
 
     if (!registered("plugins.execute_python"))
     {
@@ -353,6 +351,12 @@ void GnomeCmdUserActions::init()
     if (!registered("view.close_tab"))
         register_action(GDK_CONTROL_MASK, GDK_W, "view.close_tab");
 
+    if (!registered("view.terminal"))
+    {
+        unregister(GDK_CONTROL_MASK, GDK_O);                       // unregister CTRL+O as it was used previously for options.edit
+        register_action(GDK_CONTROL_MASK, GDK_O, "view.terminal");
+    }
+
     unregister(GDK_F9);                                 // unregister F9 if defined in [key-bindings]
     register_action(GDK_F9, "edit.search");             // and overwrite it with edit.search action
 



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