[rygel] ui: Show paths instead of URIs whenever possible
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] ui: Show paths instead of URIs whenever possible
- Date: Thu, 9 Jul 2009 11:44:04 +0000 (UTC)
commit 4c9ff7f0771826533b8d8c90d14596e610900faa
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Jul 9 12:40:41 2009 +0300
ui: Show paths instead of URIs whenever possible
src/ui/rygel-media-export-pref-section.vala | 12 +++++++++---
1 files 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]