[gnome-commander] Adds user action for viewing all bookmarks of current device



commit 871b8c7d554cc29c6cf8d21b17928236198207a9
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Tue Nov 1 20:40:52 2016 +0100

    Adds user action for viewing all bookmarks of current device

 src/gnome-cmd-user-actions.cc |    7 +++++++
 src/gnome-cmd-user-actions.h  |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index f8dbf8f..92b0684 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -193,6 +193,7 @@ static UserActionData user_actions_data[] = {
                                              {bookmarks_add_current, "bookmarks.add_current", N_("Bookmark 
current directory")},
                                              {bookmarks_edit, "bookmarks.edit", N_("Manage bookmarks")},
                                              {bookmarks_goto, "bookmarks.goto", N_("Go to bookmarked 
location")},
+                                             {bookmarks_view, "bookmarks.view", N_("Show bookmarks of 
current device")},
                                              {command_execute, "command.execute", N_("Execute command")},
                                              {command_open_terminal, "command.open_terminal", N_("Open 
terminal")},
                                              {command_open_terminal_as_root, 
"command.open_terminal_as_root", N_("Open terminal as root")},
@@ -1947,6 +1948,12 @@ void bookmarks_goto (GtkMenuItem *menuitem, gpointer bookmark_name)
 }
 
 
+void bookmarks_view (GtkMenuItem *menuitem, gpointer not_used)
+{
+    gnome_cmd_dir_indicator_show_bookmarks (GNOME_CMD_DIR_INDICATOR (get_fs (ACTIVE)->dir_indicator));
+}
+
+
 /************** Plugins Menu **************/
 
 void plugins_configure (GtkMenuItem *menuitem, gpointer not_used)
diff --git a/src/gnome-cmd-user-actions.h b/src/gnome-cmd-user-actions.h
index 8663dbc..5f92c61 100644
--- a/src/gnome-cmd-user-actions.h
+++ b/src/gnome-cmd-user-actions.h
@@ -321,6 +321,7 @@ GNOME_CMD_USER_ACTION(view_step_down);
 GNOME_CMD_USER_ACTION(bookmarks_add_current);
 GNOME_CMD_USER_ACTION(bookmarks_edit);
 GNOME_CMD_USER_ACTION(bookmarks_goto);
+GNOME_CMD_USER_ACTION(bookmarks_view);
 
 /************** Options Menu **************/
 GNOME_CMD_USER_ACTION(options_edit);


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