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 | |
parent | 09674ba9f9b9d6b6cb4b88d9fe81c30aaccef8e6 (diff) | |
download | mate-panel-c92b3aa972b3b2a7a00dfb2b3f9c4d96add929e2.tar.bz2 mate-panel-c92b3aa972b3b2a7a00dfb2b3f9c4d96add929e2.tar.xz |
Fix build warnings about missing field initializer
-rw-r--r-- | libmate-panel-applet/mate-panel-applet-factory.c | 3 | ||||
-rw-r--r-- | libmate-panel-applet/mate-panel-applet.c | 6 | ||||
-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 |
6 files changed, 10 insertions, 7 deletions
diff --git a/libmate-panel-applet/mate-panel-applet-factory.c b/libmate-panel-applet/mate-panel-applet-factory.c index 326d742b..c0465eb8 100644 --- a/libmate-panel-applet/mate-panel-applet-factory.c +++ b/libmate-panel-applet/mate-panel-applet-factory.c @@ -272,7 +272,8 @@ static const gchar introspection_xml[] = static const GDBusInterfaceVTable interface_vtable = { method_call_cb, NULL, - NULL + NULL, + { 0 } }; static GDBusNodeInfo *introspection_data = NULL; diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c index 15d97585..fc42554a 100644 --- a/libmate-panel-applet/mate-panel-applet.c +++ b/libmate-panel-applet/mate-panel-applet.c @@ -148,7 +148,8 @@ static const GtkActionEntry menu_entries[] = { static const GtkToggleActionEntry menu_toggle_entries[] = { { "Lock", NULL, N_("Loc_k To Panel"), NULL, NULL, - G_CALLBACK (mate_panel_applet_menu_cmd_lock) } + G_CALLBACK (mate_panel_applet_menu_cmd_lock), + FALSE } }; G_DEFINE_TYPE_WITH_PRIVATE (MatePanelApplet, mate_panel_applet, GTK_TYPE_EVENT_BOX) @@ -2322,7 +2323,8 @@ static const gchar introspection_xml[] = static const GDBusInterfaceVTable interface_vtable = { method_call_cb, get_property_cb, - set_property_cb + set_property_cb, + { 0 } }; static GDBusNodeInfo *introspection_data = NULL; 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; |