Commit 5018c7f7 authored by Benjamin Otte's avatar Benjamin Otte

examples: Add deprecation guards

Apparently it's not possible in GtkTextView to say "this style should
apply to all text, including newly inserted text. Or I'm just too stupid
to use its API.

So instead, keep using override_color().
parent 75ed941e
......@@ -208,7 +208,9 @@ plugin_action (GAction *action,
gdk_rgba_parse (&color, g_action_get_name (action));
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_override_color (text, 0, &color);
G_GNUC_END_IGNORE_DEPRECATIONS
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment