tracker r2497 - in trunk: . src/tracker-extract
- From: mr svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2497 - in trunk: . src/tracker-extract
- Date: Fri, 14 Nov 2008 15:36:26 +0000 (UTC)
Author: mr
Date: Fri Nov 14 15:36:26 2008
New Revision: 2497
URL: http://svn.gnome.org/viewvc/tracker?rev=2497&view=rev
Log:
* src/tracker-extract/tracker-albumart.c: (perhaps_copy_to_local):
Renamed the make_directory_with_parents and added a comment
detailing why we stole it from GLib.
Modified:
trunk/ChangeLog
trunk/src/tracker-extract/tracker-albumart.c
Modified: trunk/src/tracker-extract/tracker-albumart.c
==============================================================================
--- trunk/src/tracker-extract/tracker-albumart.c (original)
+++ trunk/src/tracker-extract/tracker-albumart.c Fri Nov 14 15:36:26 2008
@@ -84,11 +84,15 @@
#endif /* HAVE_STRCASESTR */
-
+/* NOTE: This function was stolen from GLib 2.18.x. Since upstream and
+ * the Maemo branch don't have this in circulation yet, we have copied
+ * it here. This can be removed an replaced with
+ * g_file_make_directory_with_parents() when we get it. -mr
+ */
static gboolean
-tracker_make_directory_with_parents (GFile *file,
- GCancellable *cancellable,
- GError **error)
+make_directory_with_parents (GFile *file,
+ GCancellable *cancellable,
+ GError **error)
{
gboolean result;
GFile *parent_file, *work_file;
@@ -275,7 +279,7 @@
GFile *dirf;
dirf = g_file_get_parent (local_file);
- tracker_make_directory_with_parents (dirf, NULL, NULL);
+ make_directory_with_parents (dirf, NULL, NULL);
g_object_unref (dirf);
g_file_copy_async (from, local_file, 0, 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]