GNOME Bugzilla – Bug 463907
'Recent Documents' is broken in gnome-panel 2.19.5
Last modified: 2007-09-03 09:52:44 UTC
Please describe the problem: Under gtk+2.11.6 and glib2 2.14 , 'Recent Documents' stays empty regardless of how many documents I open. Steps to reproduce: 1. open a few files 2. in gnome-panel, open Places. Actual results: 'Recent Documents' is empty. Expected results: 'Recent Documents' should show the previously opened documents. Does this happen every time? Happens every time. Other information: Note that the 'recently used' in the gtk filepicker is still working. This happens only in gnome-panel.
Should this be under gnome-panel or gnome-menus?
~/.recently-used.xbel gets filled out correctly but gnome panel doesn't read from it.
It seems this might be a gtk+ problem as well.
When I downgraded gnome-panel to 2.18.3 , it was still borken. After I downgraded gtk+ to 2.10, it works again. This is definitely a gtk+ bug.
I cannot reproduce this. The recent files support in the panel works fine for me, with GTK+ svn trunk.
ok, I will wait for 2.11.7 and see if this continues to occur here.
Similar Ubuntu bug on https://bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/131266 "Symptom: Places->Recent documents does not update even though one opens several files of different MIME types. This means that if one clears recent documents, it will reman grayed out. Reproducibility: Near 100% on my system, in various languages, although not everybody suffers this bug: Possible causes: As $HOME/.recently-used.xbel is being updated all the time, it is possible that gnome-panel (I'm not sure it's this package) is not reading or parsing properly $HOME/.recently-used.xbel. What has been attempted: I've deleted a remnant .recently-used on my $HOME to see if this was the culprit, but it seems it wasn't. I've also installed more language packs to see if this was a language pack issue. So far I've seen the same in Spanish (Spain), Basque (Spain), English (US) and English (UK). I've also made a symlink called .recently-used pointing to .recently-used.xbel to see if the issue was that gnome-panel was reading the old .recently-used instead of the updated .xbel one. It seems it didn't help. I'm now trying to see if the issue lies with the existance of two .recently* files."
could someone experiencing this bug check out a recent gtk+ snapshot and run the tests/testrecentchoosermenu test app? if it works then it's a bug in the panel, otherwise it's a bug in the GtkRecent code.
The GTK test seems to work correctly
It used to work for me also, but after clearing the panel entries, they're greyed out. As for GTK: - gedit still shows my wep.txt textfile as recent used and is able to open it - fileselector shows all files recently opened when visiting the recent used bookmark This is something going on between gnome-panel and GTK.
the totem list seems to be not updated neither
*** Bug 469163 has been marked as a duplicate of this bug. ***
I've been tracking down the panel's code in SVN trunk. the recent documents menu item is set sensitive in the GtkRecentManager::changed signal handler if the GtkRecentManager:size property is > 0. what happens if you apply the following patch to gnome-panel? Index: gnome-panel/panel-recent.c =================================================================== --- gnome-panel/panel-recent.c (revision 10588) +++ gnome-panel/panel-recent.c (working copy) @@ -131,7 +131,7 @@ panel_recent_manager_changed_cb (GtkRece g_object_get (manager, "size", &size, NULL); - gtk_widget_set_sensitive (menu_item, size > 0); + g_debug (G_STRLOC ": RecentManager:size = %d", size); } static GtkWidget *clear_recent_dialog = NULL; and see in $HOME/.xsession-errors what happens. at the moment, I have no idea why this happens.
If I gnome-panel again inside Xephyr it works. But there is a strange "No items found" entry. See attached screenshot.
Created attachment 94717 [details] Screenshot showing menu inside Xephyr working
I should also make it clear that gnome-panel was still running on the host and that the recent Documents menu was still greyed out.
nothing is printed when opening a video, a pdf or a text, looks like panel_recent_manager_changed_cb() is not called. When clearing the menu "** (gnome-panel:24948): DEBUG: panel-recent.c:135: RecentManager:size = 0"
Created attachment 94755 [details] [review] remove the stat() delta check the only thing that might cause the storage file not to be read, and that changed between 2.10 and 2.11, is the stat() delta check I added. does applying this patch restore the functionality for you?
*** Bug 472517 has been marked as a duplicate of this bug. ***
the change makes the menu work correctly
fix committed in trunk. 2007-09-03 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentmanager.c (gtk_recent_manager_poll_timeout): Remove the stat() time barrier, as it seems to cause bug #463907 (thanks to Sebastien Bacher).