summaryrefslogtreecommitdiff
path: root/gtk/gdkpixbufutilsprivate.h
Commit message (Collapse)AuthorAgeFilesLines
* gtk4-encode-symbolic: Add debug outputencode-symbolic-debugMatthias Clasen2020-12-291-0/+1
| | | | | | Add a --debug option that makes this tool produce some debug output that can be helpful in tracking down why symbolic svgs are broken.
* Avoid mime sniffing where possibleMatthias Clasen2020-02-081-0/+2
| | | | | | | When we are loading symbolic pngs or svgs, we know that we need to the png or svg loader, so there is no need to go through (surprisingly expensive) mime sniffing to find the right loader.
* Move symbolic pixbuf recoloring codeMatthias Clasen2019-10-181-0/+6
| | | | | This function is better off next to the other symbolic png code in gdkpixbufutils.c.
* Add another symbolic pixbuf helperMatthias Clasen2019-10-181-0/+5
|
* pixbuf utils: Preserve format informationMatthias Clasen2019-10-151-4/+26
| | | | | | | | | | | | When we are loading themed icons, we know if we deal with an svg or png file, so it is entirely unnecessarily to have gdk-pixbuf use g_content_type guess to rediscover that information. Change the pixbuf utils apis we have to allow passing format information down to where we can use it when creating the pixbuf loader.
* Make texture variants of some pixbuf utilsMatthias Clasen2017-11-301-1/+11
| | | | This will let us avoid direct pixbuf use in some places.
* Make the recoloring code more robustMatthias Clasen2017-11-071-0/+3
| | | | | Pass both width+height and scale, so we can handle the case where width+height are zero and we are using the file, scaled.
* Fix symbolic.svg renderingMatthias Clasen2017-11-071-0/+13
| | | | | | | | | With the shader approach to symbolic recoloring, we must not recolor the svgs anymore as we're loading them. Instead, load them the same way that gtk-encode-symbolic-svg does. This fixes the rendering of large symbolic icons e.g. the 'no search results found' page in the file chooser.
* icon theme: Improve loading of unthemed filesMatthias Clasen2016-01-291-0/+35
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.