mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 17:00:19 +00:00
Make GtkColorSelection use GtkStyleContext
This commit is contained in:
parent
455c31d815
commit
27c5cc88f8
@ -1112,9 +1112,13 @@ palette_draw (GtkWidget *drawing_area,
|
|||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
|
GtkStyleContext *context;
|
||||||
gint focus_width;
|
gint focus_width;
|
||||||
|
GdkRGBA color;
|
||||||
|
|
||||||
gdk_cairo_set_source_color (cr, >k_widget_get_style (drawing_area)->bg[GTK_STATE_NORMAL]);
|
context = gtk_widget_get_style_context (drawing_area);
|
||||||
|
gtk_style_context_get_background_color (context, 0, &color);
|
||||||
|
gdk_cairo_set_source_rgba (cr, &color);
|
||||||
cairo_paint (cr);
|
cairo_paint (cr);
|
||||||
|
|
||||||
if (gtk_widget_has_focus (drawing_area))
|
if (gtk_widget_has_focus (drawing_area))
|
||||||
|
Loading…
Reference in New Issue
Block a user