From e8d5e0f0b5a844601539148078af5e2c2d88d492 Mon Sep 17 00:00:00 2001 From: Zach Tibbitts Date: Mon, 12 Feb 2007 20:53:33 +0000 Subject: [PATCH] nicer pref dialog --- glade/dgtkpref.glade | 353 ++++++++++++++++++++++++++----------------- src/delugegtk.py | 2 +- 2 files changed, 219 insertions(+), 136 deletions(-) diff --git a/glade/dgtkpref.glade b/glade/dgtkpref.glade index 19b69c24d..f5d298428 100644 --- a/glade/dgtkpref.glade +++ b/glade/dgtkpref.glade @@ -44,6 +44,18 @@ + + + True + Enable system tray icon + True + True + + + + 2 + + True @@ -57,18 +69,6 @@ 12 - - - True - Enable system tray icon - True - True - - - - 2 - - @@ -95,13 +95,15 @@ 2 2 - + True - Ask me where to save each download - True + GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER + 1 2 + 1 + 2 @@ -117,15 +119,13 @@ - + True - GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER + Ask me where to save each download + True - 1 2 - 1 - 2 @@ -154,18 +154,12 @@ True 1 2 - - - True - Stop seeding torrents when -their share ratio reaches: - True - - True True + 5 + 0.5 1 0 10 0.10000000000000001 10 10 0.05000000074505806 2 @@ -174,8 +168,17 @@ their share ratio reaches: 1 2 + + + + True + Stop seeding torrents when +their share ratio reaches: + True + + @@ -269,13 +272,53 @@ their share ratio reaches: - + True - Test Port + Try from: + + + + + True + to: + + + 2 + 3 + + + + + True + True + 0.5 + 0 0 65535 1 10 10 + + + 1 + 2 + + + + + True + True + 0.5 + 0 0 65535 1 10 10 3 4 + + + + + True + Active port: + + + 1 + 2 1 2 @@ -293,55 +336,17 @@ their share ratio reaches: - + True - Active port: - - - 1 - 2 - 1 - 2 - - - - - True - True - 0 0 100 1 10 10 + Test Port 3 4 + 1 + 2 - - - True - True - 0 0 100 1 10 10 - - - 1 - 2 - - - - - True - to: - - - 2 - 3 - - - - - True - Try from: - - @@ -365,35 +370,130 @@ their share ratio reaches: True - 4 - 2 + 5 + 3 - + True - 0 - Maximum Upload Rate: - - - - - True - 0 - Maximum number of Uploads: + <i>(0 is unlimited)</i> + True - 1 - 2 + 3 - + True - 0 - Maximum Download Rate: + KB/s + 2 + 3 + 3 + 4 + + + + + + True + + + 2 + 3 2 3 + + + + + + True + KB/s + + + 2 + 3 + 1 + 2 + + + + + + True + + + 2 + 3 + 4 + 5 + + + + + + True + True + 10 + 1 + 0 0 100 1 10 10 + + + 1 + 2 + 4 + 5 + + + + + + True + True + 10 + 1 + 0 0 100 1 10 10 + + + 1 + 2 + 3 + 4 + + + + + + True + True + 10 + 1 + 0 0 100 1 10 10 + + + 1 + 2 + 2 + 3 + + + + + + True + True + 10 + 1 + 0 0 100 1 10 10 + + + 1 + 2 + 1 + 2 + @@ -402,59 +502,42 @@ their share ratio reaches: 0 Maximum number of Downloads: + + 4 + 5 + + + + + True + 0 + Maximum Download Rate: + 3 4 - + True - True - 0 0 100 1 10 10 + 0 + Maximum number of Uploads: - 1 - 2 - - - - - True - True - 0 0 100 1 10 10 - - - 1 - 2 - 1 - 2 - - - - - True - True - 0 0 100 1 10 10 - - - 1 - 2 2 3 - + True - True - 0 0 100 1 10 10 + 0 + Maximum Upload Rate: - 1 - 2 - 3 - 4 + 1 + 2 @@ -462,7 +545,7 @@ their share ratio reaches: True - Bandwidth + Bandwidth label_item @@ -557,11 +640,16 @@ their share ratio reaches: 2 2 - + True + False + GTK_WRAP_WORD - 2 + 1 + 2 + 10 + 10 @@ -596,16 +684,11 @@ their share ratio reaches: - + True - False - GTK_WRAP_WORD - 1 - 2 - 10 - 10 + 2 diff --git a/src/delugegtk.py b/src/delugegtk.py index 9b633955f..a85f4ae37 100755 --- a/src/delugegtk.py +++ b/src/delugegtk.py @@ -212,7 +212,7 @@ class DelugeGTK(dbus.service.Object): self.pref.set("end_seed_ratio", 1.0) self.pref.set("use_compact_storage", False) - self.pref.set("tcp_port_range_lower", 6880) + self.pref.set("tcp_port_range_lower", 6881) self.pref.set("tcp_port_range_upper", 6889) self.pref.set("max_upload_rate", 0) self.pref.set("max_number_uploads", 0)