From 4c9ff7f0771826533b8d8c90d14596e610900faa Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Thu, 9 Jul 2009 12:40:41 +0300 Subject: [PATCH] ui: Show paths instead of URIs whenever possible --- src/ui/rygel-media-export-pref-section.vala | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ui/rygel-media-export-pref-section.vala b/src/ui/rygel-media-export-pref-section.vala index 66c2493..a6ec501 100644 --- a/src/ui/rygel-media-export-pref-section.vala +++ b/src/ui/rygel-media-export-pref-section.vala @@ -107,11 +107,17 @@ public class Rygel.MediaExportPrefSection : Rygel.PluginPrefSection { if (this.dialog.run () == ResponseType.OK) { TreeIter iter; - var uris = this.dialog.get_uris (); + var dirs = this.dialog.get_files (); + + foreach (var dir in dirs) { + string path = dir.get_path (); + + if (path == null) { + path = dir.get_uri (); + } - foreach (var uri in uris) { this.liststore.append (out iter); - this.liststore.set (iter, 0, uri, -1); + this.liststore.set (iter, 0, path, -1); } } -- 2.7.4