From 4ef780b529a4f48daa8a991466bd70537a1f2eb5 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Tue, 21 Apr 2009 18:53:53 +0300 Subject: [PATCH] Add convenience methods to set IP, port and xbox support. --- src/ui/rygel-config-editor.vala | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ui/rygel-config-editor.vala b/src/ui/rygel-config-editor.vala index 2f0acd9..b989fc9 100644 --- a/src/ui/rygel-config-editor.vala +++ b/src/ui/rygel-config-editor.vala @@ -33,6 +33,18 @@ public class Rygel.ConfigEditor : ConfigReader { base (); } + public void set_host_ip (string ip) { + this.set_string ("general", "host-ip", ip); + } + + public void set_port (uint16 port) { + this.set_int ("general", "port", port); + } + + public void set_enable_xbox (bool enabled) { + this.set_bool ("general", "enable-xbox", enabled); + } + public void set_title (string section, string title) { this.set_string (section, "title", title); } -- 2.7.4