diff --git a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/autoadd_options.ui b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/autoadd_options.ui index 73b38316e..a4cd364e9 100644 --- a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/autoadd_options.ui +++ b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/autoadd_options.ui @@ -46,6 +46,7 @@ True False + vertical True @@ -108,18 +109,20 @@ - + True False + vertical True True - + True False 6 + vertical True @@ -132,11 +135,12 @@ False 12 - + True False + vertical - + True False @@ -230,9 +234,10 @@ it will be added to the session. True False - + True False + vertical Delete .torrent after adding @@ -251,7 +256,7 @@ the .torrent will be deleted. - + True False @@ -316,7 +321,7 @@ and deleted from the watch folder. - + True False @@ -410,9 +415,10 @@ also delete the .torrent file used to add it. False 12 - + True False + vertical Set download folder @@ -431,7 +437,7 @@ also delete the .torrent file used to add it. - + True False @@ -499,9 +505,10 @@ also delete the .torrent file used to add it. False 12 - + True False + vertical Set move completed folder @@ -519,7 +526,7 @@ also delete the .torrent file used to add it. - + True False @@ -601,7 +608,7 @@ also delete the .torrent file used to add it. False 12 - + True False @@ -626,7 +633,7 @@ also delete the .torrent file used to add it. False True - + False @@ -669,11 +676,12 @@ also delete the .torrent file used to add it. - + True False 6 5 + vertical True @@ -1070,7 +1078,7 @@ also delete the .torrent file used to add it. - + True False True @@ -1148,7 +1156,7 @@ also delete the .torrent file used to add it. - + True False True @@ -1205,7 +1213,7 @@ also delete the .torrent file used to add it. - + True False True diff --git a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/config.ui b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/config.ui index 52aa4709e..0e645d374 100644 --- a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/config.ui +++ b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/config.ui @@ -8,7 +8,7 @@ - + True False @@ -19,12 +19,13 @@ True False - + 340 390 True False 3 + vertical True @@ -32,10 +33,11 @@ 0 none - + True False True + vertical diff --git a/deluge/plugins/Blocklist/deluge/plugins/blocklist/data/blocklist_pref.ui b/deluge/plugins/Blocklist/deluge/plugins/blocklist/data/blocklist_pref.ui index 582ed3431..013d8e70e 100644 --- a/deluge/plugins/Blocklist/deluge/plugins/blocklist/data/blocklist_pref.ui +++ b/deluge/plugins/Blocklist/deluge/plugins/blocklist/data/blocklist_pref.ui @@ -15,10 +15,11 @@ - + True False 5 + vertical True @@ -31,7 +32,7 @@ False 12 - + True False 5 @@ -93,10 +94,11 @@ False 12 - + True False 5 + vertical True @@ -200,13 +202,14 @@ 0 12 - + True False - + True False + vertical True @@ -215,7 +218,7 @@ Download the blocklist file if necessary and import the file. - + True False 5 @@ -260,7 +263,7 @@ Download a new blocklist file and import it. - + True False 5 @@ -351,9 +354,10 @@ 5 12 - + True False + vertical True @@ -510,7 +514,7 @@ False 12 - + True False diff --git a/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui b/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui index ed1347aa6..fc02a54a8 100644 --- a/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui +++ b/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui @@ -14,9 +14,10 @@ - + True False + vertical True @@ -159,10 +160,11 @@ 5 12 - + True False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + vertical diff --git a/deluge/plugins/Execute/deluge/plugins/execute/gtkui.py b/deluge/plugins/Execute/deluge/plugins/execute/gtkui.py index 772c1e13a..c0c720089 100644 --- a/deluge/plugins/Execute/deluge/plugins/execute/gtkui.py +++ b/deluge/plugins/Execute/deluge/plugins/execute/gtkui.py @@ -83,7 +83,7 @@ class ExecutePreferences(object): def add_command(self, command_id, event, command): log.debug('Adding command `%s`', command_id) vbox = self.builder.get_object('commands_vbox') - hbox = Gtk.HBox(False, 5) + hbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, spacing=5) hbox.set_name(command_id + '_' + event) label = Gtk.Label(EVENT_MAP[event]) entry = Gtk.Entry() diff --git a/deluge/plugins/Extractor/deluge/plugins/extractor/data/extractor_prefs.ui b/deluge/plugins/Extractor/deluge/plugins/extractor/data/extractor_prefs.ui index 4509bd254..6f34b4411 100644 --- a/deluge/plugins/Extractor/deluge/plugins/extractor/data/extractor_prefs.ui +++ b/deluge/plugins/Extractor/deluge/plugins/extractor/data/extractor_prefs.ui @@ -8,10 +8,11 @@ - + True False 5 + vertical True @@ -19,13 +20,14 @@ 0 none - + True False 5 5 + vertical - + True False 5 @@ -42,7 +44,7 @@ - + True False diff --git a/deluge/plugins/Label/deluge/plugins/label/data/label_add.ui b/deluge/plugins/Label/deluge/plugins/label/data/label_add.ui index df564c373..68f8a72b2 100644 --- a/deluge/plugins/Label/deluge/plugins/label/data/label_add.ui +++ b/deluge/plugins/Label/deluge/plugins/label/data/label_add.ui @@ -66,12 +66,13 @@ - + True False 5 + vertical - + True False 5 @@ -119,7 +120,7 @@ - + True False 5 diff --git a/deluge/plugins/Label/deluge/plugins/label/data/label_options.ui b/deluge/plugins/Label/deluge/plugins/label/data/label_options.ui index dd33c19c3..c0fca4ff5 100644 --- a/deluge/plugins/Label/deluge/plugins/label/data/label_options.ui +++ b/deluge/plugins/Label/deluge/plugins/label/data/label_options.ui @@ -101,7 +101,7 @@ - + True False 5 @@ -652,9 +652,10 @@ False 12 - + True False + vertical True diff --git a/deluge/plugins/Label/deluge/plugins/label/data/label_pref.ui b/deluge/plugins/Label/deluge/plugins/label/data/label_pref.ui index 26d9c4d67..81edc378a 100644 --- a/deluge/plugins/Label/deluge/plugins/label/data/label_pref.ui +++ b/deluge/plugins/Label/deluge/plugins/label/data/label_pref.ui @@ -8,10 +8,11 @@ - + True False 5 + vertical True diff --git a/deluge/plugins/Notifications/deluge/plugins/notifications/data/config.ui b/deluge/plugins/Notifications/deluge/plugins/notifications/data/config.ui index d75b4bbb6..c16b37acd 100644 --- a/deluge/plugins/Notifications/deluge/plugins/notifications/data/config.ui +++ b/deluge/plugins/Notifications/deluge/plugins/notifications/data/config.ui @@ -15,9 +15,10 @@ - + True False + vertical True @@ -29,10 +30,11 @@ True False - + True False start + vertical True @@ -48,9 +50,10 @@ 12 10 - + True False + vertical Tray icon blinks enabled @@ -80,7 +83,7 @@ - + True False @@ -293,7 +296,7 @@ False 10 - + True False 2 @@ -481,12 +484,13 @@ - + True False 15 10 10 + vertical @@ -543,12 +547,13 @@ - + True False 15 10 10 + vertical True diff --git a/deluge/plugins/Scheduler/deluge/plugins/scheduler/gtkui.py b/deluge/plugins/Scheduler/deluge/plugins/scheduler/gtkui.py index b802aa666..12f5fb63c 100644 --- a/deluge/plugins/Scheduler/deluge/plugins/scheduler/gtkui.py +++ b/deluge/plugins/Scheduler/deluge/plugins/scheduler/gtkui.py @@ -277,9 +277,9 @@ class GtkUI(Gtk3PluginBase): hover = Gtk.Label() self.scheduler_select = SchedulerSelectWidget(hover) - vbox = Gtk.VBox(False, 5) - hbox = Gtk.HBox(False, 5) - vbox_days = Gtk.VBox() + vbox = Gtk.Box.new(Gtk.Orientation.VERTICAL, spacing=5) + hbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, spacing=5) + vbox_days = Gtk.Box.new(Gtk.Orientation.VERTICAL, spacing=0) for day in DAYS: vbox_days.pack_start(Gtk.Label(day, xalign=0), True, False, 0) hbox.pack_start(vbox_days, False, False, 15) diff --git a/deluge/plugins/Stats/deluge/plugins/stats/data/config.ui b/deluge/plugins/Stats/deluge/plugins/stats/data/config.ui index 1ded24d86..326598b5b 100644 --- a/deluge/plugins/Stats/deluge/plugins/stats/data/config.ui +++ b/deluge/plugins/Stats/deluge/plugins/stats/data/config.ui @@ -8,9 +8,10 @@ - + True False + vertical True diff --git a/deluge/plugins/Stats/deluge/plugins/stats/data/tabs.ui b/deluge/plugins/Stats/deluge/plugins/stats/data/tabs.ui index 0432b42ca..4b35765a9 100644 --- a/deluge/plugins/Stats/deluge/plugins/stats/data/tabs.ui +++ b/deluge/plugins/Stats/deluge/plugins/stats/data/tabs.ui @@ -8,11 +8,12 @@ - + True False + vertical - + True False @@ -45,11 +46,12 @@ queue none - + True False + vertical - + True False diff --git a/deluge/plugins/WebUi/deluge/plugins/webui/data/config.ui b/deluge/plugins/WebUi/deluge/plugins/webui/data/config.ui index a68602166..18647a415 100644 --- a/deluge/plugins/WebUi/deluge/plugins/webui/data/config.ui +++ b/deluge/plugins/WebUi/deluge/plugins/webui/data/config.ui @@ -14,9 +14,10 @@ - + True False + vertical True @@ -30,10 +31,11 @@ 10 12 - + True False 5 + vertical Enable web interface @@ -63,7 +65,7 @@ - + True False 5 diff --git a/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py b/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py index f67791761..ca3a16ea4 100644 --- a/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py +++ b/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py @@ -80,7 +80,7 @@ class GtkUI(Gtk3PluginBase): vbox = self.builder.get_object('prefs_box') - hbox = Gtk.HBox() + hbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, spacing=0) icon = Gtk.Image.new_from_icon_name('dialog-error', Gtk.IconSize.BUTTON) icon.set_padding(5, 5) hbox.pack_start(icon, False, False, 0) diff --git a/deluge/ui/gtk3/dialogs.py b/deluge/ui/gtk3/dialogs.py index 77c38ed50..5169ab453 100644 --- a/deluge/ui/gtk3/dialogs.py +++ b/deluge/ui/gtk3/dialogs.py @@ -49,7 +49,7 @@ class BaseDialog(Gtk.Dialog): # Setup all the formatting and such to make our dialog look pretty self.set_border_width(5) self.set_default_size(200, 100) - hbox = Gtk.HBox(spacing=5) + hbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, spacing=5) image = Gtk.Image() if icon.endswith('.svg') or icon.endswith('.png'): # Hack for Windows since it doesn't support svg @@ -60,7 +60,7 @@ class BaseDialog(Gtk.Dialog): image.set_from_icon_name(icon, Gtk.IconSize.LARGE_TOOLBAR) image.set_alignment(0.5, 0.0) hbox.pack_start(image, False, False, 0) - vbox = Gtk.VBox(spacing=5) + vbox = Gtk.Box.new(Gtk.Orientation.VERTICAL, spacing=5) tlabel = Gtk.Label(label=text) tlabel.set_use_markup(True) tlabel.set_line_wrap(True) @@ -365,7 +365,7 @@ class OtherDialog(BaseDialog): parent, ) - hbox = Gtk.HBox(spacing=5) + hbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, spacing=5) alignment_spacer = Gtk.Alignment() hbox.pack_start(alignment_spacer, True, True, 0) alignment_spin = Gtk.Alignment(xalign=1, yalign=0.5, xscale=1, yscale=1) diff --git a/deluge/ui/gtk3/path_combo_chooser.py b/deluge/ui/gtk3/path_combo_chooser.py index e0fb5ab58..041efdbf0 100755 --- a/deluge/ui/gtk3/path_combo_chooser.py +++ b/deluge/ui/gtk3/path_combo_chooser.py @@ -1135,7 +1135,7 @@ class PathChooserComboBox(Gtk.Box, StoredValuesPopup, GObject.GObject): ): Gtk.Box.__init__(self) GObject.GObject.__init__(self) - self.list_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL) + self.list_box = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, spacing=0) self._stored_values_popping_down = False self.filechooser_visible = True self.filechooser_enabled = True @@ -1694,7 +1694,7 @@ if __name__ == '__main__': w.set_title('ComboEntry example') w.connect('delete-event', Gtk.main_quit) - box1 = Gtk.Box(Gtk.Orientation.VERTICAL, 0) + box1 = Gtk.Box.new(Gtk.Orientation.VERTICAL, spacing=0) def get_resource2(filename): return '%s/glade/%s' % (os.path.abspath(os.path.dirname(sys.argv[0])), filename) diff --git a/deluge/ui/gtk3/preferences.py b/deluge/ui/gtk3/preferences.py index 8d2c194a5..c91e7f2ed 100644 --- a/deluge/ui/gtk3/preferences.py +++ b/deluge/ui/gtk3/preferences.py @@ -246,7 +246,7 @@ class Preferences(component.Component): parent = widget.get_parent() if parent: parent.remove(widget) - vbox = Gtk.VBox() + vbox = Gtk.Box.new(Gtk.Orientation.VERTICAL, spacing=0) label = Gtk.Label() label.set_use_markup(True) label.set_markup('' + name + '') diff --git a/deluge/ui/gtk3/statusbar.py b/deluge/ui/gtk3/statusbar.py index cc650b9dc..265e7c886 100644 --- a/deluge/ui/gtk3/statusbar.py +++ b/deluge/ui/gtk3/statusbar.py @@ -38,8 +38,7 @@ class StatusBarItem(object): ): self._widgets = [] self._ebox = Gtk.EventBox() - self._hbox = Gtk.HBox() - self._hbox.set_spacing(3) + self._hbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, spacing=3) self._image = Gtk.Image() self._label = Gtk.Label() if image or icon or stock: @@ -141,9 +140,8 @@ class StatusBar(component.Component): 'dht': self._on_dht, } self.current_warnings = [] - # Add a HBox to the statusbar after removing the initial label widget - self.hbox = Gtk.HBox() - self.hbox.set_spacing(10) + # Add hbox to the statusbar after removing the initial label widget + self.hbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, spacing=10) align = Gtk.Alignment() align.set_padding(2, 0, 3, 0) align.add(self.hbox)