diff options
author | Benjamin Otte <otte@redhat.com> | 2014-10-12 05:51:11 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-10-12 05:51:11 +0200 |
commit | 5018c7f7cb26d56d4cb30159f782a8790f4a2a6f (patch) | |
tree | 73b555272d813c61a434e79afa8a4ea2a8a54fdd /examples | |
parent | 75ed941ef19292e77706765aa6f8630f0d460825 (diff) | |
download | gtk+-5018c7f7cb26d56d4cb30159f782a8790f4a2a6f.tar.gz |
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().
Diffstat (limited to 'examples')
-rw-r--r-- | examples/plugman.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |