[gtk+/wip/background-rework: 3/4] stylecontext: deprecate gtk_style_context_set_background()



commit bde27a8ba9ed95e2cadb337a4256f4ff6ea94279
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Jun 28 11:23:16 2015 -0700

    stylecontext: deprecate gtk_style_context_set_background()
    
    Nothing in GTK calls it anymore.

 gtk/gtkstylecontext.c |    2 ++
 gtk/gtkstylecontext.h |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 5c253d1..754f00a 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -2470,6 +2470,8 @@ corner_value_is_right_angle (GtkCssValue *value)
  * color specified in @context for its current state.
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.18: Use gtk_render_background() instead.
  **/
 void
 gtk_style_context_set_background (GtkStyleContext *context,
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h
index 2c48350..d138a76 100644
--- a/gtk/gtkstylecontext.h
+++ b/gtk/gtkstylecontext.h
@@ -1187,7 +1187,7 @@ void gtk_style_context_invalidate           (GtkStyleContext *context);
 GDK_AVAILABLE_IN_ALL
 void gtk_style_context_reset_widgets        (GdkScreen       *screen);
 
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_18_FOR(gtk_render_background)
 void gtk_style_context_set_background       (GtkStyleContext *context,
                                              GdkWindow       *window);
 


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