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/gtkrecentchooserdefault.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/gtkrecentchooserdefault.c')
-rw-r--r-- | gtk/gtkrecentchooserdefault.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c index 181ceec11b..dcf9d3e15d 100644 --- a/gtk/gtkrecentchooserdefault.c +++ b/gtk/gtkrecentchooserdefault.c @@ -1327,16 +1327,9 @@ static gint get_icon_size_for_widget (GtkWidget *widget, GtkIconSize icon_size) { - GtkSettings *settings; gint width, height; - if (gtk_widget_has_screen (widget)) - settings = gtk_settings_get_for_screen (gtk_widget_get_screen (widget)); - else - settings = gtk_settings_get_default (); - - if (gtk_icon_size_lookup_for_settings (settings, icon_size, - &width, &height)) + if (gtk_icon_size_lookup (icon_size, &width, &height)) return MAX (width, height); return FALLBACK_ICON_SIZE; |