On Sun, 9 Nov 2014 22:22:30 +0000 Emmanuele Bassi <[email protected]> wrote:
this is a change in GTK+ 3.14: the SVG icons are loaded as specified
by the icon theme data, and not constrained by the widget's
allocation.

the release notes for GTK+ 3.14 say:

* The icon theme code has become a little pickier about sizes and is not
  automatically scaling icons beyond the limits defined in the icon theme
  unless explicitly asked to do so with GTK_ICON_LOOKUP_FORCE_SIZE.
-- https://git.gnome.org/browse/gtk+/tree/README.in#n91

the application code should conform to that.

So does GNOME's default icon theme constrain the icon size to some maximum?

The /usr/share/pixmaps/vim.svg installed by vim-gui-common has a width and height of 550pt. On my system currently, it is shown at a size of 688x688 pixels by both Nautilus's "Open With" handler and by "Image Viewer" (eog). However the "Open With" tab on Nautilus's file "Properties" dialog shows the icon at a small size. Is the large icon shown by the "Open With" handler a bug in Nautilus or some GNOME/GTK+ library?

A workaround is to install a GNOME icon theme that includes its own vim icon (for example "gnome-colors-common") and select that icon theme in the GNOME Tweak Tool. gnome-colors-common installs a bunch of fixed size vim.png icons and a scalable vim.svg (with a size of 48x48 pixels).


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to