summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/main.c6
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