[gtk+] Treat unthemed icons the same as force_size for scaling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Treat unthemed icons the same as force_size for scaling
- Date: Mon, 30 Jun 2014 21:23:21 +0000 (UTC)
commit bec3aa54e44bf7041b4c604b7760b671ef85031f
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jun 30 15:45:17 2014 -0400
Treat unthemed icons the same as force_size for scaling
This is closer to what we were doing in the past.
gtk/gtkicontheme.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 1d2efd4..ef07a84 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -3718,7 +3718,8 @@ icon_info_ensure_scale_and_pixbuf (GtkIconInfo *icon_info,
* for the directory where the icon is; the image size doesn't
* matter in that case.
*/
- if (icon_info->forced_size)
+ if (icon_info->forced_size ||
+ icon_info->dir_type == ICON_THEME_DIR_UNTHEMED)
icon_info->scale = -1;
else if (icon_info->dir_type == ICON_THEME_DIR_FIXED ||
icon_info->dir_type == ICON_THEME_DIR_THRESHOLD)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]