mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Return a value from ::command-line handler
The signal expects a return value, so give it one. https://bugzilla.gnome.org/show_bug.cgi?id=755692
This commit is contained in:
parent
130fc6ce9b
commit
a9b069524c
@ -1073,7 +1073,7 @@ list_demos (void)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
static gint
|
||||
command_line (GApplication *app,
|
||||
GApplicationCommandLine *cmdline)
|
||||
{
|
||||
@ -1096,7 +1096,7 @@ command_line (GApplication *app,
|
||||
{
|
||||
list_demos ();
|
||||
g_application_quit (app);
|
||||
return;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (name == NULL)
|
||||
@ -1137,6 +1137,8 @@ out:
|
||||
|
||||
if (autoquit)
|
||||
g_timeout_add_seconds (1, auto_quit, app);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user