How to get NautilusFileInfo, to call nautilus_file_info_add_emblem()?



How can I add an emblem to a file?

I gather from the Nautilus reference manual that once I have a
NautilusFileInfo object, I can call nautilus_file_info_add_emblem(),
http://library.gnome.org/devel/libnautilus-extension/stable/libnautilus-extension-nautilus-file-info.html#nautilus-file-info-add-emblem

- but I can't figure out how to get a NautilusFileInfo object from a
file path...

I want my program to be able to take a file path and an emblem name, and
add the emblem to the file, e.g.

 $ myprogram /home/me/file/path emblemname
 $ 


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