After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 511418 - Inline menu items for recent files
Inline menu items for recent files
Status: RESOLVED DUPLICATE of bug 349541
Product: gtk+
Classification: Platform
Component: Class: GtkRecent
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Emmanuele Bassi (:ebassi)
Depends on:
Blocks:
 
 
Reported: 2008-01-23 00:54 UTC by Djihed Afifi
Modified: 2008-02-02 15:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Djihed Afifi 2008-01-23 00:54:23 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
Comment 1 Emmanuele Bassi (:ebassi) 2008-01-23 22:14:22 UTC
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.
Comment 2 Emmanuele Bassi (:ebassi) 2008-02-02 15:54:19 UTC
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 ***