diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-09-28 06:28:51 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-09-28 06:29:51 -0400 |
commit | a9b069524c0e50e7b365e7fed7b4d6c8b59334ef (patch) | |
tree | 1c19c5192d98a75f804cc20222850610467b6979 /demos | |
parent | 130fc6ce9bb8e5df381b9e6956fb42ea889bb769 (diff) | |
download | gtk+-a9b069524c0e50e7b365e7fed7b4d6c8b59334ef.tar.gz |
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
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c index 512221de66..8e25adcc80 100644 --- a/demos/gtk-demo/main.c +++ b/demos/gtk-demo/main.c @@ -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 |