[gtk/fix-icontheme-invalidation: 14/14] Drop gtk_style_context_reset_widgets



commit a86a08e769f040979562b29508debbea5407c991
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Apr 21 15:57:37 2020 -0400

    Drop gtk_style_context_reset_widgets
    
    This is no longer used.

 gtk/gtkstylecontext.c        | 30 ------------------------------
 gtk/gtkstylecontextprivate.h |  3 ---
 2 files changed, 33 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 821f5a9fdd..d04741cd36 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -415,36 +415,6 @@ gtk_style_context_remove_provider (GtkStyleContext  *context,
   _gtk_style_cascade_remove_provider (priv->cascade, provider);
 }
 
-/**
- * gtk_style_context_reset_widgets:
- * @display: a #GdkDisplay
- *
- * This function recomputes the styles for all widgets under a particular
- * #GdkDisplay. This is useful when some global parameter has changed that
- * affects the appearance of all widgets, because when a widget gets a new
- * style, it will both redraw and recompute any cached information about
- * its appearance. As an example, it is used when the color scheme changes
- * in the related #GtkSettings object.
- **/
-void
-gtk_style_context_reset_widgets (GdkDisplay *display)
-{
-  GList *list, *toplevels;
-
-  toplevels = gtk_window_list_toplevels ();
-  g_list_foreach (toplevels, (GFunc) g_object_ref, NULL);
-
-  for (list = toplevels; list; list = list->next)
-    {
-      if (gtk_widget_get_display (list->data) == display)
-        gtk_widget_reset_style (list->data);
-
-      g_object_unref (list->data);
-    }
-
-  g_list_free (toplevels);
-}
-
 /**
  * gtk_style_context_add_provider_for_display:
  * @display: a #GdkDisplay
diff --git a/gtk/gtkstylecontextprivate.h b/gtk/gtkstylecontextprivate.h
index b0e675d807..c40442d498 100644
--- a/gtk/gtkstylecontextprivate.h
+++ b/gtk/gtkstylecontextprivate.h
@@ -57,9 +57,6 @@ void           _gtk_style_context_get_cursor_color           (GtkStyleContext
 AtkAttributeSet *_gtk_style_context_get_attributes           (AtkAttributeSet    *attributes,
                                                               GtkStyleContext    *context);
 
-GDK_AVAILABLE_IN_ALL
-void gtk_style_context_reset_widgets        (GdkDisplay      *display);
-
 G_END_DECLS
 
 #endif /* __GTK_STYLE_CONTEXT_PRIVATE_H__ */


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