How to get a NautilusFile ready or confirmed?



Hi all,

I'm working on bug #601709 (bookmarks should use same custom icon as folder) [1] and I think I'm making a good progress. The only thing that's left is that bookmaks' icons don't get updated after launching nautilus, you have to open the bookmark or its parent. The reason this is happening because there is an if statement in libnautilus-private/nautilus-bookmark.c line 349 [2] that always yields false for both checks inside it.

My question is, is there a way to simulate the effect of opening the bookmark (i.e. making NautilusFile ready for NAUTILUS_FILE_ATTRIBUTES_FOR_ICON or confirmed) without really opening it?

Thank you in advance :) ...
Ahmad Sherif

[1] https://bugzilla.gnome.org/show_bug.cgi?id=601709
[2] http://git.gnome.org/browse/nautilus/tree/libnautilus-private/nautilus-bookmark.c#n349


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]