From 98611735ec4f14fdc92719fbe9a983b5508c6e6b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 21 Apr 2020 08:37:04 -0400 Subject: Stop using the -gtk-icon-theme style property We want to just use the current icon theme, always. --- gtk/gtkcssimageicontheme.c | 3 +-- gtk/gtkcsspalettevalue.c | 1 - gtk/gtkfilechooserbutton.c | 1 - gtk/gtkfilesystem.c | 1 - gtk/gtkiconhelper.c | 1 - gtk/gtkmountoperation.c | 3 +-- gtk/gtkwindow.c | 7 +------ 7 files changed, 3 insertions(+), 14 deletions(-) (limited to 'gtk') diff --git a/gtk/gtkcssimageicontheme.c b/gtk/gtkcssimageicontheme.c index c886e2447c..4fed08546b 100644 --- a/gtk/gtkcssimageicontheme.c +++ b/gtk/gtkcssimageicontheme.c @@ -23,7 +23,6 @@ #include -#include "gtkcssiconthemevalueprivate.h" #include "gtksettingsprivate.h" #include "gtksnapshot.h" #include "gtkstyleproviderprivate.h" @@ -149,7 +148,7 @@ gtk_css_image_icon_theme_compute (GtkCssImage *image, copy = g_object_new (GTK_TYPE_CSS_IMAGE_ICON_THEME, NULL); copy->name = g_strdup (icon_theme->name); - copy->icon_theme = gtk_css_icon_theme_value_get_icon_theme (style->core->icon_theme); + copy->icon_theme = icon_theme->icon_theme; copy->scale = gtk_style_provider_get_scale (provider); gtk_icon_theme_lookup_symbolic_colors (style, ©->color, ©->success, ©->warning, ©->error); diff --git a/gtk/gtkcsspalettevalue.c b/gtk/gtkcsspalettevalue.c index 8245be9123..a5aab3d615 100644 --- a/gtk/gtkcsspalettevalue.c +++ b/gtk/gtkcsspalettevalue.c @@ -19,7 +19,6 @@ #include "gtkcsspalettevalueprivate.h" -#include "gtkcssiconthemevalueprivate.h" #include "gtkcsscolorvalueprivate.h" #include "gtkcsscolorvalueprivate.h" #include "gtkprivate.h" diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index d509b86990..b5860d0161 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -36,7 +36,6 @@ #include "gtkcellrenderertext.h" #include "gtkcellrendererpixbuf.h" #include "gtkcombobox.h" -#include "gtkcssiconthemevalueprivate.h" #include "gtkdroptarget.h" #include "gtkicontheme.h" #include "gtkimage.h" diff --git a/gtk/gtkfilesystem.c b/gtk/gtkfilesystem.c index 55cf55b1fc..4e71446d69 100644 --- a/gtk/gtkfilesystem.c +++ b/gtk/gtkfilesystem.c @@ -27,7 +27,6 @@ #include #include "gtkfilechooser.h" -#include "gtkcssiconthemevalueprivate.h" #include "gtkintl.h" #include "gtkprivate.h" #include "gtkstylecontextprivate.h" diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index 9b68d49831..2bbbcc0354 100644 --- a/gtk/gtkiconhelper.c +++ b/gtk/gtkiconhelper.c @@ -24,7 +24,6 @@ #include #include "gtkcssenumvalueprivate.h" -#include "gtkcssiconthemevalueprivate.h" #include "gtkcssnodeprivate.h" #include "gtkcssnumbervalueprivate.h" #include "gtkcssstyleprivate.h" diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c index 8830ba3e6d..a9626ac35e 100644 --- a/gtk/gtkmountoperation.c +++ b/gtk/gtkmountoperation.c @@ -30,7 +30,6 @@ #include "gtkmountoperationprivate.h" #include "gtkbox.h" -#include "gtkcssiconthemevalueprivate.h" #include "gtkdbusgenerated.h" #include "gtkentry.h" #include "gtkbox.h" @@ -1206,7 +1205,7 @@ add_pid_to_process_list_store (GtkMountOperation *mount_operation, GtkIconTheme *theme; GtkIconPaintable *icon; - theme = gtk_css_icon_theme_value_get_icon_theme + theme = gtk_icon_theme_get_for_display (gtk_widget_get_display (GTK_WIDGET (mount_operation->priv->dialog))); (_gtk_style_context_peek_property (gtk_widget_get_style_context (GTK_WIDGET (mount_operation->priv->dialog)), GTK_CSS_PROPERTY_ICON_THEME)); icon = gtk_icon_theme_lookup_icon (theme, diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index c02742e055..c79f23c150 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -34,7 +34,6 @@ #include "gtkbutton.h" #include "gtkcheckbutton.h" #include "gtkcsscornervalueprivate.h" -#include "gtkcssiconthemevalueprivate.h" #include "gtkcsscolorvalueprivate.h" #include "gtkcssshadowvalueprivate.h" #include "gtkcssstylepropertyprivate.h" @@ -3363,17 +3362,13 @@ icon_list_from_theme (GtkWindow *window, { GtkWindowPrivate *priv = gtk_window_get_instance_private (window); GList *list; - GtkStyleContext *context; - GtkCssValue *value; GtkIconTheme *icon_theme; GtkIconPaintable *info; GdkTexture *texture; gint *sizes; gint i; - context = gtk_widget_get_style_context (GTK_WIDGET (window)); - value = _gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ICON_THEME); - icon_theme = gtk_css_icon_theme_value_get_icon_theme (value); + icon_theme = gtk_icon_theme_get_for_display (priv->display); sizes = gtk_icon_theme_get_icon_sizes (icon_theme, name); -- cgit v1.2.1