Open ghost opened 7 years ago
The latest Nautilus and Nemo don't seem to read attach points at all from .icon files. Modifying attach points and updating the respective icon caches doesn't change the emblem positions in either of them in Fedora 25+. Was this feature possibly dependent on a GTK+2 function that was never ported to GTK+3?
In any case, a good workaround for the time being would be to hard-code sane attach points, say, at the four corners of the icon. This is obviously not a huge problem, but it's ugly and annoying, so I'd love to see some work on this.
My C sucks, so I could try, but it'd likely take an annoyingly long time for something so simple.
I'm at a loss on this. Rifling through the GTK+3 git logs, I thought it might have to do with the fact that gtk_icon_info_get_attach_points ()
and several other bits of icon theme API were wiped out over a year ago (see https://gitlab.gnome.org/GNOME/gtk/commit/d18891233839db96478d8765425c9e390fa9c7ef), but that doesn't actually seem to affect the 3.22 branch.
I've looked at several other similarly deprecated functions and features that didn't make it to GTK+3 from GTK+2, and they all seem to be dealt with, like the use of cairo_t in place of missing Gdk types, etc. Basically, I'm in over my head for the time being, because I can't find the reason this doesn't just work.
Would love to see someone with actual C experience take a crack at this, though.
GNOME is always removing features they no longer use, probably to avoid maintaining stuff they won't ever see in their default use case. When this affects GTK itself though, it creates headaches for a lot of projects.
Sure, they're definitely notorious for this, but for the time being, the function I'm talking about is actually still available even in the latest GTK+3.22 branches. It's been removed in master, which afaict is currently being prepped for the first GTK+4 release.
I don't know where the issue is with Caja failing to read icon data as a result of that. We'll surely know the root of the problem when it's time to port to GTK+4, though... X-<
This bug should be posted again, since it hasn't gotten any attention from any developer. I need this everlasting bug fixed. I want to write extensions for Caja, which will add emblems corresponding to other conditions. Pretty nifty to have.
I couldn't approach the problem from the source view of things. I downloaded other distributions and searched the internet. All examples and the specification state, that my "Icon Data" file is correct. Although i would be strictly against removing the functionality of "Icon Data", the workaround, to hard code the placing of the emblems, would sufficient. At least for now.
Caja already has the amount of icons hard coded:
Columns: 1: View size 2: Amount of icons per side 3: Displayed correctly 4: The total amount of space for icons 33% 2 y 4:x,y|x,y|x,y|x,y 50% 2 y 4:x,y|x,y|x,y|x,y 66% 3 n 8:x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y 100% 3 n 8:x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y (should be 48px) 150% 3 n 8:x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y 200% 3 n 8:x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y 400% 5 n 16x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y|x,y
So, Caja displays emblems correct, as long as the amount doesn't exceed 4. This is true for 33% and 50%. If your view is 100%, Caja tries to place 3 icons per side and from there on, every second emblem is placed wrong. Try it. The position for the second emblem must have any kind of mistake and it seems to be some kind of generic function. That is because the same mistake happens for every side.
How can i push this bug report?
seams like caja isn't reading icon data on the gtk3 port(eg translations of icons/emblems, and attach points for the embed test/text preview)