diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-06-20 14:58:44 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-06-22 11:52:10 -0400 |
commit | f2b98f45db21bed27c70e9f40fca1f79466a9e4b (patch) | |
tree | c10f880929830e50c233ae9229b0f9813c0975fb /gtk/gtkicontheme.c | |
parent | a10412f49eb9b2068b2101c291f873da98c51326 (diff) | |
download | gtk+-f2b98f45db21bed27c70e9f40fca1f79466a9e4b.tar.gz |
GtkIconInfo: Drop an unused field
The GtkIconInfo threshold field was never used, so lets not
carry it around.
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r-- | gtk/gtkicontheme.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 8b54733682..1ea892e234 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -244,7 +244,6 @@ struct _GtkIconInfo gint dir_scale; gint min_size; gint max_size; - gint threshold; gdouble unscaled_scale; /* Parameters influencing the scaled icon @@ -2963,7 +2962,6 @@ theme_lookup_icon (IconTheme *theme, gboolean has_icon_file = FALSE; icon_info = icon_info_new (min_dir->type, min_dir->size, min_dir->scale); - icon_info->threshold = min_dir->threshold; icon_info->min_size = min_dir->min_size; icon_info->max_size = min_dir->max_size; @@ -3358,7 +3356,6 @@ icon_info_dup (GtkIconInfo *icon_info) dup->cache_pixbuf = g_object_ref (icon_info->cache_pixbuf); dup->unscaled_scale = icon_info->unscaled_scale; - dup->threshold = icon_info->threshold; dup->desired_size = icon_info->desired_size; dup->desired_scale = icon_info->desired_scale; dup->forced_size = icon_info->forced_size; @@ -3373,7 +3370,6 @@ icon_info_new_builtin (BuiltinIcon *icon) GtkIconInfo *icon_info = icon_info_new (ICON_THEME_DIR_THRESHOLD, icon->size, 1); icon_info->cache_pixbuf = g_object_ref (icon->pixbuf); - icon_info->threshold = 2; return icon_info; } @@ -5172,7 +5168,6 @@ gtk_icon_theme_lookup_by_gicon_for_scale (GtkIconTheme *icon_theme, info->desired_size = size; info->desired_scale = scale; - info->threshold = 2; info->forced_size = (flags & GTK_ICON_LOOKUP_FORCE_SIZE) != 0; return info; |