summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-04-21 15:57:37 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-04-22 19:30:48 -0400
commita1990607289d73aac1d831a00c830c634a73ff9a (patch)
tree9ec9b97a2bb4083636f3bd4777f8e89305ef2dfa /gtk/gtkstylecontext.c
parent7b4378bc46da8c644bb10c1c5c03d48b744e20de (diff)
downloadgtk+-a1990607289d73aac1d831a00c830c634a73ff9a.tar.gz
Drop gtk_style_context_reset_widgets
This is no longer used.
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 821f5a9fdd..d04741cd36 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -416,36 +416,6 @@ gtk_style_context_remove_provider (GtkStyleContext *context,
}
/**
- * 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
* @provider: a #GtkStyleProvider