Commit aada841d authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in to

2005-05-11  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
        to draw the swatch in to avoid having an extraneous window.
parent dda40ca7
2005-05-11 Owen Taylor <otaylor@redhat.com>
* 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 <otaylor@redhat.com>
* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
......
2005-05-11 Owen Taylor <otaylor@redhat.com>
* 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 <otaylor@redhat.com>
* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
......
2005-05-11 Owen Taylor <otaylor@redhat.com>
* 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 <otaylor@redhat.com>
* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
......
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment