tracker r3071 - in trunk: . src/trackerd
- From: mr svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r3071 - in trunk: . src/trackerd
- Date: Fri, 13 Mar 2009 11:18:31 +0000 (UTC)
Author: mr
Date: Fri Mar 13 11:18:31 2009
New Revision: 3071
URL: http://svn.gnome.org/viewvc/tracker?rev=3071&view=rev
Log:
* src/trackerd/tracker-cleanup.c: (check_for_volumes_to_cleanup),
(tracker_cleanup_init): Code clean ups.
Modified:
trunk/ChangeLog
trunk/src/trackerd/tracker-cleanup.c
Modified: trunk/src/trackerd/tracker-cleanup.c
==============================================================================
--- trunk/src/trackerd/tracker-cleanup.c (original)
+++ trunk/src/trackerd/tracker-cleanup.c Fri Mar 13 11:18:31 2009
@@ -39,6 +39,8 @@
guint timeout_id;
} TrackerCleanupPrivate;
+static GStaticPrivate private_key = G_STATIC_PRIVATE_INIT;
+
static gboolean
check_for_volumes_to_cleanup (gpointer user_data)
{
@@ -70,11 +72,16 @@
/* Add cleanup items here */
if (mount_point) {
- GFile *dir_file = g_file_new_for_path (mount_point);
- gchar *mntp_uri = g_file_get_uri (dir_file);
- tracker_thumbnailer_cleanup (mntp_uri);
- g_free (mntp_uri);
- g_object_unref (dir_file);
+ GFile *file;
+ gchar *mount_point;
+
+ file = g_file_new_for_path (mount_point);
+ mount_point = g_file_get_uri (file);
+
+ tracker_thumbnailer_cleanup (mount_point);
+
+ g_free (mount_point);
+ g_object_unref (file);
}
g_value_unset (&value);
@@ -88,8 +95,6 @@
return TRUE;
}
-static GStaticPrivate private_key = G_STATIC_PRIVATE_INIT;
-
static void
private_free (gpointer data)
{
@@ -127,7 +132,8 @@
private);
}
-void tracker_cleanup_shutdown (void)
+void
+tracker_cleanup_shutdown (void)
{
g_static_private_set (&private_key, NULL, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]