gnome-menus r874 - in trunk: . libmenu



Author: vuntz
Date: Fri Apr 11 21:14:03 2008
New Revision: 874
URL: http://svn.gnome.org/viewvc/gnome-menus?rev=874&view=rev

Log:
2008-04-11  Vincent Untz  <vuntz gnome org>

	* libmenu/menu-monitor.c: (monitor_callback): get the path of the file
	that caused the event, instead of something that will break in some
	case because it returns an URI. Fix crash described in bug #522800.


Modified:
   trunk/ChangeLog
   trunk/libmenu/menu-monitor.c

Modified: trunk/libmenu/menu-monitor.c
==============================================================================
--- trunk/libmenu/menu-monitor.c	(original)
+++ trunk/libmenu/menu-monitor.c	Fri Apr 11 21:14:03 2008
@@ -190,7 +190,7 @@
 
   event_info = g_new0 (MenuMonitorEventInfo, 1);
 
-  event_info->path    = g_file_get_parse_name (child);
+  event_info->path    = g_file_get_path (child);
   event_info->event   = event;
   event_info->monitor = menu_monitor;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]