[gvfs/wip/rishi/goa: 1/2] mtp: Replace a deprecated function



commit 5fa5eee6059dd4da5cd02612b1102d8081502e8b
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]