<object class="GtkComboBoxText" id="iface-entry">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <items>
+ <item translatable="yes">Any</item>
+ </items>
</object>
<packing>
<property name="expand">True</property>
public class Rygel.NetworkPrefSection : PreferencesSection {
const string IFACE_ENTRY = "iface-entry";
+ const string ANY_NETWORK = "Any";
private ComboBoxText iface_entry;
}
public override void save () {
- this.config.set_interface (this.iface_entry.get_active_text ());
+ var iface = this.iface_entry.get_active_text ();
+
+ if (iface == ANY_NETWORK) {
+ iface = "";
+ }
+
+ this.config.set_interface (iface);
}
public override void set_sensitivity (bool sensitivity) {