summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-17 07:08:25 +0100
committerraveit65 <[email protected]>2021-03-30 15:44:35 +0200
commit1214ee735f4ce6c3ed09d2b138f91cae62a1cf4a (patch)
treed2682158bd337464bb50b5e1af7909b54aea95e7
parent594ca7ccd2429972387855cb035c28841fb926bc (diff)
downloadeom-1214ee735f4ce6c3ed09d2b138f91cae62a1cf4a.tar.bz2
eom-1214ee735f4ce6c3ed09d2b138f91cae62a1cf4a.tar.xz
eom-window: Remove -Wmissing-field-initializers warnings
-rw-r--r--src/eom-window.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index a431674..607b2fb 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -3756,12 +3756,12 @@ eom_window_cmd_go_random (GtkAction *action, gpointer user_data)
}
static const GtkActionEntry action_entries_window[] = {
- { "Image", NULL, N_("_Image") },
- { "Edit", NULL, N_("_Edit") },
- { "View", NULL, N_("_View") },
- { "Go", NULL, N_("_Go") },
- { "Tools", NULL, N_("_Tools") },
- { "Help", NULL, N_("_Help") },
+ { "Image", NULL, N_("_Image"), NULL, NULL, NULL },
+ { "Edit", NULL, N_("_Edit"), NULL, NULL, NULL },
+ { "View", NULL, N_("_View"), NULL, NULL, NULL },
+ { "Go", NULL, N_("_Go"), NULL, NULL, NULL },
+ { "Tools", NULL, N_("_Tools"), NULL, NULL, NULL },
+ { "Help", NULL, N_("_Help"), NULL, NULL, NULL },
{ "ImageOpen", "document-open", N_("_Open…"), "<control>O",
N_("Open a file"),
@@ -4323,7 +4323,8 @@ eom_window_open_editor (GtkAction *action,
{
GdkAppLaunchContext *context;
GAppInfo *app_info;
- GList files;
+ GList *files = NULL;
+ GFile *file;
app_info = get_appinfo_for_editor (window);
@@ -4339,15 +4340,14 @@ eom_window_open_editor (GtkAction *action,
gdk_app_launch_context_set_timestamp (context,
gtk_get_current_event_time ());
- {
- GList f = { eom_image_get_file (window->priv->image) };
- files = f;
- }
+ file = eom_image_get_file (window->priv->image);
+ files = g_list_append (files, file);
g_app_info_launch (app_info, &files,
G_APP_LAUNCH_CONTEXT (context), NULL);
- g_object_unref (files.data);
+ g_list_free (files);
+ g_object_unref (file);
g_object_unref (context);
}