diff --git a/tests/examples/ges-ui.c b/tests/examples/ges-ui.c
index f193d9fe7c..5f6645f12e 100644
--- a/tests/examples/ges-ui.c
+++ b/tests/examples/ges-ui.c
@@ -94,7 +94,7 @@ typedef struct App
* These are declared non-static for signal auto-connection
*/
-void window_destroy_cb (GtkObject * window, App * app);
+gboolean window_delete_event_cb (GtkObject * window, App * app);
void quit_item_activate_cb (GtkMenuItem * item, App * app);
void delete_activate_cb (GtkAction * item, App * app);
void play_activate_cb (GtkAction * item, App * app);
@@ -1060,10 +1060,11 @@ fail:
/* UI callbacks ************************************************************/
-void
-window_destroy_cb (GtkObject * window, App * app)
+gboolean
+window_delete_event_cb (GtkObject * window, App * app)
{
gtk_main_quit ();
+ return TRUE;
}
void
diff --git a/tests/examples/ges-ui.glade b/tests/examples/ges-ui.glade
index c3c73f062c..bd5431ebf8 100644
--- a/tests/examples/ges-ui.glade
+++ b/tests/examples/ges-ui.glade
@@ -41,7 +41,7 @@
GES Demo
540
450
-
+