summaryrefslogtreecommitdiff
path: root/src/file-manager
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-17 08:00:33 +0100
committerraveit65 <[email protected]>2021-04-01 17:07:03 +0200
commit0afa9857c7eb2d6dcfb3b1d90f239f8ecd5ec293 (patch)
tree6d171144361e7cbb0772e9294dfc1cbcd5028e1c /src/file-manager
parent4b479a67349751c1251caa9adb088d72e69695f3 (diff)
downloadcaja-0afa9857c7eb2d6dcfb3b1d90f239f8ecd5ec293.tar.bz2
caja-0afa9857c7eb2d6dcfb3b1d90f239f8ecd5ec293.tar.xz
warning: missing initializer for a field of ‘GtkActionEntry’
Diffstat (limited to 'src/file-manager')
-rw-r--r--src/file-manager/fm-directory-view.c29
-rw-r--r--src/file-manager/fm-icon-view.c24
2 files changed, 27 insertions, 26 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index 9425887b..7431c963 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -7386,9 +7386,10 @@ fm_directory_view_init_show_backup_files (FMDirectoryView *view)
}
static const GtkActionEntry directory_view_entries[] = {
- /* name, icon name, label */ { "New Documents", "document-new", N_("Create _Document") },
+ /* name, icon name, label */ { "New Documents", "document-new", N_("Create _Document"),
+ NULL, NULL, NULL },
/* name, icon name, label */ { "Open With", NULL, N_("Open Wit_h"),
- NULL, N_("Choose a program with which to open the selected item") },
+ NULL, N_("Choose a program with which to open the selected item"), NULL },
/* name, icon name */ { "Properties", "document-properties",
/* label, accelerator */ N_("_Properties"), "<alt>Return",
/* tooltip */ N_("View or modify the properties of each selected item"),
@@ -7401,7 +7402,7 @@ static const GtkActionEntry directory_view_entries[] = {
/* label, accelerator */ N_("Create _Folder"), "<control><shift>N",
/* tooltip */ N_("Create a new empty folder inside this folder"),
G_CALLBACK (action_new_folder_callback) },
- /* name, icon name, label */ { "No Templates", NULL, N_("No templates installed") },
+ /* name, icon name, label */ { "No Templates", NULL, N_("No templates installed"), NULL, NULL, NULL },
/* name, icon name */ { "New Empty File", NULL,
/* Translators: this is used to indicate that a file doesn't contain anything */
/* label, accelerator */ N_("_Empty File"), NULL,
@@ -7465,8 +7466,10 @@ static const GtkActionEntry directory_view_entries[] = {
/* label, accelerator */ N_("_Paste Into Folder"), "",
/* tooltip */ N_("Move or copy files previously selected by a Cut or Copy command into the selected folder"),
G_CALLBACK (action_paste_files_into_callback) },
- /* name, icon name, label */ { "CopyToMenu", NULL, N_("Cop_y to") },
- /* name, icon name, label */ { "MoveToMenu", NULL, N_("M_ove to") },
+ /* name, icon name, label */ { "CopyToMenu", NULL, N_("Cop_y to"),
+ NULL, NULL, NULL },
+ /* name, icon name, label */ { "MoveToMenu", NULL, N_("M_ove to"),
+ NULL, NULL, NULL },
/* name, icon name */ { "Select All", NULL,
/* label, accelerator */ N_("Select _All"), "<control>A",
/* tooltip */ N_("Select all items in this window"),
@@ -7507,14 +7510,14 @@ static const GtkActionEntry directory_view_entries[] = {
/* label, accelerator */ N_("_Restore"), NULL,
NULL,
G_CALLBACK (action_restore_from_trash_callback) },
- /* name, icon name */ { FM_ACTION_UNDO, "edit-undo",
- /* label, accelerator */ N_("_Undo"), "<control>Z",
- /* tooltip */ N_("Undo the last action"),
- G_CALLBACK (action_undo_callback) },
- /* name, icon name */ { FM_ACTION_REDO, "edit-redo",
- /* label, accelerator */ N_("_Redo"), "<control>Y",
- /* tooltip */ N_("Redo the last undone action"),
- G_CALLBACK (action_redo_callback) },
+ /* name, icon name */ { FM_ACTION_UNDO, "edit-undo",
+ /* label, accelerator */ N_("_Undo"), "<control>Z",
+ /* tooltip */ N_("Undo the last action"),
+ G_CALLBACK (action_undo_callback) },
+ /* name, icon name */ { FM_ACTION_REDO, "edit-redo",
+ /* label, accelerator */ N_("_Redo"), "<control>Y",
+ /* tooltip */ N_("Redo the last undone action"),
+ G_CALLBACK (action_redo_callback) },
/*
* multiview-TODO: decide whether "Reset to Defaults" should
diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
index 828ac59f..6d1036ff 100644
--- a/src/file-manager/fm-icon-view.c
+++ b/src/file-manager/fm-icon-view.c
@@ -1706,22 +1706,20 @@ fm_icon_view_start_renaming_file (FMDirectoryView *view,
static const GtkActionEntry icon_view_entries[] =
{
- /* name, stock id, label */ { "Arrange Items", NULL, N_("Arran_ge Items") },
+ /* name, stock id, label */ { "Arrange Items", NULL, N_("Arran_ge Items"),
+ NULL, NULL, NULL },
/* name, stock id */ { "Stretch", NULL,
- /* label, accelerator */ N_("Resize Icon..."), NULL,
- /* tooltip */ N_("Make the selected icon resizable"),
- G_CALLBACK (action_stretch_callback)
- },
+ /* label, accelerator */ N_("Resize Icon..."), NULL,
+ /* tooltip */ N_("Make the selected icon resizable"),
+ G_CALLBACK (action_stretch_callback) },
/* name, stock id */ { "Unstretch", NULL,
- /* label, accelerator */ N_("Restore Icons' Original Si_zes"), NULL,
- /* tooltip */ N_("Restore each selected icon to its original size"),
- G_CALLBACK (action_unstretch_callback)
- },
+ /* label, accelerator */ N_("Restore Icons' Original Si_zes"), NULL,
+ /* tooltip */ N_("Restore each selected icon to its original size"),
+ G_CALLBACK (action_unstretch_callback) },
/* name, stock id */ { "Clean Up", NULL,
- /* label, accelerator */ N_("_Organize by Name"), NULL,
- /* tooltip */ N_("Reposition icons to better fit in the window and avoid overlapping"),
- G_CALLBACK (action_clean_up_callback)
- },
+ /* label, accelerator */ N_("_Organize by Name"), NULL,
+ /* tooltip */ N_("Reposition icons to better fit in the window and avoid overlapping"),
+ G_CALLBACK (action_clean_up_callback) },
};
static const GtkToggleActionEntry icon_view_toggle_entries[] =