From 5018c7f7cb26d56d4cb30159f782a8790f4a2a6f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 12 Oct 2014 05:51:11 +0200 Subject: [PATCH] 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(). --- examples/plugman.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/plugman.c b/examples/plugman.c index 3a4b7b3d0c..e9c052a9eb 100644 --- a/examples/plugman.c +++ b/examples/plugman.c @@ -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