[nautilus/origin/wip/desktop-split-nofonclicts: 20/26] desktop-icon-file: chain up for get_target_uri



commit 09406abcc4349fb066fb56942b3b998d4da41e40
Author: Carlos Soriano <csoriano gnome org>
Date:   Tue Apr 12 15:56:56 2016 +0200

    desktop-icon-file: chain up for get_target_uri
    
    In case we don't meet the conditions the parent function can still
    deal with it.

 libnautilus-private/nautilus-desktop-icon-file.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-desktop-icon-file.c 
b/libnautilus-private/nautilus-desktop-icon-file.c
index f08995c..7d9a2a6 100644
--- a/libnautilus-private/nautilus-desktop-icon-file.c
+++ b/libnautilus-private/nautilus-desktop-icon-file.c
@@ -361,10 +361,12 @@ real_get_target_uri (NautilusFile *file)
                if (location != NULL) {
                        uri = g_file_get_uri (location);
                        g_object_unref (location);
+
+                        return uri;
                }
        }
 
-        return uri;
+        return NAUTILUS_FILE_CLASS (nautilus_desktop_icon_file_parent_class)->get_target_uri (file);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]