GtkRecentMenu always returns the most recent item, rather than the selected item, when calling gtk_recent_chooser_get_current_uri()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Application Menu Indicator |
New
|
Undecided
|
Unassigned | ||
indicator-appmenu (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
GtkRecentMenu always returns the most recent item, rather than the selected item, when calling gtk_recent_
I noticed this in some code I was working on and after spending some time banging my head against it I decided to try and replicate the issue in some other programs.
To reproduce the problem in MyPaint I took the following actions
1) Open several files with File->Open, so that the File->Open Recent menu has more than 1 item in it
2) Select an item other than the first (0th) in the File->Open Recent menu
What happens:
The current item remains open.
What I expect to happen:
The selected item is opened.
Changing my code to use gtk_recent_
Ubuntu version:
Description: Ubuntu 12.10
Release: 12.10
libgtk-3.0 version:
libgtk-3-0-dbg:
Installed: (none)
Candidate: 3.6.0-0ubuntu3.2
Version table:
3.
500 http://
3.6.0-0ubuntu3 0
500 http://
libgtk-3-0:
Installed: 3.6.0-0ubuntu3.2
Candidate: 3.6.0-0ubuntu3.2
Version table:
*** 3.6.0-0ubuntu3.2 0
500 http://
100 /var/lib/
3.6.0-0ubuntu3 0
500 http://
Here's a simple Python program which demonstrates the problem I've observed in both my own code and MyPaint.