summaryrefslogtreecommitdiff
path: root/src/ui.h
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-02-07 22:01:52 +0100
committerraveit65 <[email protected]>2018-02-09 18:00:22 +0100
commit2e9c1a1d447ddc1c54b94d1dcc6b99437b7f601f (patch)
treeb43ee75fcfe5eb192f0a552ed1b93a7b4c92c123 /src/ui.h
parentb5651bbf352124f52c8bda943042b04a571a9a84 (diff)
downloadengrampa-2e9c1a1d447ddc1c54b94d1dcc6b99437b7f601f.tar.bz2
engrampa-2e9c1a1d447ddc1c54b94d1dcc6b99437b7f601f.tar.xz
avoid deprecated GtkStock
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h102
1 files changed, 51 insertions, 51 deletions
diff --git a/src/ui.h b/src/ui.h
index 01656ae..aab5adf 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -35,8 +35,8 @@ static GtkActionEntry action_entries[] = {
{ "HelpMenu", NULL, N_("_Help") },
{ "ArrangeFilesMenu", NULL, N_("_Arrange Files") },
- { "About", GTK_STOCK_ABOUT,
- NULL, NULL,
+ { "About", "help-about",
+ N_("_About"), NULL,
N_("Information about the program"),
G_CALLBACK (activate_action_about) },
{ "AddFiles", FR_STOCK_ADD_FILES,
@@ -55,54 +55,54 @@ static GtkActionEntry action_entries[] = {
N_("Add Folder"), NULL,
N_("Add a folder to the archive"),
G_CALLBACK (activate_action_add_folder) },
- { "Close", GTK_STOCK_CLOSE,
- NULL, NULL,
+ { "Close", "window-close",
+ N_("_Close"), "<control>W",
N_("Close the current archive"),
G_CALLBACK (activate_action_close) },
- { "Contents", GTK_STOCK_HELP,
+ { "Contents", "help-browser",
N_("Contents"), "F1",
N_("Display the Engrampa Manual"),
G_CALLBACK (activate_action_manual) },
- { "Copy", GTK_STOCK_COPY,
- NULL, NULL,
+ { "Copy", "edit-copy",
+ N_("_Copy"), "<control>C",
N_("Copy the selection"),
G_CALLBACK (activate_action_copy) },
- { "Cut", GTK_STOCK_CUT,
- NULL, NULL,
+ { "Cut", "edit-cut",
+ N_("Cu_t"), "<control>X",
N_("Cut the selection"),
G_CALLBACK (activate_action_cut) },
- { "Paste", GTK_STOCK_PASTE,
- NULL, NULL,
+ { "Paste", "edit-paste",
+ N_("_Paste"), "<control>V",
N_("Paste the clipboard"),
G_CALLBACK (activate_action_paste) },
{ "Rename", NULL,
N_("_Rename…"), "F2",
N_("Rename the selection"),
G_CALLBACK (activate_action_rename) },
- { "Delete", GTK_STOCK_DELETE,
- NULL, "Delete",
+ { "Delete", "edit-delete",
+ N_("_Delete"), "Delete",
N_("Delete the selection from the archive"),
G_CALLBACK (activate_action_delete) },
- { "CopyFolderFromSidebar", GTK_STOCK_COPY,
- NULL, NULL,
+ { "CopyFolderFromSidebar", "edit-copy",
+ N_("_Copy"), "<control>C",
N_("Copy the selection"),
G_CALLBACK (activate_action_copy_folder_from_sidebar) },
- { "CutFolderFromSidebar", GTK_STOCK_CUT,
- NULL, NULL,
+ { "CutFolderFromSidebar", "edit-cut",
+ N_("Cu_t"), "<control>X",
N_("Cut the selection"),
G_CALLBACK (activate_action_cut_folder_from_sidebar) },
- { "PasteFolderFromSidebar", GTK_STOCK_PASTE,
- NULL, NULL,
+ { "PasteFolderFromSidebar", "edit-paste",
+ N_("_Paste"), "<control>V",
N_("Paste the clipboard"),
G_CALLBACK (activate_action_paste_folder_from_sidebar) },
{ "RenameFolderFromSidebar", NULL,
N_("_Rename…"), "F2",
N_("Rename the selection"),
G_CALLBACK (activate_action_rename_folder_from_sidebar) },
- { "DeleteFolderFromSidebar", GTK_STOCK_DELETE,
- NULL, NULL,
+ { "DeleteFolderFromSidebar", "edit-delete",
+ N_("_Delete"), "Delete",
N_("Delete the selection from the archive"),
G_CALLBACK (activate_action_delete_folder_from_sidebar) },
@@ -122,8 +122,8 @@ static GtkActionEntry action_entries[] = {
N_("Extract"), NULL,
N_("Extract files from the archive"),
G_CALLBACK (activate_action_extract) },
- { "Find", GTK_STOCK_FIND,
- N_("Find…"), NULL,
+ { "Find", "edit-find",
+ N_("Find…"), "<control>F",
NULL,
G_CALLBACK (activate_action_find) },
@@ -131,16 +131,16 @@ static GtkActionEntry action_entries[] = {
N_("_Last Output"), NULL,
N_("View the output produced by the last executed command"),
G_CALLBACK (activate_action_last_output) },
- { "New", GTK_STOCK_NEW,
- N_("New…"), NULL,
+ { "New", "document-new",
+ N_("New…"), "<control>N",
N_("Create a new archive"),
G_CALLBACK (activate_action_new) },
- { "Open", GTK_STOCK_OPEN,
- N_("Open…"), NULL,
+ { "Open", "document-open",
+ N_("Open…"), "<control>O",
N_("Open archive"),
G_CALLBACK (activate_action_open) },
- { "Open_Toolbar", GTK_STOCK_OPEN,
- NULL, NULL,
+ { "Open_Toolbar", "document-open",
+ N_("_Open"), "<control>O",
N_("Open archive"),
G_CALLBACK (activate_action_open) },
{ "OpenSelection", NULL,
@@ -151,60 +151,60 @@ static GtkActionEntry action_entries[] = {
N_("Pass_word…"), NULL,
N_("Specify a password for this archive"),
G_CALLBACK (activate_action_password) },
- { "Properties", GTK_STOCK_PROPERTIES,
- NULL, "<alt>Return",
+ { "Properties", "document-properties",
+ N_("_Properties"), "<alt>Return",
N_("Show archive properties"),
G_CALLBACK (activate_action_properties) },
- { "Reload", GTK_STOCK_REFRESH,
- NULL, "<control>R",
+ { "Reload", "view-refresh",
+ N_("_Refresh"), "<control>R",
N_("Reload current archive"),
G_CALLBACK (activate_action_reload) },
- { "SaveAs", GTK_STOCK_SAVE_AS,
+ { "SaveAs", "document-save-as",
N_("Save As…"), NULL,
N_("Save the current archive with a different name"),
G_CALLBACK (activate_action_save_as) },
- { "SelectAll", GTK_STOCK_SELECT_ALL,
- NULL, "<control>A",
+ { "SelectAll", "edit-select-all",
+ N_("Select _All"), "<control>A",
N_("Select all files"),
G_CALLBACK (activate_action_select_all) },
- { "Stop", GTK_STOCK_STOP,
- NULL, "Escape",
+ { "Stop", "process-stop",
+ N_("_Stop"), "Escape",
N_("Stop current operation"),
G_CALLBACK (activate_action_stop) },
{ "TestArchive", NULL,
N_("_Test Integrity"), NULL,
N_("Test whether the archive contains errors"),
G_CALLBACK (activate_action_test_archive) },
- { "ViewSelection", GTK_STOCK_OPEN,
- NULL, NULL,
+ { "ViewSelection", "document-open",
+ N_("_Open"), "<control>O",
N_("Open the selected file"),
G_CALLBACK (activate_action_view_or_open) },
- { "ViewSelection_Toolbar", GTK_STOCK_OPEN,
- NULL, NULL,
+ { "ViewSelection_Toolbar", "document-open",
+ N_("_Open"), "<control>O",
N_("Open the selected file"),
G_CALLBACK (activate_action_view_or_open) },
- { "OpenFolder", GTK_STOCK_OPEN,
- NULL, NULL,
+ { "OpenFolder", "document-open",
+ N_("_Open"), "<control>O",
N_("Open the selected folder"),
G_CALLBACK (activate_action_open_folder) },
- { "OpenFolderFromSidebar", GTK_STOCK_OPEN,
- NULL, NULL,
+ { "OpenFolderFromSidebar", "document-open",
+ N_("_Open"), "<control>O",
N_("Open the selected folder"),
G_CALLBACK (activate_action_open_folder_from_sidebar) },
- { "GoBack", GTK_STOCK_GO_BACK,
- NULL, NULL,
+ { "GoBack", "go-previous",
+ "Back", NULL,
N_("Go to the previous visited location"),
G_CALLBACK (activate_action_go_back) },
- { "GoForward", GTK_STOCK_GO_FORWARD,
+ { "GoForward", "go-next",
NULL, NULL,
N_("Go to the next visited location"),
G_CALLBACK (activate_action_go_forward) },
- { "GoUp", GTK_STOCK_GO_UP,
+ { "GoUp", "go-up",
NULL, NULL,
N_("Go up one level"),
G_CALLBACK (activate_action_go_up) },
- { "GoHome", GTK_STOCK_HOME,
+ { "GoHome", "go-home",
NULL, NULL,
/* Translators: the home location is the home folder. */
N_("Go to the home location"),