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



commit a94ce63e29ab54169b45e77cd2f846c596c46144
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 be63218..58e1e52 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]