[gtk+/spinner: 5/10] GtkIconTheme: Drop an unused field
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/spinner: 5/10] GtkIconTheme: Drop an unused field
- Date: Fri, 20 Jun 2014 19:56:54 +0000 (UTC)
commit b869cee550c0d531cb7cbbeee43a98fde39423ce
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 20 14:58:44 2014 -0400
GtkIconTheme: Drop an unused field
The GtkIconInfo threshold field was never used, so lets not
carry it around.
gtk/gtkicontheme.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 9abd000..7154c23 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;
}
@@ -5192,7 +5188,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]