stylecontext: deprecate gtk_style_context_set_background()
authorCosimo Cecchi <cosimoc@gnome.org>
Sun, 28 Jun 2015 18:23:16 +0000 (11:23 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 1 Jul 2015 23:09:23 +0000 (16:09 -0700)
Nothing in GTK calls it anymore.

gtk/gtkstylecontext.c
gtk/gtkstylecontext.h

index 5c253d14d34ca01640f9b97c1fd4f0b3e969cf38..df31eb0623d4947ef7d90e108c68a985fd85b96c 100644 (file)
@@ -2470,6 +2470,10 @@ 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.
+ *   Note that clients still using this function are now responsible
+ *   for calling this function again whenever @context is invalidated.
  **/
 void
 gtk_style_context_set_background (GtkStyleContext *context,
index 2c4835025fa8281a9caa6727b2559c8d66776cd1..d138a767508fe373cfbb5821729a22bdd149247d 100644 (file)
@@ -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);