[gtk+] examples: Add deprecation guards



commit 5018c7f7cb26d56d4cb30159f782a8790f4a2a6f
Author: Benjamin Otte <otte redhat com>
Date:   Sun Oct 12 05:51:11 2014 +0200

    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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/examples/plugman.c b/examples/plugman.c
index 3a4b7b3..e9c052a 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]