Fix several missing initializer warnings in gio/tests/basic-application.c

gio/tests/basic-application.c: In function ‘startup’:
gio/tests/basic-application.c:57:5: error: missing initializer for field ‘padding’ of ‘GActionEntry’ {aka ‘struct _GActionEntry’}
   57 |     { "new", new_activated, NULL, NULL, NULL },
      |     ^
gio/tests/basic-application.c:58:5: error: missing initializer for field ‘padding’ of ‘GActionEntry’ {aka ‘struct _GActionEntry’}
   58 |     { "quit", quit_activated, NULL, NULL, NULL },
      |     ^
gio/tests/basic-application.c:59:5: error: missing initializer for field ‘padding’ of ‘GActionEntry’ {aka ‘struct _GActionEntry’}
   59 |     { "action1", action1_activated, NULL, NULL, NULL },
      |     ^
gio/tests/basic-application.c:60:5: error: missing initializer for field ‘padding’ of ‘GActionEntry’ {aka ‘struct _GActionEntry’}
   60 |     { "action2", action2_activated, "b", "false", change_action2 }
      |     ^
This commit is contained in:
Emmanuel Fleury 2020-11-20 20:11:05 +01:00
parent 4a503bdbd7
commit 180c1a18d9

View File

@ -54,10 +54,10 @@ static void
startup (GApplication *app)
{
static GActionEntry actions[] = {
{ "new", new_activated, NULL, NULL, NULL },
{ "quit", quit_activated, NULL, NULL, NULL },
{ "action1", action1_activated, NULL, NULL, NULL },
{ "action2", action2_activated, "b", "false", change_action2 }
{ "new", new_activated, NULL, NULL, NULL, { 0 } },
{ "quit", quit_activated, NULL, NULL, NULL, { 0 } },
{ "action1", action1_activated, NULL, NULL, NULL, { 0 } },
{ "action2", action2_activated, "b", "false", change_action2, { 0 } }
};
g_action_map_add_action_entries (G_ACTION_MAP (app),