On Sat, 13 Oct 2007 11:59:56 +0200, Enrico Tröger enrico.troeger@uvena.de wrote:
On Fri, 12 Oct 2007 16:13:56 +0200, Harold Aling h.aling@home.nl wrote:
On Fri, 12 Oct 2007 12:59:41 +0100, Nick Treleaven nick.treleaven@btinternet.com wrote:
- GTK recent documents support (GTK 2.10+?)
- GTK print dialog support (GTK 2.10+?)
Maybe, I don't have GTK 2.10 yet, so I won't work on these for now.
I'm not sure about the need for recent documents, wouldn't it contain a lot of files that Geany can't open, e.g. images?
I looked at the print API a while back, but it didn't seem to be trivial to setup (I think you have to draw everything manually, rather than letting the widget draw itself onto a canvas).
I thought of it the other way around.
I use Xfce's 'Places' panel plugin, and that plugin draws items that are on the 'recent documents' list. If Geany opens and/or saves a file, Geany should report that file to the 'recent documents collector' (GTK)
This is a good idea. I don't want to use the GTK Recent files support completely because this would mean we lose this feature on GTK < 2.10 or we have to use many #ifdef's and to maintain code for GTK >= 2.10 and GTK < 2.10. But just adding the recent files to GTK's list should be possible. I'll work on this soon.
Done in SVN 1943. Geany now adds the file also to GTK's recent files list everytime the file is added to Geany's recent files list. I tested the places plugin and it seems to work fine. It even opens the file again with Geany if I select it in the plugin. The only sad thing is, it works only with GTK >= 2.10.
Regards, Enrico