[gnome-menus] entry-directories: Only log about invalidations if it was handled
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-menus] entry-directories: Only log about invalidations if it was handled
- Date: Wed, 20 Nov 2013 01:49:28 +0000 (UTC)
commit 3affc49d26dffe1d6af1d2db363a7fa47aaebc5a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Nov 19 20:49:14 2013 -0500
entry-directories: Only log about invalidations if it was handled
libmenu/entry-directories.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libmenu/entry-directories.c b/libmenu/entry-directories.c
index d108519..6af3850 100644
--- a/libmenu/entry-directories.c
+++ b/libmenu/entry-directories.c
@@ -514,12 +514,6 @@ handle_cached_dir_changed (MenuMonitor *monitor,
char *basename;
char *dirname;
- menu_verbose ("'%s' notified of '%s' %s - invalidating cache\n",
- dir->name,
- path,
- event == MENU_MONITOR_EVENT_CREATED ? ("created") :
- event == MENU_MONITOR_EVENT_DELETED ? ("deleted") : ("changed"));
-
dirname = g_path_get_dirname (path);
basename = g_path_get_basename (path);
@@ -570,6 +564,12 @@ handle_cached_dir_changed (MenuMonitor *monitor,
if (handled)
{
+ menu_verbose ("'%s' notified of '%s' %s - invalidating cache\n",
+ dir->name,
+ path,
+ event == MENU_MONITOR_EVENT_CREATED ? ("created") :
+ event == MENU_MONITOR_EVENT_DELETED ? ("deleted") : ("changed"));
+
/* CHANGED events don't change the set of desktop entries */
if (event == MENU_MONITOR_EVENT_CREATED || event == MENU_MONITOR_EVENT_DELETED)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]