diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py
index e2f8d0400..9283da2ca 100644
--- a/deluge/ui/gtkui/addtorrentdialog.py
+++ b/deluge/ui/gtkui/addtorrentdialog.py
@@ -37,8 +37,6 @@
import pygtk
pygtk.require('2.0')
import gtk
-import gtk.glade
-import gettext
import gobject
import base64
import logging
@@ -62,15 +60,25 @@ log = logging.getLogger(__name__)
class AddTorrentDialog(component.Component):
def __init__(self):
component.Component.__init__(self, "AddTorrentDialog")
- self.glade = gtk.glade.XML(deluge.common.resource_filename(
- "deluge.ui.gtkui", os.path.join("glade", "add_torrent_dialog.glade"))
- )
+ self.builder = gtk.Builder()
+ # The base dialog
+ self.builder.add_from_file(deluge.common.resource_filename(
+ "deluge.ui.gtkui", os.path.join("glade", "add_torrent_dialog.ui")
+ ))
+ # The infohash dialog
+ self.builder.add_from_file(deluge.common.resource_filename(
+ "deluge.ui.gtkui", os.path.join("glade", "add_torrent_dialog.infohash.ui")
+ ))
+ # The url dialog
+ self.builder.add_from_file(deluge.common.resource_filename(
+ "deluge.ui.gtkui", os.path.join("glade", "add_torrent_dialog.url.ui")
+ ))
- self.dialog = self.glade.get_widget("dialog_add_torrent")
+ self.dialog = self.builder.get_object("dialog_add_torrent")
self.dialog.connect("delete-event", self._on_delete_event)
- self.glade.signal_autoconnect({
+ self.builder.connect_signals({
"on_button_file_clicked": self._on_button_file_clicked,
"on_button_url_clicked": self._on_button_url_clicked,
"on_button_hash_clicked": self._on_button_hash_clicked,
@@ -98,8 +106,8 @@ class AddTorrentDialog(component.Component):
self.previous_selected_torrent = None
- self.listview_torrents = self.glade.get_widget("listview_torrents")
- self.listview_files = self.glade.get_widget("listview_files")
+ self.listview_torrents = self.builder.get_object("listview_torrents")
+ self.listview_files = self.builder.get_object("listview_files")
render = gtk.CellRendererText()
column = gtk.TreeViewColumn(_("Torrent"), render, text=1)
@@ -149,7 +157,7 @@ class AddTorrentDialog(component.Component):
]
self.core_config = {}
- self.glade.get_widget("notebook1").connect("switch-page", self._on_switch_page)
+ self.builder.get_object("notebook1").connect("switch-page", self._on_switch_page)
def start(self):
self.update_core_config()
@@ -159,11 +167,11 @@ class AddTorrentDialog(component.Component):
def _show(self, focus=False):
if client.is_localhost():
- self.glade.get_widget("button_location").show()
- self.glade.get_widget("entry_download_path").hide()
+ self.builder.get_object("button_location").show()
+ self.builder.get_object("entry_download_path").hide()
else:
- self.glade.get_widget("button_location").hide()
- self.glade.get_widget("entry_download_path").show()
+ self.builder.get_object("button_location").hide()
+ self.builder.get_object("entry_download_path").show()
self.dialog.set_transient_for(component.get("MainWindow").window)
self.dialog.present()
@@ -366,29 +374,29 @@ class AddTorrentDialog(component.Component):
options = self.options[torrent_id]
if client.is_localhost():
- self.glade.get_widget("button_location").set_current_folder(
+ self.builder.get_object("button_location").set_current_folder(
options["download_location"])
else:
- self.glade.get_widget("entry_download_path").set_text(
+ self.builder.get_object("entry_download_path").set_text(
options["download_location"])
- self.glade.get_widget("radio_full").set_active(
+ self.builder.get_object("radio_full").set_active(
not options["compact_allocation"])
- self.glade.get_widget("radio_compact").set_active(
+ self.builder.get_object("radio_compact").set_active(
options["compact_allocation"])
- self.glade.get_widget("spin_maxdown").set_value(
+ self.builder.get_object("spin_maxdown").set_value(
options["max_download_speed"])
- self.glade.get_widget("spin_maxup").set_value(
+ self.builder.get_object("spin_maxup").set_value(
options["max_upload_speed"])
- self.glade.get_widget("spin_maxconnections").set_value(
+ self.builder.get_object("spin_maxconnections").set_value(
options["max_connections"])
- self.glade.get_widget("spin_maxupslots").set_value(
+ self.builder.get_object("spin_maxupslots").set_value(
options["max_upload_slots"])
- self.glade.get_widget("chk_paused").set_active(
+ self.builder.get_object("chk_paused").set_active(
options["add_paused"])
- self.glade.get_widget("chk_prioritize").set_active(
+ self.builder.get_object("chk_prioritize").set_active(
options["prioritize_first_last_pieces"])
- self.glade.get_widget("chk_sequential_download").set_active(
+ self.builder.get_object("chk_sequential_download").set_active(
options["sequential_download"])
def save_torrent_options(self, row=None):
@@ -410,12 +418,12 @@ class AddTorrentDialog(component.Component):
if client.is_localhost():
options["download_location"] = \
- self.glade.get_widget("button_location").get_current_folder()
+ self.builder.get_object("button_location").get_current_folder()
else:
options["download_location"] = \
- self.glade.get_widget("entry_download_path").get_text()
+ self.builder.get_object("entry_download_path").get_text()
options["compact_allocation"] = \
- self.glade.get_widget("radio_compact").get_active()
+ self.builder.get_object("radio_compact").get_active()
if options["compact_allocation"]:
# We need to make sure all the files are set to download
@@ -425,20 +433,20 @@ class AddTorrentDialog(component.Component):
self.update_treeview_toggles(self.files_treestore.get_iter_first())
options["max_download_speed"] = \
- self.glade.get_widget("spin_maxdown").get_value()
+ self.builder.get_object("spin_maxdown").get_value()
options["max_upload_speed"] = \
- self.glade.get_widget("spin_maxup").get_value()
+ self.builder.get_object("spin_maxup").get_value()
options["max_connections"] = \
- self.glade.get_widget("spin_maxconnections").get_value_as_int()
+ self.builder.get_object("spin_maxconnections").get_value_as_int()
options["max_upload_slots"] = \
- self.glade.get_widget("spin_maxupslots").get_value_as_int()
+ self.builder.get_object("spin_maxupslots").get_value_as_int()
options["add_paused"] = \
- self.glade.get_widget("chk_paused").get_active()
+ self.builder.get_object("chk_paused").get_active()
options["prioritize_first_last_pieces"] = \
- self.glade.get_widget("chk_prioritize").get_active()
+ self.builder.get_object("chk_prioritize").get_active()
options["sequential_download"] = \
- self.glade.get_widget("radio_full").get_active() and \
- self.glade.get_widget("chk_sequential_download").get_active() or False
+ self.builder.get_object("radio_full").get_active() and \
+ self.builder.get_object("chk_sequential_download").get_active() or False
self.options[torrent_id] = options
@@ -464,29 +472,29 @@ class AddTorrentDialog(component.Component):
def set_default_options(self):
if client.is_localhost():
- self.glade.get_widget("button_location").set_current_folder(
+ self.builder.get_object("button_location").set_current_folder(
self.core_config["download_location"])
else:
- self.glade.get_widget("entry_download_path").set_text(
+ self.builder.get_object("entry_download_path").set_text(
self.core_config["download_location"])
- self.glade.get_widget("radio_compact").set_active(
+ self.builder.get_object("radio_compact").set_active(
self.core_config["compact_allocation"])
- self.glade.get_widget("radio_full").set_active(
+ self.builder.get_object("radio_full").set_active(
not self.core_config["compact_allocation"])
- self.glade.get_widget("spin_maxdown").set_value(
+ self.builder.get_object("spin_maxdown").set_value(
self.core_config["max_download_speed_per_torrent"])
- self.glade.get_widget("spin_maxup").set_value(
+ self.builder.get_object("spin_maxup").set_value(
self.core_config["max_upload_speed_per_torrent"])
- self.glade.get_widget("spin_maxconnections").set_value(
+ self.builder.get_object("spin_maxconnections").set_value(
self.core_config["max_connections_per_torrent"])
- self.glade.get_widget("spin_maxupslots").set_value(
+ self.builder.get_object("spin_maxupslots").set_value(
self.core_config["max_upload_slots_per_torrent"])
- self.glade.get_widget("chk_paused").set_active(
+ self.builder.get_object("chk_paused").set_active(
self.core_config["add_paused"])
- self.glade.get_widget("chk_prioritize").set_active(
+ self.builder.get_object("chk_prioritize").set_active(
self.core_config["prioritize_first_last_pieces"])
- self.glade.get_widget("chk_sequential_download").set_active(
+ self.builder.get_object("chk_sequential_download").set_active(
self.core_config["sequential_download"])
def get_file_priorities(self, torrent_id):
@@ -606,8 +614,8 @@ class AddTorrentDialog(component.Component):
def _on_button_url_clicked(self, widget):
log.debug("_on_button_url_clicked")
- dialog = self.glade.get_widget("url_dialog")
- entry = self.glade.get_widget("entry_url")
+ dialog = self.builder.get_object("url_dialog")
+ entry = self.builder.get_object("entry_url")
dialog.set_default_response(gtk.RESPONSE_OK)
dialog.set_transient_for(self.dialog)
@@ -708,9 +716,9 @@ class AddTorrentDialog(component.Component):
def _on_button_hash_clicked(self, widget):
log.debug("_on_button_hash_clicked")
- dialog = self.glade.get_widget("dialog_infohash")
- entry = self.glade.get_widget("entry_hash")
- textview = self.glade.get_widget("text_trackers")
+ dialog = self.builder.get_object("dialog_infohash")
+ entry = self.builder.get_object("entry_hash")
+ textview = self.builder.get_object("text_trackers")
dialog.set_default_response(gtk.RESPONSE_OK)
dialog.set_transient_for(self.dialog)
@@ -770,7 +778,7 @@ class AddTorrentDialog(component.Component):
filename = self.torrent_liststore.get_value(row, 2)
try:
options = self.options[torrent_id]
- except:
+ except KeyError:
options = None
file_priorities = self.get_file_priorities(torrent_id)
@@ -908,7 +916,7 @@ class AddTorrentDialog(component.Component):
# We need to check if this folder has been split
if os.path.sep in new_text:
- # It's been split, so we need to add new folders and then reparent
+ # It's been split, so we need to add new folders and then re-parent
# itr.
parent = self.files_treestore.iter_parent(itr)
split_text = new_text.split(os.path.sep)
@@ -921,7 +929,7 @@ class AddTorrentDialog(component.Component):
self.files_treestore[itr][1] = split_text[-1] + os.path.sep
- # Now reparent itr to parent
+ # Now re-parent itr to parent
common.reparent_iter(self.files_treestore, itr, parent)
itr = parent
@@ -938,6 +946,6 @@ class AddTorrentDialog(component.Component):
walk_tree(itr)
def _on_alocation_toggled(self, widget):
- full_allocation_active = self.glade.get_widget("radio_full").get_active()
- self.glade.get_widget("chk_prioritize").set_sensitive(full_allocation_active)
- self.glade.get_widget("chk_sequential_download").set_sensitive(full_allocation_active)
+ full_allocation_active = self.builder.get_object("radio_full").get_active()
+ self.builder.get_object("chk_prioritize").set_sensitive(full_allocation_active)
+ self.builder.get_object("chk_sequential_download").set_sensitive(full_allocation_active)
diff --git a/deluge/ui/gtkui/glade/add_torrent_dialog.infohash.ui b/deluge/ui/gtkui/glade/add_torrent_dialog.infohash.ui
new file mode 100644
index 000000000..59d554cca
--- /dev/null
+++ b/deluge/ui/gtkui/glade/add_torrent_dialog.infohash.ui
@@ -0,0 +1,231 @@
+
+
+
+
+
+
diff --git a/deluge/ui/gtkui/glade/add_torrent_dialog.glade b/deluge/ui/gtkui/glade/add_torrent_dialog.ui
similarity index 67%
rename from deluge/ui/gtkui/glade/add_torrent_dialog.glade
rename to deluge/ui/gtkui/glade/add_torrent_dialog.ui
index 98d7aafc6..f6d1c7c48 100644
--- a/deluge/ui/gtkui/glade/add_torrent_dialog.glade
+++ b/deluge/ui/gtkui/glade/add_torrent_dialog.ui
@@ -1,8 +1,32 @@
-
-
+
+
-
+
+ -1
+ 9999
+ 1
+ 10
+
+
+ -1
+ 9999
+ 1
+ 10
+
+
+ -1
+ 9999
+ 1
+ 10
+
+
+ -1
+ 9999
+ 1
+ 10
+
+
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
5
@@ -11,25 +35,25 @@
True
dialog
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
2
-
+
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
0
none
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
@@ -37,12 +61,12 @@
12
12
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
@@ -50,15 +74,15 @@
automatic
in
-
+
100
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
-
+
-
+
True
True
@@ -66,34 +90,34 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
center
-
+
True
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
-
+
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
2
4
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
gtk-open
1
-
+
False
False
@@ -101,22 +125,22 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
_File
True
-
+
False
False
1
-
+
-
+
False
False
@@ -124,28 +148,28 @@
-
+
True
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
-
+
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
2
4
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
gtk-network
1
-
+
False
False
@@ -153,22 +177,22 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
_URL
True
-
+
False
False
1
-
+
-
+
False
False
@@ -176,28 +200,28 @@
-
+
True
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
-
+
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
2
4
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
gtk-revert-to-saved
1
-
+
False
False
@@ -205,22 +229,22 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
Info_hash
True
-
+
False
False
1
-
+
-
+
False
False
@@ -228,26 +252,26 @@
-
+
True
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
-
+
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
4
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
gtk-remove
-
+
False
False
@@ -255,65 +279,62 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
_Remove
True
-
+
False
False
1
-
+
-
+
False
False
3
-
+
False
False
1
-
+
-
+
-
-
+
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
<b>Torrents</b>
True
-
-
- label_item
-
+
-
+
True
False
-
+
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
-
+
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
@@ -322,28 +343,28 @@
automatic
out
-
+
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
True
-
+
-
+
-
-
+
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
gtk-open
-
+
True
True
@@ -351,13 +372,13 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
Fi_les
True
-
+
True
True
@@ -365,28 +386,27 @@
1
-
+
False
- tab
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
5
5
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
0
none
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
@@ -394,17 +414,17 @@
5
5
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
select-folder
Select A Folder
-
+
True
True
@@ -412,37 +432,34 @@
-
+
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
False
True
True
-
+
True
True
1
-
+
-
+
-
-
+
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
<b>Download Location</b>
True
-
-
- label_item
-
+
-
+
False
False
@@ -450,32 +467,32 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
10
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
0
none
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
5
12
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
Full
True
True
@@ -484,8 +501,8 @@
False
True
True
-
-
+
+
False
False
@@ -493,7 +510,7 @@
-
+
Compact
True
True
@@ -502,31 +519,28 @@
False
True
radio_full
-
-
+
+
False
False
1
-
+
-
+
-
-
+
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
<b>Allocation</b>
True
-
-
- label_item
-
+
-
+
False
False
@@ -534,21 +548,21 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
0
none
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
5
12
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
@@ -556,7 +570,7 @@
2
10
-
+
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
@@ -565,8 +579,8 @@
False
True
True
- 0 -1 9999 1 10 0
-
+ adjustment1
+
1
2
@@ -575,26 +589,26 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
0
Max Down Speed:
-
+
GTK_FILL
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
0
Max Up Speed:
-
+
1
2
@@ -603,13 +617,13 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
0
Max Connections:
-
+
2
3
@@ -618,13 +632,13 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
0
Max Upload Slots:
-
+
3
4
@@ -633,7 +647,7 @@
-
+
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
@@ -642,9 +656,9 @@
False
True
True
- 0 -1 9999 1 10 0
+ adjustment2
if-valid
-
+
1
2
@@ -655,7 +669,7 @@
-
+
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
@@ -664,8 +678,8 @@
False
True
True
- 0 -1 9999 1 10 0
-
+ adjustment3
+
1
2
@@ -676,7 +690,7 @@
-
+
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
@@ -685,8 +699,8 @@
False
True
True
- 0 -1 9999 1 10 0
-
+ adjustment4
+
1
2
@@ -696,23 +710,20 @@
-
+
-
+
-
-
+
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
<b>Bandwidth</b>
True
-
-
- label_item
-
+
-
+
False
False
@@ -720,26 +731,26 @@
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
0
none
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
5
12
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
Prioritize First/Last Pieces
True
True
@@ -747,7 +758,7 @@
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
True
-
+
False
False
@@ -755,13 +766,13 @@
-
+
Sequential Download
True
True
False
True
- When enabled, the piece picker will pick pieces in
+ When enabled, the piece picker will pick pieces in
sequence instead of rarest first.
Enabling sequential download will affect the piece
@@ -769,7 +780,7 @@ distribution negatively in the swarm. It should be
used sparingly.
False
True
-
+
False
False
@@ -777,7 +788,7 @@ used sparingly.
-
+
Add In _Paused State
True
True
@@ -786,37 +797,34 @@ used sparingly.
False
True
True
-
+
False
False
2
-
+
-
+
-
-
+
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
<b>General</b>
True
-
-
- label_item
-
+
-
+
False
False
2
-
+
False
False
@@ -824,37 +832,37 @@ used sparingly.
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
5
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
True
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
-
+
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
1
gtk-apply
-
+
False
False
@@ -862,13 +870,13 @@ used sparingly.
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
0
Apply To All
-
+
False
False
@@ -876,11 +884,11 @@ used sparingly.
1
-
+
-
+
-
+
False
False
@@ -889,30 +897,30 @@ used sparingly.
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
True
True
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
-
+
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
gtk-revert-to-saved
-
+
False
False
@@ -920,12 +928,12 @@ used sparingly.
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
Revert To Defaults
-
+
False
False
@@ -933,11 +941,11 @@ used sparingly.
1
-
+
-
+
-
+
False
False
@@ -945,30 +953,30 @@ used sparingly.
1
-
+
False
False
2
-
+
1
-
-
+
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
gtk-properties
-
+
True
True
@@ -976,13 +984,13 @@ used sparingly.
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
_Options
True
-
+
True
True
@@ -990,20 +998,19 @@ used sparingly.
1
-
+
1
False
- tab
-
+
False
False
-
+
True
True
@@ -1011,13 +1018,13 @@ used sparingly.
-
+
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
end
-
+
gtk-cancel
True
True
@@ -1025,8 +1032,8 @@ used sparingly.
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
True
-
-
+
+
False
False
@@ -1034,7 +1041,7 @@ used sparingly.
-
+
gtk-add
True
True
@@ -1042,15 +1049,15 @@ used sparingly.
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
False
True
-
-
+
+
False
False
1
-
+
False
True
@@ -1058,410 +1065,11 @@ used sparingly.
1
-
+
-
-
- 462
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 5
- Add Infohash
- center-on-parent
- True
- dialog
- False
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 2
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- end
-
-
- gtk-cancel
- -6
- True
- True
- True
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- False
- True
-
-
- False
- False
- 0
-
-
-
-
- gtk-ok
- -5
- True
- True
- True
- True
- True
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- False
- True
-
-
- False
- False
- 1
-
-
-
-
- False
- True
- end
- 0
-
-
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 5
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 5
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- gtk-revert-to-saved
-
-
- False
- False
- 0
-
-
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- <b>From Infohash</b>
- True
-
-
- False
- False
- 1
-
-
-
-
- False
- False
- 0
-
-
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
-
- False
- True
- 1
-
-
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 5
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- Infohash:
-
-
- False
- False
- 0
-
-
-
-
- True
- True
- True
- True
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- True
- False
- False
- True
- True
-
-
- True
- True
- 1
-
-
-
-
- False
- False
- 2
-
-
-
-
- True
- False
- 5
-
-
- True
- False
- 0
- Trackers:
-
-
- False
- False
- 0
-
-
-
-
- True
- True
- automatic
- automatic
- in
-
-
- True
- True
-
-
-
-
- True
- True
- 1
-
-
-
-
- True
- True
- 3
-
-
-
-
- True
- True
- 1
-
-
-
-
-
-
- 462
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 5
- Add URL
- center-on-parent
- True
- dialog
- False
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 2
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- end
-
-
- gtk-cancel
- -6
- True
- True
- True
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- False
- True
-
-
- False
- False
- 0
-
-
-
-
- gtk-ok
- -5
- True
- True
- True
- True
- True
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- False
- True
-
-
- False
- False
- 1
-
-
-
-
- False
- True
- end
- 0
-
-
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 5
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 5
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- gtk-add
-
-
- False
- False
- 0
-
-
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- <b>From URL</b>
- True
-
-
- False
- False
- 1
-
-
-
-
- False
- False
- 0
-
-
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
-
- False
- True
- 1
-
-
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 5
-
-
- True
- False
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- URL:
-
-
- False
- False
- 0
-
-
-
-
- True
- True
- True
- True
- GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- True
- False
- False
- True
- True
-
-
- True
- True
- 1
-
-
-
-
- False
- False
- 2
-
-
-
-
- True
- True
- 1
-
-
-
-
-
-
+
+ button_cancel
+ button_add
+
+
+
diff --git a/deluge/ui/gtkui/glade/add_torrent_dialog.url.ui b/deluge/ui/gtkui/glade/add_torrent_dialog.url.ui
new file mode 100644
index 000000000..b438a81ca
--- /dev/null
+++ b/deluge/ui/gtkui/glade/add_torrent_dialog.url.ui
@@ -0,0 +1,186 @@
+
+
+
+
+
+ 462
+ False
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ 5
+ Add URL
+ center-on-parent
+ True
+ dialog
+ False
+
+
+ True
+ False
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ 2
+
+
+ True
+ False
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ end
+
+
+ gtk-cancel
+ True
+ True
+ True
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ False
+ True
+
+
+ False
+ False
+ 0
+
+
+
+
+ gtk-ok
+ True
+ True
+ True
+ True
+ True
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ False
+ True
+
+
+ False
+ False
+ 1
+
+
+
+
+ False
+ True
+ end
+ 0
+
+
+
+
+ True
+ False
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ 5
+
+
+ True
+ False
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ 5
+
+
+ True
+ False
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ gtk-add
+
+
+ False
+ False
+ 0
+
+
+
+
+ True
+ False
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ <b>From URL</b>
+ True
+
+
+ False
+ False
+ 1
+
+
+
+
+ False
+ False
+ 0
+
+
+
+
+ True
+ False
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+
+
+ False
+ True
+ 1
+
+
+
+
+ True
+ False
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ 5
+
+
+ True
+ False
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ URL:
+
+
+ False
+ False
+ 0
+
+
+
+
+ True
+ True
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ •
+ True
+ True
+ False
+ False
+ True
+ True
+
+
+ True
+ True
+ 1
+
+
+
+
+ False
+ False
+ 2
+
+
+
+
+ True
+ True
+ 1
+
+
+
+
+
+ button_add_cancel
+ button_add_ok
+
+
+