On Wed, 2011-01-19 at 07:55 -0800, Romano Giannetti wrote: > Hi, > > this is a simple question. I would like to try to write a plugin for > EOG that adds an button so that when you click on it the current image > is copied in a predetermined folder. It would be very useful to select > photos on the go (and simpler that the tagging/select by tag offered > by much more complex software). > > I have seen the instruction for the "very simple plugin", on the > http://live.gnome.org/EyeOfGnome/Plugins page, but I need something > more (eg, how to add a button, how to bind an action to that button, > how to retrieve the current full file name of the image shown). Could > you suggest me a place to look at?
Regarding the first two things you give as an example, you need to learn first to write GTK+ code in python. That is not specific to the Eye of GNOME. You can check the pygtk documentation in http://www.pygtk.org/ For the filename question, you need to check the eog API. That's a good starting point to understand the eog UI and how to extend it. The api is documented in C but you can extrapolate from that: http://library.gnome.org/devel/eog/unstable/rn01.html Also you can check the eog source code to find out how the application itself does this or that. Claudio -- Claudio Saavedra <[email protected]> _______________________________________________ eog-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/eog-list
