gvfs r1526 - in trunk: . hal
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1526 - in trunk: . hal
- Date: Tue, 4 Mar 2008 13:40:28 +0000 (GMT)
Author: alexl
Date: Tue Mar 4 13:40:28 2008
New Revision: 1526
URL: http://svn.gnome.org/viewvc/gvfs?rev=1526&view=rev
Log:
2008-03-04 Alexander Larsson <alexl redhat com>
* hal/ghalmount.c:
Fix deadlock when looking for cdrom icons.
Modified:
trunk/ChangeLog
trunk/hal/ghalmount.c
Modified: trunk/hal/ghalmount.c
==============================================================================
--- trunk/hal/ghalmount.c (original)
+++ trunk/hal/ghalmount.c Tue Mar 4 13:40:28 2008
@@ -74,6 +74,9 @@
GAsyncReadyCallback callback,
gpointer user_data);
+
+static GFile *get_root (GHalMount *hal_mount);
+
static void g_hal_mount_mount_iface_init (GMountIface *iface);
#define _G_IMPLEMENT_INTERFACE_DYNAMIC(TYPE_IFACE, iface_init) { \
@@ -341,7 +344,7 @@
search_data = g_new0 (MountIconSearchData, 1);
search_data->mount = g_object_ref (m);
- search_data->root = g_mount_get_root (G_MOUNT (m));
+ search_data->root = get_root (m);
_g_find_file_insensitive_async (search_data->root,
"autorun.inf",
@@ -775,18 +778,22 @@
}
static GFile *
+get_root (GHalMount *hal_mount)
+{
+ if (hal_mount->override_root != NULL)
+ return g_object_ref (hal_mount->override_root);
+ else
+ return g_file_new_for_path (hal_mount->mount_path);
+}
+
+static GFile *
g_hal_mount_get_root (GMount *mount)
{
GHalMount *hal_mount = G_HAL_MOUNT (mount);
GFile *root;
G_LOCK (hal_mount);
-
- if (hal_mount->override_root != NULL)
- root = g_object_ref (hal_mount->override_root);
- else
- root = g_file_new_for_path (hal_mount->mount_path);
-
+ root = get_root (hal_mount);
G_UNLOCK (hal_mount);
return root;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]