Warning
gdk_gc_set_foreground has been deprecated since version 2.22 and should not be used in newly-written code. Use gdk_cairo_set_source_color() to use a GdkColor
as the source in Cairo.
Sets the foreground color for a graphics context.
Note that this function uses color->pixel, use
gdk_gc_set_rgb_fg_color() to specify the foreground
color as red, green, blue components.
Warning gdk_gc_set_foreground has been deprecated since version 2.22 and should not be used in newly-written code. Use gdk_cairo_set_source_color() to use a GdkColor as the source in Cairo. Sets the foreground color for a graphics context. Note that this function uses color->pixel, use gdk_gc_set_rgb_fg_color() to specify the foreground color as red, green, blue components.