diff --git a/ChangeLog b/ChangeLog index 9dd0685777..6854dc7bd9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-05-11 Owen Taylor + + * tests/testgtk.c (on_alpha_window_expose): Fix to use + gdk_cairo_create(). (create_alpha_window): Hook up "response" + to close the window. + 2005-05-11 Owen Taylor * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9dd0685777..6854dc7bd9 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2005-05-11 Owen Taylor + + * tests/testgtk.c (on_alpha_window_expose): Fix to use + gdk_cairo_create(). (create_alpha_window): Hook up "response" + to close the window. + 2005-05-11 Owen Taylor * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 9dd0685777..6854dc7bd9 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2005-05-11 Owen Taylor + + * tests/testgtk.c (on_alpha_window_expose): Fix to use + gdk_cairo_create(). (create_alpha_window): Hook up "response" + to close the window. + 2005-05-11 Owen Taylor * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea diff --git a/tests/testgtk.c b/tests/testgtk.c index b4480be8d4..a731b7270d 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -160,7 +160,7 @@ on_alpha_window_expose (GtkWidget *widget, cairo_pattern_t *pattern; int radius; - cr = gdk_drawable_create_cairo_context (widget->window); + cr = gdk_cairo_create (widget->window); radius = MIN (widget->allocation.width, widget->allocation.height) / 2; pattern = cairo_pattern_create_radial (widget->allocation.width / 2, @@ -391,6 +391,10 @@ create_alpha_window (GtkWidget *widget) g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); + + g_signal_connect (window, "response", + G_CALLBACK (gtk_widget_destroy), + NULL); } if (!GTK_WIDGET_VISIBLE (window))