diff options
author | Ryan Lortie <desrt@desrt.ca> | 2007-06-29 16:02:24 +0000 |
---|---|---|
committer | Ryan Lortie <ryanl@src.gnome.org> | 2007-06-29 16:02:24 +0000 |
commit | e8e5af2d8cf5327bed9601572978478954580977 (patch) | |
tree | 7c97b63265b30132db87c1bfafa6cee30c1be85f /tests/testgtk.c | |
parent | 41aaca420dfe37a2513c3c340e743d5d1d7c6a04 (diff) | |
download | gtk+-e8e5af2d8cf5327bed9601572978478954580977.tar.gz |
Connect the "destroy" signal so that the 'window' pointer is set back to
2007-06-29 Ryan Lortie <desrt@desrt.ca>
* tests/testgtk.c (create_composited_window): Connect the "destroy"
signal so that the 'window' pointer is set back to NULL (like for the
other examples).
* gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize): Don't
destroy the Damage here. By finalize() XDestroyWindow has already
been called (and took the Damage with it).
Bug #452046.
svn path=/trunk/; revision=18290
Diffstat (limited to 'tests/testgtk.c')
-rw-r--r-- | tests/testgtk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index be779a8791..079bb14f91 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -514,6 +514,10 @@ create_composited_window (GtkWidget *widget) event = gtk_event_box_new (); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); + g_signal_connect (window, "destroy", + G_CALLBACK (gtk_widget_destroyed), + &window); + /* put a red background on the window */ gdk_color_parse ("red", &red); gtk_widget_modify_bg (window, GTK_STATE_NORMAL, &red); @@ -1261,7 +1265,7 @@ create_button_box (GtkWidget *widget) g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); - + gtk_container_set_border_width (GTK_CONTAINER (window), 10); main_vbox = gtk_vbox_new (FALSE, 0); |