diff options
author | rbuj <[email protected]> | 2021-10-28 12:37:37 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2021-12-14 21:03:25 +0000 |
commit | c92b3aa972b3b2a7a00dfb2b3f9c4d96add929e2 (patch) | |
tree | 2cd9a76e2b370915daf03ec9eec324e5abb63769 /mate-panel | |
parent | 09674ba9f9b9d6b6cb4b88d9fe81c30aaccef8e6 (diff) | |
download | mate-panel-c92b3aa972b3b2a7a00dfb2b3f9c4d96add929e2.tar.bz2 mate-panel-c92b3aa972b3b2a7a00dfb2b3f9c4d96add929e2.tar.xz |
Fix build warnings about missing field initializer
Diffstat (limited to 'mate-panel')
-rw-r--r-- | mate-panel/main.c | 2 | ||||
-rw-r--r-- | mate-panel/mate-desktop-item-edit.c | 2 | ||||
-rw-r--r-- | mate-panel/panel-test-applets.c | 2 | ||||
-rw-r--r-- | mate-panel/xstuff.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/mate-panel/main.c b/mate-panel/main.c index 2fc35696..f8c35f09 100644 --- a/mate-panel/main.c +++ b/mate-panel/main.c @@ -59,7 +59,7 @@ static const GOptionEntry options[] = { { "run-dialog", 0, 0, G_OPTION_ARG_NONE, &run_dialog, N_("Execute the run dialog"), NULL }, /* default panels layout */ { "layout", 0, 0, G_OPTION_ARG_STRING, &layout, N_("Set the default panel layout"), NULL }, - { NULL } + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; static void diff --git a/mate-panel/mate-desktop-item-edit.c b/mate-panel/mate-desktop-item-edit.c index 72853939..9f970f1d 100644 --- a/mate-panel/mate-desktop-item-edit.c +++ b/mate-panel/mate-desktop-item-edit.c @@ -26,7 +26,7 @@ static char **desktops = NULL; static GOptionEntry options[] = { { "create-new", 0, 0, G_OPTION_ARG_NONE, &create_new, N_("Create new file in the given directory"), NULL }, { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &desktops, NULL, N_("[FILE...]") }, - { NULL } + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; static void diff --git a/mate-panel/panel-test-applets.c b/mate-panel/panel-test-applets.c index 3f0000e2..05b60cd1 100644 --- a/mate-panel/panel-test-applets.c +++ b/mate-panel/panel-test-applets.c @@ -41,7 +41,7 @@ static const GOptionEntry options [] = { { "prefs-path", 0, 0, G_OPTION_ARG_STRING, &cli_prefs_path, N_("Specify a gsettings path in which the applet preferences should be stored"), NULL}, { "size", 0, 0, G_OPTION_ARG_STRING, &cli_size, N_("Specify the initial size of the applet (xx-small, medium, large etc.)"), NULL}, { "orient", 0, 0, G_OPTION_ARG_STRING, &cli_orient, N_("Specify the initial orientation of the applet (top, bottom, left or right)"), NULL}, - { NULL} + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; enum { diff --git a/mate-panel/xstuff.c b/mate-panel/xstuff.c index bffa507a..ee18522b 100644 --- a/mate-panel/xstuff.c +++ b/mate-panel/xstuff.c @@ -233,7 +233,7 @@ draw_zoom_animation (GdkScreen *gscreen, int i, j; GC frame_gc; XGCValues gcv; - GdkColor color = { 65535, 65535, 65535 }; + GdkColor color = { .pixel = 0, .red = 65535, .green = 65535, .blue = 65535 }; Display *dpy; Window root_win; int screen; |