From d4abb899ae281785be5336843602307beb8d7fd3 Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Mon, 19 Jul 2010 19:39:26 +0200 Subject: [PATCH] quit when main window closes --- tools/ges-ui.c | 7 +++++ tools/ges-ui.glade | 68 ++-------------------------------------------- 2 files changed, 10 insertions(+), 65 deletions(-) diff --git a/tools/ges-ui.c b/tools/ges-ui.c index b807df94bc..cc8d83654b 100644 --- a/tools/ges-ui.c +++ b/tools/ges-ui.c @@ -1,5 +1,11 @@ #include +void +window_destroy_cb (GtkObject * window, gpointer user) +{ + gtk_main_quit (); +} + int main (int argc, char *argv[]) { @@ -10,6 +16,7 @@ main (int argc, char *argv[]) builder = gtk_builder_new (); gtk_builder_add_from_file (builder, "ges-ui.glade", NULL); window = GTK_WIDGET (gtk_builder_get_object (builder, "window")); + gtk_builder_connect_signals (builder, NULL); g_object_unref (G_OBJECT (builder)); gtk_widget_show (window); diff --git a/tools/ges-ui.glade b/tools/ges-ui.glade index c479228f27..1e4fddc815 100644 --- a/tools/ges-ui.glade +++ b/tools/ges-ui.glade @@ -10,7 +10,8 @@ - + + True @@ -152,70 +153,7 @@ - - True - - - True - - - radiobutton - True - True - False - True - True - - - 0 - - - - - True - - - 1 - - - - - 0 - - - - - True - - - radiobutton - True - True - False - True - True - - - 0 - - - - - True - - - 1 - - - - - 1 - - - - - 1 - +