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 495105 - Open recent file keyboard shortcuts do not work correctly
Open recent file keyboard shortcuts do not work correctly
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-11-08 20:34 UTC by Jeff Westerinen
Modified: 2014-04-28 20:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simple test case (1.72 KB, application/gzip)
2014-04-28 18:11 UTC, Juan Pablo Ugarte
  Details
Proposed patch (1.70 KB, patch)
2014-04-28 18:16 UTC, Juan Pablo Ugarte
accepted-commit_now Details | Review

Description Jeff Westerinen 2007-11-08 20:34:52 UTC
Please describe the problem:
The open recent file keyboard shortcut, <Alt-F> <R><num>, will only open the first file requested.  All other attempts beyond the first are ignored.


Steps to reproduce:
1. With an existing set of recently edited .glade files, launch glade3.
2. Hit <Alt-F> <R><num> where num is any file item shown in the list.
3. Attempt to repeat step 2.


Actual results:
The first file is opened, but no others can be opened.


Expected results:
Any arbitrary number of files requested with <Alt-F> <R><num> should be opened.


Does this happen every time?
Yes

Other information:
Using the mouse to click on the menu items works correctly.
Comment 1 Tristan Van Berkom 2013-05-20 08:10:26 UTC
Interesting... years later and this is still a bug :-/
Comment 2 Juan Pablo Ugarte 2014-04-28 18:11:35 UTC
Created attachment 275370 [details]
Simple test case

This test case demonstrate this is not specific to Glade.

It creates menubar with a GtkRecentChooserMenu submenu and connects to the "item-activated" signal and calls gtk_recent_chooser_get_current_uri() in the handler to get the selected uri
Comment 3 Juan Pablo Ugarte 2014-04-28 18:16:01 UTC
Created attachment 275371 [details] [review]
Proposed patch

When activating an item using mnemonics GtkRecentChooserMenu does not select a item before calling the item-activated signal thus  gtk_recent_chooser_get_current_uri() always return the last selected item instead of the activated one
Comment 4 Matthias Clasen 2014-04-28 19:07:20 UTC
Review of attachment 275371 [details] [review]:

Patch works fine. Just put the explanation from the comment into the commit message.
Comment 5 Juan Pablo Ugarte 2014-04-28 20:20:47 UTC
Done! Pushed to master and gtk-3-12 branch