[rygel] core: Move context.host_path call to RootDeviceFactory
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] core: Move context.host_path call to RootDeviceFactory
- Date: Thu, 9 Jul 2009 11:43:54 +0000 (UTC)
commit 0406ba5de258f156491db3d6a5646048ad1e3bee
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Jul 8 18:13:27 2009 +0300
core: Move context.host_path call to RootDeviceFactory
src/rygel/rygel-main.vala | 3 ---
src/rygel/rygel-root-device-factory.vala | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-main.vala b/src/rygel/rygel-main.vala
index 67c2936..51935a1 100644
--- a/src/rygel/rygel-main.vala
+++ b/src/rygel/rygel-main.vala
@@ -113,9 +113,6 @@ public class Rygel.Main : Object {
}
this.factories.add (factory);
-
- // Host UPnP dir
- context.host_path (BuildConfig.DATA_DIR, "");
} else {
debug ("Ignoring network context %s (%s).",
context.name,
diff --git a/src/rygel/rygel-root-device-factory.vala b/src/rygel/rygel-root-device-factory.vala
index 33fd0ed..de3daa9 100644
--- a/src/rygel/rygel-root-device-factory.vala
+++ b/src/rygel/rygel-root-device-factory.vala
@@ -49,6 +49,9 @@ public class Rygel.RootDeviceFactory {
this.desc_dir = Path.build_filename (Environment.get_user_config_dir (),
"Rygel");
this.ensure_dir_exists (this.desc_dir);
+
+ // Host UPnP dir
+ context.host_path (BuildConfig.DATA_DIR, "");
}
public RootDevice create (Plugin plugin) throws GLib.Error {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]