[gtk+] stylecontext: Deprecate gtk_style_context_invalidate()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] stylecontext: Deprecate gtk_style_context_invalidate()
- Date: Sat, 5 Oct 2013 12:02:17 +0000 (UTC)
commit 0e6a9858e1801846d9fd5fc5bcb59eee6e65827f
Author: Benjamin Otte <otte redhat com>
Date: Tue Oct 1 15:09:20 2013 +0200
stylecontext: Deprecate gtk_style_context_invalidate()
Everything is invalidated automatically these days.
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 d45157d..b02f45f 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -3373,7 +3373,9 @@ _gtk_style_context_queue_invalidate (GtkStyleContext *context,
}
else if (priv->widget_path == NULL)
{
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gtk_style_context_invalidate (context);
+ G_GNUC_END_IGNORE_DEPRECATIONS;
}
}
@@ -3386,6 +3388,8 @@ _gtk_style_context_queue_invalidate (GtkStyleContext *context,
* information immediately.
*
* Since: 3.0
+ *
+ * Deprecated: 3.12: Style contexts are invalidated automatically.
**/
void
gtk_style_context_invalidate (GtkStyleContext *context)
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h
index ed5f40d..d2341d5 100644
--- a/gtk/gtkstylecontext.h
+++ b/gtk/gtkstylecontext.h
@@ -1010,7 +1010,7 @@ void gtk_style_context_get_margin (GtkStyleContext *context,
GtkStateFlags state,
GtkBorder *margin);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_12
void gtk_style_context_invalidate (GtkStyleContext *context);
GDK_AVAILABLE_IN_ALL
void gtk_style_context_reset_widgets (GdkScreen *screen);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]