[gnome-commander/gcmd-1-6] Adds user action for viewing all bookmarks of current device
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-6] Adds user action for viewing all bookmarks of current device
- Date: Wed, 2 Nov 2016 18:02:37 +0000 (UTC)
commit a6d109cec8078fe11b9fd13c316f5bb484a0ce14
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 ab4df79..249558c 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")},
@@ -1930,6 +1931,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 b242ddd..d85fe0d 100644
--- a/src/gnome-cmd-user-actions.h
+++ b/src/gnome-cmd-user-actions.h
@@ -319,6 +319,7 @@ GNOME_CMD_USER_ACTION(view_main_menu);
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]