From 2024c0cfb062b9224b3705ee24edb4e53961b9a5 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 27 Nov 2008 07:09:14 +0000 Subject: [PATCH] Decorate dialogs --- .../label/label/data/label_options.glade | 307 +++++++++--------- .../plugins/label/label/gtkui/label_config.py | 3 +- 2 files changed, 155 insertions(+), 155 deletions(-) diff --git a/deluge/plugins/label/label/data/label_options.glade b/deluge/plugins/label/label/data/label_options.glade index f78c809b2..f399fa289 100644 --- a/deluge/plugins/label/label/data/label_options.glade +++ b/deluge/plugins/label/label/data/label_options.glade @@ -1,15 +1,15 @@ - + 5 Label Options True GTK_WIN_POS_MOUSE + True GDK_WINDOW_TYPE_HINT_DIALOG True - False False @@ -99,103 +99,41 @@ - + True - 3 - 4 - GTK_FILL + 2 + 4 + 5 + GTK_FILL - + True True -1 -1 9999 1 10 10 + True 1 2 - 1 - 2 + 3 + 4 - - True - KiB/s - - - 2 - 3 - GTK_FILL - GTK_FILL - - - - - True - True - -1 -1 9999 1 10 10 - - - 1 - 2 - - - - - - + True 0 - Upload Slots: + Connections: - 2 - 3 - GTK_FILL - GTK_FILL - - - - - True - 0 - Upload Speed: - - - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - 0 - Download Speed: - True - - - GTK_FILL - GTK_FILL - - - - - True - KiB/s - - - 2 - 3 - 1 - 2 + 3 + 4 GTK_FILL GTK_FILL @@ -217,43 +155,105 @@ - + True - 0 - Connections: + KiB/s - 3 - 4 + 2 + 3 + 1 + 2 GTK_FILL GTK_FILL - + + True + 0 + Download Speed: + True + + + GTK_FILL + GTK_FILL + + + + + True + 0 + Upload Speed: + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + 0 + Upload Slots: + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + True True -1 -1 9999 1 10 10 - True 1 2 - 3 - 4 - + + True + KiB/s + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + -1 -1 9999 1 10 10 + + + 1 + 2 + 1 + 2 + + + + + + True - 2 - 4 - 5 - GTK_FILL + 3 + 4 + GTK_FILL @@ -315,58 +315,14 @@ - + True - 2 - 3 - 1 - 2 - GTK_FILL - - - - - True - True - Auto Managed - 0 - True - - + 2 + 3 + 4 GTK_FILL - - - - - - True - True - Stop seed at ratio: - 0 - True - - - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - True - Remove at ratio - 0 - True - - - 2 - 3 - GTK_FILL - GTK_FILL @@ -386,14 +342,58 @@ - + + True + True + Remove at ratio + 0 + True + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + Stop seed at ratio: + 0 + True + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + Auto Managed + 0 + True + + + GTK_FILL + + + + + True - 2 - 3 - 4 - GTK_FILL + 2 + 3 + 1 + 2 + GTK_FILL @@ -444,15 +444,13 @@ 3 2 - + True - GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER 2 - 1 - 2 - GTK_FILL + 2 + 3 @@ -470,13 +468,15 @@ - + True + GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER 2 - 2 - 3 + 1 + 2 + GTK_FILL @@ -633,11 +633,12 @@ this doesn't do anything yet.. 5 Add Label + False True GTK_WIN_POS_MOUSE + True GDK_WINDOW_TYPE_HINT_DIALOG True - False False diff --git a/deluge/plugins/label/label/gtkui/label_config.py b/deluge/plugins/label/label/gtkui/label_config.py index b242c1f02..6811902e4 100644 --- a/deluge/plugins/label/label/gtkui/label_config.py +++ b/deluge/plugins/label/label/gtkui/label_config.py @@ -59,7 +59,7 @@ class LabelConfig(object): def get_resource(self, filename): return pkg_resources.resource_filename("label", os.path.join("data", filename)) - def load_settings(self ,widget = None , data = None): + def load_settings(self, widget=None, data=None): aclient.label_get_config(self.cb_global_options) def cb_global_options(self, options): @@ -73,4 +73,3 @@ class LabelConfig(object): options = {} #update options dict here. aclient.label_set_config(None, options) -