diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-26 18:41:15 -0400 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-26 20:02:27 -0400 |
commit | aef9dca9d5e17985faa2b3659e031a5d5064149e (patch) | |
tree | c38c1d398f22911733ab98978f7e71b023be6ef5 /gtk/gtkfilechooserbutton.c | |
parent | 88177d8bd19f0c900d8c5f448fec4df1cfee636d (diff) | |
download | gtk+-aef9dca9d5e17985faa2b3659e031a5d5064149e.tar.gz |
Deprecate GtkIconFactory, GtkIconSet, GtkIconSource
We want to use GtkIconTheme instead. It is worth noting that
the parts that remain undeprecated are GtkIconSize and gtk_icon_size_lookup.
Diffstat (limited to 'gtk/gtkfilechooserbutton.c')
-rw-r--r-- | gtk/gtkfilechooserbutton.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index 0b726c9ff0..58de7c2474 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -1372,7 +1372,6 @@ static void change_icon_theme (GtkFileChooserButton *button) { GtkFileChooserButtonPrivate *priv = button->priv; - GtkSettings *settings; GtkIconTheme *theme; GtkTreeIter iter; GSList *l; @@ -1386,10 +1385,7 @@ change_icon_theme (GtkFileChooserButton *button) g_slist_free (button->priv->change_icon_theme_cancellables); button->priv->change_icon_theme_cancellables = NULL; - settings = gtk_settings_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (button))); - - if (gtk_icon_size_lookup_for_settings (settings, GTK_ICON_SIZE_MENU, - &width, &height)) + if (gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &width, &height)) priv->icon_size = MAX (width, height); else priv->icon_size = FALLBACK_ICON_SIZE; |