icon theme: Improve loading of unthemed files

When creating icon info objects for unthemed files, we don't
really have a nominal size, so we pass 0 to mean 'load at
original size'. However, this is not what was happening.
To make this possible, add variants of some pixbuf loading
functions that take a scale factor instead of a desired size,
and use those when we don't have a nominal size.
This commit is contained in:
Matthias Clasen
2016-01-29 17:27:35 -05:00
parent 68edc67bde
commit 001598a821
4 changed files with 191 additions and 9 deletions

View File

@ -561,7 +561,8 @@ gtk_private_h_sources = \
gtkwidgetprivate.h \
gtkwin32themeprivate.h \
gtkwindowprivate.h \
gtktreemenu.h
gtktreemenu.h \
gdkpixbufutilsprivate.h
# GTK+ C sources to build the library from
gtk_base_c_sources = \
@ -916,7 +917,8 @@ gtk_base_c_sources = \
gtkwidgetpath.c \
gtkwindow.c \
gtkwindowgroup.c \
gtkwin32theme.c
gtkwin32theme.c \
gdkpixbufutils.c
if USE_QUARTZ
gtk_base_c_sources += \