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



commit f555823c8cffe7ae73e1700d1d5e942f91bc9bb5
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]