Hi all. With my troubles at $ORK finally over[1], and with more free time again on my side, I finished the new recently used resources management that should replace the libegg/recent-files code.
The code is here: http://devel.emmanuelebassi.net/software/recent-chooser-commit.diff http://devel.emmanuelebassi.net/software/recent-chooser-commit.diff.bz2 It contains the RecentManager object, which handles the operations on the list and its changes; the RecentChooser interface for viewer widgets; a simple GtkMenu-subclass, to be used as a sub-menu for a 'Open Recent' menu item, or for a GtkMenuToolButton. DEPENDENCIES The code depends on the stable versions of GLib, GTK and libxml2. Just for the examples, we also need libglade and libgnomevfs. CAVEATS * purging of the list is still unimplemented; * the menu widget allows appending custom items, but not prepending; * filtering on visualization is still unimplemented; * in the HIG v2.0, the "Open Recent" sub-menu was removed in favour of a inlined list; I think this sucks on win32, too. TO DO * filtering using a GtkFileFiler-like object (already defined, albeit still unimplemented); * TreeView-like widget, in order to implement an Office-XP-like side pane, with some meta data (icon, status, full location, ...). Can someone have a look at it, and tell me if it's okay for me to commit it into libegg? Kind regards, Emmanuele. +++ [1] In the "Houston, we've got recovery" sense. -- Emmanuele Bassi <[EMAIL PROTECTED]> Web site: http://log.emmanuelebassi.net _______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list