meta-openembedded/meta-gnome/recipes-gnome/gvfs/files/0004-Adapt-to-glib-thread-API-changes.patch
Andreas Müller 985fb27d51 gvfs: slightly update to 1.10.1 and backport patches to build with glib 2.36
This is a bit of a bad hack but as long as we are sitting on gnome2 we cannot
follow to latest mainline because it would require gnome-disk-utility 3.x which
relies on libnotify 0.7.x. For libnotify 0.6.x / 0.7.x API-conflict there is
no solution available yet.

The following tests were performed:

* build my standard xfce-image from scratch
* test automount
* test trash
* test network browsing

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-05-03 16:12:13 +02:00

45 lines
1.6 KiB
Diff

From 008031adbe2fd118a4e9a3c7219a9777cab1bb75 Mon Sep 17 00:00:00 2001
From: Tomas Bzatek <tbzatek@redhat.com>
Date: Wed, 26 Oct 2011 14:12:13 +0200
Subject: [PATCH 2/2] Adapt to glib thread API changes
Last piece in order to fix https://bugzilla.gnome.org/show_bug.cgi?id=661148
Upstream-Status: Backport
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
client/gvfsfusedaemon.c | 2 +-
daemon/trashlib/trashexpunge.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/client/gvfsfusedaemon.c b/client/gvfsfusedaemon.c
index c986f69..5e79638 100644
--- a/client/gvfsfusedaemon.c
+++ b/client/gvfsfusedaemon.c
@@ -2358,7 +2358,7 @@ vfs_init (struct fuse_conn_info *conn)
volume_monitor = g_object_new (g_type_from_name ("GDaemonVolumeMonitor"), NULL);
subthread_main_loop = g_main_loop_new (NULL, FALSE);
- subthread = g_thread_create ((GThreadFunc) subthread_main, NULL, FALSE, NULL);
+ subthread = g_thread_new ("gvfs-fuse-sub", (GThreadFunc) subthread_main, NULL);
/* Indicate O_TRUNC support for open() */
conn->want |= FUSE_CAP_ATOMIC_O_TRUNC;
diff --git a/daemon/trashlib/trashexpunge.c b/daemon/trashlib/trashexpunge.c
index a5cf975..677fb81 100644
--- a/daemon/trashlib/trashexpunge.c
+++ b/daemon/trashlib/trashexpunge.c
@@ -124,7 +124,7 @@ trash_expunge (GFile *directory)
{
GThread *thread;
- thread = g_thread_create (trash_expunge_thread, NULL, FALSE, NULL);
+ thread = g_thread_new ("trash-expunge", trash_expunge_thread, NULL);
g_assert (thread != NULL);
trash_expunge_alive = TRUE;
}
--
1.7.6.5