From: Federico Mena Quintero Date: Thu, 19 Aug 2010 20:46:28 +0000 (-0500) Subject: Stub for new command - Open Containing Folder X-Git-Tag: EVINCE_2_91_0~43^2~2 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=9b576bb1b5c4f6f3707144ad05b0d04f67efd953;p=evince.git Stub for new command - Open Containing Folder This is like the same command in Firefox's 'Downloads' window. People will be able to use it to show the folder that contains the file being viewed in Evince. This will let people easily rename the file, delete it, etc. Signed-off-by: Federico Mena Quintero --- diff --git a/data/evince-toolbar.xml b/data/evince-toolbar.xml index b87bf717..1779edfd 100644 --- a/data/evince-toolbar.xml +++ b/data/evince-toolbar.xml @@ -4,6 +4,7 @@ + @@ -35,5 +36,7 @@ + + diff --git a/data/evince-ui.xml b/data/evince-ui.xml index f8e750db..80675466 100644 --- a/data/evince-ui.xml +++ b/data/evince-ui.xml @@ -4,6 +4,7 @@ + @@ -86,6 +87,7 @@ + diff --git a/shell/ev-window.c b/shell/ev-window.c index 89d18d99..40fb7000 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2862,6 +2862,12 @@ ev_window_cmd_save_as (GtkAction *action, EvWindow *ev_window) gtk_widget_show (fc); } +static void +ev_window_cmd_open_containing_folder (GtkAction *action, EvWindow *ev_window) +{ + /* FIXME */ +} + static GKeyFile * get_print_settings_file (void) { @@ -5406,6 +5412,9 @@ static const GtkActionEntry entries[] = { { "FileSaveAs", GTK_STOCK_SAVE_AS, N_("_Save a Copy…"), "S", N_("Save a copy of the current document"), G_CALLBACK (ev_window_cmd_save_as) }, + { "FileOpenContainingFolder", GTK_STOCK_DIRECTORY, N_("Open Containing _Folder"), NULL, + N_("Show the folder which contains this file in the file manager"), + G_CALLBACK (ev_window_cmd_open_containing_folder) }, { "FilePrint", GTK_STOCK_PRINT, N_("_Print…"), "P", N_("Print this document"), G_CALLBACK (ev_window_cmd_file_print) },