[gtk+] stylecontext: deprecate gtk_style_context_set_background()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] stylecontext: deprecate gtk_style_context_set_background()
- Date: Wed, 1 Jul 2015 23:11:39 +0000 (UTC)
commit a1e80d99d23866772f3cb59ed091696cdf497132
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 | 4 ++++
gtk/gtkstylecontext.h | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 5c253d1..df31eb0 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -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,
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]