Always destroy the window ourselves

This commit is contained in:
Pierre Pronchery 2015-05-25 13:15:30 +02:00
parent 81d2d20d84
commit 84cf0df2cf

View File

@ -66,12 +66,14 @@ static int _widget(int namec, char ** namev)
gtk_container_add(GTK_CONTAINER(window), box);
gtk_widget_show_all(window);
gtk_main();
gtk_widget_destroy(window);
return ret;
}
static gboolean _widget_on_closex(gpointer data)
{
gtk_main_quit();
return TRUE;
}