From 31db48d1375014ea9763921f12e601922e5a6e2e Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Mon, 21 Sep 2020 20:49:25 +0200 Subject: [PATCH] Replace deprecated Gtk HBox and VBox with normal Box --- clapper_src/buttons.js | 4 +++- clapper_src/controls.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/clapper_src/buttons.js b/clapper_src/buttons.js index 9064fad4..92fcaf08 100644 --- a/clapper_src/buttons.js +++ b/clapper_src/buttons.js @@ -76,7 +76,9 @@ class BoxedPopoverButton extends BoxedIconButton this.popover = new Gtk.Popover({ relative_to: this.box }); - this.popoverBox = new Gtk.VBox(); + this.popoverBox = new Gtk.Box({ + orientation: Gtk.Orientation.VERTICAL + }); this.popover.add(this.popoverBox); this.popoverBox.show(); this.connect( diff --git a/clapper_src/controls.js b/clapper_src/controls.js index 7bc85b9d..2c60e6e0 100644 --- a/clapper_src/controls.js +++ b/clapper_src/controls.js @@ -19,11 +19,12 @@ var Controls = GObject.registerClass({ param_types: [GObject.TYPE_STRING] }, } -}, class ClapperControls extends Gtk.HBox +}, class ClapperControls extends Gtk.Box { _init() { super._init({ + orientation: Gtk.Orientation.HORIZONTAL, margin_start: CONTROLS_MARGIN, margin_end: CONTROLS_MARGIN, spacing: CONTROLS_SPACING,