[gtk+/wip/baedert/children: 15/40] widget: Remove gtk_widget_invalidate_style_context



commit e4e8d28ea3e05c99a0fa882f4c617d9e98c8a953
Author: Timm Bäder <mail baedert org>
Date:   Tue Nov 22 12:05:48 2016 +0100

    widget: Remove gtk_widget_invalidate_style_context

 gtk/gtkwidget.c        |   10 ++--------
 gtk/gtkwidgetprivate.h |    2 --
 2 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index cf0567b..0e054b6 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8756,7 +8756,8 @@ static void
 reset_style_recurse (GtkWidget *widget)
 {
   GtkWidget *child;
-  _gtk_widget_invalidate_style_context (widget, GTK_CSS_CHANGE_ANY);
+
+  gtk_css_node_invalidate (widget->priv->cssnode, GTK_CSS_CHANGE_ANY);
 
   for (child = gtk_widget_get_first_child (widget);
        child != NULL;
@@ -14850,13 +14851,6 @@ gtk_widget_get_style_context (GtkWidget *widget)
   return widget->priv->context;
 }
 
-void
-_gtk_widget_invalidate_style_context (GtkWidget    *widget,
-                                      GtkCssChange  change)
-{
-  gtk_css_node_invalidate (widget->priv->cssnode, change);
-}
-
 /**
  * gtk_widget_get_modifier_mask:
  * @widget: a #GtkWidget
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index 572d42b..6580aec 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -250,8 +250,6 @@ gboolean          _gtk_widget_captured_event               (GtkWidget *widget,
 
 GtkWidgetPath *   _gtk_widget_create_path                  (GtkWidget    *widget);
 void              gtk_widget_clear_path                    (GtkWidget    *widget);
-void              _gtk_widget_invalidate_style_context     (GtkWidget    *widget,
-                                                            GtkCssChange  change);
 void              _gtk_widget_style_context_invalidated    (GtkWidget    *widget);
 
 void              _gtk_widget_update_parent_muxer          (GtkWidget    *widget);


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