Commit e0c23525 authored by Colin Walters's avatar Colin Walters Committed by Allison Karlitskaya

testgmenu: Quit on delete-event

parent 95d9a5e3
......@@ -921,6 +921,15 @@ button_clicked (GtkButton *button,
#define BUS_NAME "org.gtk.TestMenus"
#define OBJ_PATH "/org/gtk/TestMenus"
static gboolean
on_delete_event (GtkWidget *widget,
GdkEvent *event,
gpointer user_data)
{
gtk_main_quit ();
return TRUE;
}
int
main (int argc, char *argv[])
{
......@@ -951,6 +960,7 @@ main (int argc, char *argv[])
}
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_signal_connect (window, "delete-event", G_CALLBACK(on_delete_event), NULL);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_add (GTK_CONTAINER (window), box);
......
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