print: Drop one use of private api

We added public api for the foreground color
for just this case, so use it.
This commit is contained in:
Matthias Clasen 2023-06-09 08:23:09 -04:00
parent 53af7208e6
commit 351d747909

View File

@ -2583,8 +2583,7 @@ draw_page (GtkDrawingArea *da,
g_object_unref (layout);
style = gtk_css_node_get_style (gtk_widget_get_css_node (widget));
color = *gtk_css_color_value_get_rgba (style->core->color);
gtk_widget_get_color (widget, &color);
if (page_setup != NULL)
{