tracker r2745 - in trunk: . src/libtracker-data



Author: ifrade
Date: Mon Dec 29 14:09:32 2008
New Revision: 2745
URL: http://svn.gnome.org/viewvc/tracker?rev=2745&view=rev

Log:
Replaced old glib symbol g_basename with new g_path_get_basename

Modified:
   trunk/ChangeLog
   trunk/src/libtracker-data/tracker-data-update.c

Modified: trunk/src/libtracker-data/tracker-data-update.c
==============================================================================
--- trunk/src/libtracker-data/tracker-data-update.c	(original)
+++ trunk/src/libtracker-data/tracker-data-update.c	Mon Dec 29 14:09:32 2008
@@ -701,7 +701,7 @@
 	TrackerService      *service;
 	gchar               *escaped_path;
 	gchar               *dirname;
-	const gchar         *basename;
+	gchar               *basename;
 
 	g_return_if_fail (path != NULL);
 	g_return_if_fail (metadata != NULL);
@@ -730,8 +730,8 @@
 
 	escaped_path = tracker_escape_string (path);
 
-	basename = g_basename (escaped_path);
-	dirname = g_dirname (escaped_path);
+	basename = g_path_get_basename (escaped_path);
+	dirname = g_path_get_dirname (escaped_path);
 
 	/* TODO Warning: comparing Modified against Accessed. Do we have a
 	 * better field for this? */
@@ -804,6 +804,7 @@
 	}
 
 	g_free (dirname);
+	g_free (basename);
 	g_free (escaped_path);
 }
 



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