mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
label: Avoid deprecation warning
This commit is contained in:
parent
42d0a6de23
commit
00e84f1cdb
@ -4153,7 +4153,9 @@ gtk_label_draw (GtkWidget *widget,
|
||||
gdk_cairo_set_source_rgba (cr, &bg_color);
|
||||
cairo_paint (cr);
|
||||
|
||||
gdk_cairo_set_source_color (cr, text_color);
|
||||
cairo_set_source_rgb (cr, text_color->red / 65535.,
|
||||
text_color->green / 65535.,
|
||||
text_color->blue / 65535.);
|
||||
cairo_move_to (cr, x, y);
|
||||
_gtk_pango_fill_layout (cr, priv->layout);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user