From 9d702031671fa8aa4cdf6ea512b3f59b8ea3da37 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 28 Oct 2021 14:27:24 +0200 Subject: Fix build warnings about missing field initializer --- capplets/appearance/appearance-main.c | 2 +- capplets/default-applications/mate-da-capplet.c | 4 +++- capplets/keybindings/eggcellrendererkeys.c | 4 +++- capplets/keyboard/mate-keyboard-properties.c | 2 +- capplets/mouse/mate-mouse-properties.c | 2 +- font-viewer/font-thumbnailer.c | 2 +- font-viewer/font-view.c | 4 ++-- shell/control-center.c | 2 +- typing-break/drw-monitor.c | 1 + typing-break/main.c | 2 +- 10 files changed, 15 insertions(+), 10 deletions(-) diff --git a/capplets/appearance/appearance-main.c b/capplets/appearance/appearance-main.c index 03dbff8a..2a9b92eb 100644 --- a/capplets/appearance/appearance-main.c +++ b/capplets/appearance/appearance-main.c @@ -160,7 +160,7 @@ main (int argc, char **argv) &wallpaper_files, NULL, N_("[WALLPAPER...]") }, - { NULL } + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; option_context = g_option_context_new (NULL); diff --git a/capplets/default-applications/mate-da-capplet.c b/capplets/default-applications/mate-da-capplet.c index e5ade48b..e0e13d34 100644 --- a/capplets/default-applications/mate-da-capplet.c +++ b/capplets/default-applications/mate-da-capplet.c @@ -782,7 +782,9 @@ main(int argc, char** argv) N_("Specify the name of the page to show (internet|multimedia|system|a11y)"), N_("page") }, - {NULL} + { + NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL + } }; GOptionContext* context = g_option_context_new(_("- MATE Default Applications")); diff --git a/capplets/keybindings/eggcellrendererkeys.c b/capplets/keybindings/eggcellrendererkeys.c index e6feca22..162f385c 100644 --- a/capplets/keybindings/eggcellrendererkeys.c +++ b/capplets/keybindings/eggcellrendererkeys.c @@ -66,7 +66,8 @@ GType egg_cell_renderer_keys_get_type(void) NULL, /* class_data */ sizeof (EggCellRendererKeys), 0, /* n_preallocs */ - (GInstanceInitFunc) egg_cell_renderer_keys_init + (GInstanceInitFunc) egg_cell_renderer_keys_init, + NULL }; cell_keys_type = g_type_register_static (GTK_TYPE_CELL_RENDERER_TEXT, "EggCellRendererKeys", &cell_keys_info, 0); @@ -522,6 +523,7 @@ pointless_eventbox_subclass_get_type (void) sizeof (GtkEventBox), 0, /* n_preallocs */ (GInstanceInitFunc) NULL, + NULL }; static const GInterfaceInfo cell_editable_info = { diff --git a/capplets/keyboard/mate-keyboard-properties.c b/capplets/keyboard/mate-keyboard-properties.c index ff389cfe..8b96bff5 100644 --- a/capplets/keyboard/mate-keyboard-properties.c +++ b/capplets/keyboard/mate-keyboard-properties.c @@ -178,7 +178,7 @@ main (int argc, char **argv) N_ ("Start the page with the accessibility settings showing"), NULL}, - {NULL} + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c index e057f7a8..2e9a1408 100644 --- a/capplets/mouse/mate-mouse-properties.c +++ b/capplets/mouse/mate-mouse-properties.c @@ -399,7 +399,7 @@ main (int argc, char **argv) /* TRANSLATORS: don't translate the terms in brackets */ N_("Specify the name of the page to show (general)"), N_("page") }, - {NULL} + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; context = g_option_context_new (_("- MATE Mouse Preferences")); diff --git a/font-viewer/font-thumbnailer.c b/font-viewer/font-thumbnailer.c index 7ccc3b51..583fb490 100644 --- a/font-viewer/font-thumbnailer.c +++ b/font-viewer/font-thumbnailer.c @@ -196,7 +196,7 @@ main (int argc, N_("Thumbnail size (default: 128)"), N_("SIZE") }, { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &arguments, NULL, N_("FONT-FILE OUTPUT-FILE") }, - { NULL } + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; #ifdef ENABLE_NLS diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c index 588b6ba5..995e2021 100644 --- a/font-viewer/font-view.c +++ b/font-viewer/font-view.c @@ -791,8 +791,8 @@ action_about (GSimpleAction *action, } static GActionEntry action_entries[] = { - { "about", action_about, NULL, NULL, NULL }, - { "quit", action_quit, NULL, NULL, NULL } + { "about", action_about, NULL, NULL, NULL, { 0 } }, + { "quit", action_quit, NULL, NULL, NULL, { 0 } } }; static void diff --git a/shell/control-center.c b/shell/control-center.c index a4b86880..2bdc741c 100644 --- a/shell/control-center.c +++ b/shell/control-center.c @@ -162,7 +162,7 @@ int main(int argc, char* argv[]) GError* error; GOptionEntry options[] = { {"hide", 0, 0, G_OPTION_ARG_NONE, &hidden, N_("Hide on start (useful to preload the shell)"), NULL}, - {NULL} + {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL} }; #ifdef ENABLE_NLS diff --git a/typing-break/drw-monitor.c b/typing-break/drw-monitor.c index df6e119b..8c309194 100644 --- a/typing-break/drw-monitor.c +++ b/typing-break/drw-monitor.c @@ -75,6 +75,7 @@ drw_monitor_get_type (void) sizeof (DrwMonitor), 0, /* n_preallocs */ (GInstanceInitFunc) drw_monitor_init, + NULL }; object_type = g_type_register_static (G_TYPE_OBJECT, diff --git a/typing-break/main.c b/typing-break/main.c index c018f820..9e9f4685 100644 --- a/typing-break/main.c +++ b/typing-break/main.c @@ -62,7 +62,7 @@ main (int argc, char *argv[]) N_("Enable debugging code"), NULL }, { "no-check", 'n', 0, G_OPTION_ARG_NONE, &no_check, N_("Don't check whether the notification area exists"), NULL }, - { NULL } + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; GOptionContext *option_context; GError *error = NULL; -- cgit v1.2.1