[gtkmm] Gtk::StyleContext: Deprecate set_background()



commit 6786e018808ad7d23251dd9f2bb436e3ab8b5fce
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Fri Jul 10 15:59:52 2015 +0200

    Gtk::StyleContext: Deprecate set_background()

 gtk/src/stylecontext.hg |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/src/stylecontext.hg b/gtk/src/stylecontext.hg
index 7a33541..d29d69f 100644
--- a/gtk/src/stylecontext.hg
+++ b/gtk/src/stylecontext.hg
@@ -242,7 +242,8 @@ _DEPRECATE_IFDEF_END
   _WRAP_METHOD(void invalidate(), gtk_style_context_invalidate, deprecated "Style contexts are invalidated 
automatically.")
   //TODO: _WRAP_METHOD(void reset_widgets(const Glib::RefPtr<Gdk::Screen>& screen), 
gtk_style_context_reset_widgets)
 
-  _WRAP_METHOD(void set_background(const Glib::RefPtr<Gdk::Window>& window), 
gtk_style_context_set_background)
+  _WRAP_METHOD(void set_background(const Glib::RefPtr<Gdk::Window>& window), 
gtk_style_context_set_background,
+    deprecated "Use render_background() instead. Note that clients still using this function are now 
responsible for calling this function again whenever the context is invalidated.")
 
   _WRAP_METHOD(void render_check(const ::Cairo::RefPtr< ::Cairo::Context>& cr, double x, double y, double 
width, double height), gtk_render_check)
   _WRAP_METHOD(void render_option(const ::Cairo::RefPtr< ::Cairo::Context>& cr, double x, double y, double 
width, double height), gtk_render_option)


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