From: Zeeshan Ali (Khattak) Date: Wed, 16 Feb 2011 00:43:16 +0000 (+0200) Subject: data,ui: Remove 'Port' option X-Git-Tag: RYGEL_0_9_9~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23f808ab1a4a31d575c1e543703ed2d6fc949085;p=profile%2Fivi%2Frygel.git data,ui: Remove 'Port' option --- diff --git a/data/rygel-preferences.ui b/data/rygel-preferences.ui index 5bd87ff..86be7cd 100644 --- a/data/rygel-preferences.ui +++ b/data/rygel-preferences.ui @@ -267,28 +267,10 @@ True False - 3 2 6 8 - - True - False - 0 - 12 - _Port - True - port-spinbutton - - - 2 - 3 - GTK_FILL - GTK_FILL - - - True False @@ -305,36 +287,6 @@ - - True - False - 0 - 0 - - - True - True - 5 - ● - 5 - 1 - True - False - adjustment1 - 1 - - - - - 1 - 2 - 2 - 3 - GTK_FILL - GTK_FILL - - - True False diff --git a/src/ui/rygel-general-pref-section.vala b/src/ui/rygel-general-pref-section.vala index 172159d..283e05d 100644 --- a/src/ui/rygel-general-pref-section.vala +++ b/src/ui/rygel-general-pref-section.vala @@ -26,10 +26,8 @@ using GUPnP; public class Rygel.GeneralPrefSection : PreferencesSection { const string UPNP_CHECKBUTTON = "upnp-checkbutton"; const string IFACE_ENTRY = "iface-entry"; - const string PORT_SPINBUTTON = "port-spinbutton"; private ComboBoxText iface_entry; - private SpinButton port_spin; private CheckButton upnp_check; @@ -43,8 +41,6 @@ public class Rygel.GeneralPrefSection : PreferencesSection { assert (this.upnp_check != null); this.iface_entry = (ComboBoxText) builder.get_object (IFACE_ENTRY); assert (this.iface_entry != null); - this.port_spin = (SpinButton) builder.get_object (PORT_SPINBUTTON); - assert (this.port_spin != null); this.context_manager = new ContextManager (null, 0); @@ -58,9 +54,6 @@ public class Rygel.GeneralPrefSection : PreferencesSection { // will do just fine. Same goes for rest of the keys. } try { - this.port_spin.set_value (config.get_port ()); - } catch (GLib.Error err) {} - try { this.upnp_check.active = this.config.get_upnp_enabled (); } catch (GLib.Error err) {} @@ -72,7 +65,6 @@ public class Rygel.GeneralPrefSection : PreferencesSection { public override void save () { this.config.set_interface (this.iface_entry.get_active_text ()); - this.config.set_port ((int) this.port_spin.get_value ()); this.config.set_upnp_enabled (this.upnp_check.active); }