gnome-commander r2430 - branches/gcmd-1-3/src



Author: epiotr
Date: Wed Jan 14 21:28:04 2009
New Revision: 2430
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2430&view=rev

Log:
tabs: added (empty) user actions for open/close tabs

Modified:
   branches/gcmd-1-3/src/gnome-cmd-file-list.cc
   branches/gcmd-1-3/src/gnome-cmd-user-actions.cc
   branches/gcmd-1-3/src/gnome-cmd-user-actions.h

Modified: branches/gcmd-1-3/src/gnome-cmd-file-list.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-list.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-list.cc	Wed Jan 14 21:28:04 2009
@@ -57,9 +57,7 @@
 
 #if 0
 static char *msgs[] = {N_("Open in New _Tab"),
-                       N_("_Close Tab"),
-                       N_("Close the current tab"),
-                       N_("Open directory in a new tab")};
+                       N_("_Close Tab")};
 #endif
 
 

Modified: branches/gcmd-1-3/src/gnome-cmd-user-actions.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-user-actions.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-user-actions.cc	Wed Jan 14 21:28:04 2009
@@ -189,6 +189,7 @@
                                              {plugins_configure, "plugins.configure", N_("Configure plugins")},
                                              {plugins_execute_python, "plugins.execute_python", N_("Execute python plugin")},
                                              {view_back, "view.back", N_("Back one directory")},
+                                             {view_close_tab, "view.close_tab", N_("Close the current tab")},
                                              {view_equal_panes, "view.equal_panes", N_("Equal panel size")},
                                              {view_first, "view.first", N_("Back to the first directory")},
                                              {view_forward, "view.forward", N_("Forward one directory")},
@@ -198,6 +199,7 @@
                                              {view_in_left_pane, "view.in_left_pane", N_("Open directory in the left window")},
                                              {view_in_right_pane, "view.in_right_pane", N_("Open directory in the right window")},
                                              {view_last, "view.last", N_("Forward to the last directory")},
+                                             {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")},
                                              {view_up, "view.up", N_("Up one directory")},
@@ -1368,6 +1370,16 @@
 }
 
 
+void view_new_tab (GtkMenuItem *menuitem, gpointer not_used)
+{
+}
+
+
+void view_close_tab (GtkMenuItem *menuitem, gpointer not_used)
+{
+}
+
+
 /************** Options Menu **************/
 void options_edit (GtkMenuItem *menuitem, gpointer not_used)
 {

Modified: branches/gcmd-1-3/src/gnome-cmd-user-actions.h
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-user-actions.h	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-user-actions.h	Wed Jan 14 21:28:04 2009
@@ -287,6 +287,8 @@
 GNOME_CMD_USER_ACTION(view_in_inactive_pane);
 GNOME_CMD_USER_ACTION(view_home);
 GNOME_CMD_USER_ACTION(view_root);
+GNOME_CMD_USER_ACTION(view_new_tab);
+GNOME_CMD_USER_ACTION(view_close_tab);
 
 /************** Bookmarks Menu **************/
 GNOME_CMD_USER_ACTION(bookmarks_add_current);



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