GNOME Bugzilla – Bug 511418
Inline menu items for recent files
Last modified: 2008-02-02 15:54:19 UTC
Applications such as Evince, eog, Totem, gedit etc all use inline recent menu items. Each has their list built into the application. GTK+ should handle this. Any implementation should keep an eye on RTL issues expressed in this mailing list discussion: http://mail.gnome.org/archives/gtk-devel-list/2008-January/msg00124.html
just to add a couple of thoughts about this: - EggRecentViewGtk in libegg/recent-files was how the old recent files code did the inline (and sub) menu; it's clunky, and it's a Object, not a GtkWidget; it can be reworked, anyway, to get a RecentChooserInlineMenu widget, attaching menu items to a GtkMenu at a given position. it might not be the best solution, though; most menus should be created using GtkUIManager or GtkBuilder (or both). - the UIManager object doing the inline thinghie (RecentViewUIManager) is equally clunky, but at least it could probably reworked into a RecentActionInline, using placeholders. another option is to make GtkAction be able to return a list of menu /toolbar items, which would in theory be more interesting (also useful to use a single GtkAction class to create a radio button group). - there is code for a GtkAction generating an inline list of recent files inside a UIManager-generated menu at: http://www.gnome.org/~ebassi/recent-uimanager-inline.c it's what gedit and other applications have been using, so it might be a good starting point for a GtkRecentInlineAction.
making this a duplicate of bug 349541 - because that one has more comments and the usability keyword. *** This bug has been marked as a duplicate of 349541 ***