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().
This commit is contained in:
Benjamin Otte 2014-10-12 05:51:11 +02:00
parent 75ed941ef1
commit 5018c7f7cb

View File

@ -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