summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2009-12-18 14:36:37 +0100
committerCody Russell <bratsche@gnome.org>2009-12-28 09:33:41 -0600
commit8801d163a645197fd259e02279548dcacfc8c7f6 (patch)
tree76c2a4a6a68f6b03471ad71c7f52f42cdebef536 /tests
parent8a523393acf46d8e31f5ab0f8bd9a44b2450c6e7 (diff)
downloadgtk+-8801d163a645197fd259e02279548dcacfc8c7f6.tar.gz
Add delete-event callback to window, use gtk_widget_queue_draw() instead of gtk_widget_draw()
Diffstat (limited to 'tests')
-rw-r--r--tests/testoffscreenwindow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/testoffscreenwindow.c b/tests/testoffscreenwindow.c
index a70e36b1ae..161c9c511f 100644
--- a/tests/testoffscreenwindow.c
+++ b/tests/testoffscreenwindow.c
@@ -64,9 +64,11 @@ main (int argc, char **argv)
* changes, also track damage on the offscreen
* as done above.
*/
- gtk_widget_draw (offscreen, NULL);
+ gtk_widget_queue_draw (offscreen);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ g_signal_connect (window, "delete-event",
+ G_CALLBACK (gtk_main_quit), window);
da = gtk_drawing_area_new ();
gtk_container_add (GTK_CONTAINER (window), da);