[gvfs/wip/rishi/goa: 1/3] mtp: Replace a deprecated function
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/rishi/goa: 1/3] mtp: Replace a deprecated function
- Date: Fri, 4 Sep 2015 14:47:07 +0000 (UTC)
commit e2deb6aa897bfab343696c3c9dbb1e45bc340949
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Aug 21 13:52:31 2015 +0200
mtp: Replace a deprecated function
daemon/gvfsbackendmtp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index 5bc1e64..8bc44fd 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -498,7 +498,7 @@ emit_event_internal (GVfsMonitor *monitor,
{
DEBUG ("(III) emit_event_internal (%s, %d)\n", path, event);
- char *dir = g_dirname (path);
+ char *dir = g_path_get_dirname (path);
const char *monitored_path = g_object_get_data (G_OBJECT (monitor), "gvfsbackendmtp:path");
if (g_strcmp0 (dir, monitored_path) == 0) {
DEBUG ("(III) emit_event_internal: Event %d on directory %s for %s\n", event, dir, path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]