mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 09:50:06 +00:00
gtk/gtkcolorbutton.c: use accessor functions to access GtkWidget
This commit is contained in:
parent
e9b85cf100
commit
0baa3feb4b
@ -309,7 +309,7 @@ expose_event (GtkWidget *widget,
|
|||||||
|
|
||||||
if (!gtk_widget_is_sensitive (GTK_WIDGET (color_button)))
|
if (!gtk_widget_is_sensitive (GTK_WIDGET (color_button)))
|
||||||
{
|
{
|
||||||
gdk_cairo_set_source_color (cr, >K_WIDGET(color_button)->style->bg[GTK_STATE_INSENSITIVE]);
|
gdk_cairo_set_source_color (cr, >k_widget_get_style (GTK_WIDGET(color_button))->bg[GTK_STATE_INSENSITIVE]);
|
||||||
checkered = gtk_color_button_get_checkered ();
|
checkered = gtk_color_button_get_checkered ();
|
||||||
cairo_mask (cr, checkered);
|
cairo_mask (cr, checkered);
|
||||||
cairo_pattern_destroy (checkered);
|
cairo_pattern_destroy (checkered);
|
||||||
|
Loading…
Reference in New Issue
Block a user