Author: andar
Revision: 5385
Log:
Add option in Preferences to change the listen interface
Diff:
Modified: trunk/deluge/ui/gtkui/glade/preferences_dialog.glade
===================================================================
--- trunk/deluge/ui/gtkui/glade/preferences_dialog.glade 2009-06-11
01:06:08 UTC (rev 5384)
+++ trunk/deluge/ui/gtkui/glade/preferences_dialog.glade 2009-06-12
16:12:00 UTC (rev 5385)
@@ -839,6 +839,59 @@
</packing>
</child>
<child>
+ <widget class="GtkFrame" id="frame31">
+ <property name="visible">True</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <widget class="GtkAlignment"
id="alignment51">
+ <property name="visible">True</property>
+ <property name="top_padding">2</property>
+ <property
name="bottom_padding">2</property>
+ <property name="left_padding">12</property>
+ <child>
+ <widget class="GtkHBox" id="hbox21">
+ <property
name="visible">True</property>
+ <child>
+ <widget class="GtkEntry"
id="entry_interface">
+ <property
name="visible">True</property>
+ <property
name="can_focus">True</property>
+ <property name="tooltip"
translatable="yes">Enter the IP address of the interface to listen for incoming
bittorrent connections on. Leave this empty if you want to use the
default.</property>
+ <property
name="max_length">60</property>
+ <property
name="invisible_char">●</property>
+ <property
name="width_chars">30</property>
+ </widget>
+ <packing>
+ <property
name="expand">False</property>
+ <property
name="fill">False</property>
+ <property
name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="label110">
+ <property name="visible">True</property>
+ <property name="label"
translatable="yes"><b>Interface</b></property>
+ <property name="use_markup">True</property>
+ </widget>
+ <packing>
+ <property name="type">label_item</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ <child>
<widget class="GtkFrame" id="frame2">
<property name="visible">True</property>
<property name="label_xalign">0</property>
@@ -904,7 +957,7 @@
<packing>
<property name="expand">False</property>
<property name="padding">5</property>
- <property name="position">4</property>
+ <property name="position">5</property>
</packing>
</child>
<child>
@@ -1028,7 +1081,7 @@
<packing>
<property name="expand">False</property>
<property name="padding">5</property>
- <property name="position">5</property>
+ <property name="position">6</property>
</packing>
</child>
<child>
@@ -1187,15 +1240,9 @@
<property name="expand">False</property>
<property name="fill">False</property>
<property name="padding">5</property>
- <property name="position">6</property>
+ <property name="position">7</property>
</packing>
</child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
</widget>
</child>
</widget>
Modified: trunk/deluge/ui/gtkui/preferences.py
===================================================================
--- trunk/deluge/ui/gtkui/preferences.py 2009-06-11 01:06:08 UTC (rev
5384)
+++ trunk/deluge/ui/gtkui/preferences.py 2009-06-12 16:12:00 UTC (rev
5385)
@@ -227,6 +227,7 @@
"spin_outgoing_port_min": ("value",
self.core_config["outgoing_ports"][0]),
"spin_outgoing_port_max": ("value",
self.core_config["outgoing_ports"][1]),
"chk_random_outgoing_ports": ("active",
self.core_config["random_outgoing_ports"]),
+ "entry_interface": ("text",
self.core_config["listen_interface"]),
"entry_peer_tos": ("text", self.core_config["peer_tos"]),
"chk_dht": ("active", self.core_config["dht"]),
"chk_upnp": ("active", self.core_config["upnp"]),
@@ -369,6 +370,7 @@
"spin_outgoing_port_min",
"spin_outgoing_port_max",
"chk_random_outgoing_ports",
+ "entry_interface",
"entry_peer_tos",
"chk_dht",
"chk_upnp",
@@ -568,7 +570,7 @@
new_core_config["outgoing_ports"] = outgoing_ports
new_core_config["random_outgoing_ports"] = \
self.glade.get_widget("chk_random_outgoing_ports").get_active()
-
+ new_core_config["listen_interface"] =
self.glade.get_widget("entry_interface").get_text()
new_core_config["peer_tos"] =
self.glade.get_widget("entry_peer_tos").get_text()
new_core_config["dht"] = self.glade.get_widget("chk_dht").get_active()
new_core_config["upnp"] =
self.glade.get_widget("chk_upnp").get_active()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---