diff options
author | rbuj <[email protected]> | 2021-10-28 13:49:11 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-08-20 20:07:33 +0000 |
commit | 0f2374f59767e2117456a88ada65e207fa471cd6 (patch) | |
tree | 27cc7278f11c26d046135d7d0bbae389a48dbc4e | |
parent | b9a25a4f24ffb23874e0923f63c75149f13b071c (diff) | |
download | mate-desktop-0f2374f59767e2117456a88ada65e207fa471cd6.tar.bz2 mate-desktop-0f2374f59767e2117456a88ada65e207fa471cd6.tar.xz |
Fix build warnings about missing field initializer
-rw-r--r-- | libmate-desktop/mate-colorsel.c | 6 | ||||
-rw-r--r-- | mate-about/mate-about.h.in | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libmate-desktop/mate-colorsel.c b/libmate-desktop/mate-colorsel.c index 1bd5107..16dc81e 100644 --- a/libmate-desktop/mate-colorsel.c +++ b/libmate-desktop/mate-colorsel.c @@ -892,7 +892,7 @@ static void color_sample_setup_dnd (MateColorSelection *colorsel, GtkWidget *sample) { static const GtkTargetEntry targets[] = { - { "application/x-color", 0 } + { .target = "application/x-color", .flags = 0, .info = 0 } }; MateColorSelectionPrivate *priv; priv = colorsel->private_data; @@ -1258,7 +1258,7 @@ palette_set_color (GtkWidget *drawing_area, if (!pointer || GPOINTER_TO_INT (pointer) == 0) { static const GtkTargetEntry targets[] = { - { "application/x-color", 0 } + { .target = "application/x-color", .flags = 0, .info = 0 } }; gtk_drag_source_set (drawing_area, GDK_BUTTON1_MASK | GDK_BUTTON3_MASK, @@ -1539,7 +1539,7 @@ static GtkWidget* palette_new (MateColorSelection *colorsel) { static const GtkTargetEntry targets[] = { - { "application/x-color", 0 } + { .target = "application/x-color", .flags = 0, .info = 0 } }; GtkWidget *retval = gtk_drawing_area_new (); diff --git a/mate-about/mate-about.h.in b/mate-about/mate-about.h.in index bef6f8d..503a513 100644 --- a/mate-about/mate-about.h.in +++ b/mate-about/mate-about.h.in @@ -664,7 +664,7 @@ static void mate_about_on_activate(GtkApplication* app); // arguments definitions static GOptionEntry command_entries[] = { {"version", 'v', 0, G_OPTION_ARG_NONE, &mate_about_nogui, "Show MATE version", NULL}, - {NULL} + {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL} }; #endif /* __MATE_ABOUT_H__ */ |