Commit e8da5ec9 authored by Matthias Clasen's avatar Matthias Clasen

widget-factory: Clean up on shutdown

parent e087f434
......@@ -287,8 +287,7 @@ main (int argc, char *argv[])
{ "about", activate_about, NULL, NULL, NULL },
{ "quit", activate_quit, NULL, NULL, NULL },
gtk_init (&argc, &argv);
gint status;
app = gtk_application_new ("org.gtk.WidgetFactory", 0);
......@@ -299,7 +298,8 @@ main (int argc, char *argv[])
g_signal_connect (app, "startup", G_CALLBACK (startup), NULL);
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
g_application_run (G_APPLICATION (app), argc, argv);
status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);
return 0;
return status;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment