Hard code freeze break request: gnome-menu
- From: Vincent Untz <vuntz gnome org>
- To: release-team gnome org
- Subject: Hard code freeze break request: gnome-menu
- Date: Thu, 23 Sep 2010 16:36:47 +0200
Hi,
I'd like to break the hard code freeze for
https://bugzilla.gnome.org/show_bug.cgi?id=630410
When an application gets installed or removed, the .desktop file for the
app gets created/deleted, and the application menu changes.
However, it turns out the content of the menu was still considered the
same by gnome-menus because a cache was not invalidated.
Interestingly, this does not affect gnome-panel -- I didn't investigate
why. But it can affect other applications using gnome-menus.
I'm attaching the patch for easier review.
Cheers,
Vincent
--
Les gens heureux ne sont pas pressés.
diff --git a/libmenu/entry-directories.c b/libmenu/entry-directories.c
index c459ff5..13a2dde 100644
--- a/libmenu/entry-directories.c
+++ b/libmenu/entry-directories.c
@@ -451,6 +451,11 @@ handle_cached_dir_changed (MenuMonitor *monitor,
if (handled)
{
+ if (event == MENU_MONITOR_EVENT_CREATED || event == MENU_MONITOR_EVENT_DELETED)
+ {
+ _entry_directory_list_empty_desktop_cache ();
+ }
+
cached_dir_invoke_monitors (dir);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]