Replace deprecated Gtk HBox and VBox with normal Box

This commit is contained in:
Rafostar
2020-09-21 20:49:25 +02:00
parent f6560c11f9
commit 31db48d137
2 changed files with 5 additions and 2 deletions

View File

@@ -76,7 +76,9 @@ class BoxedPopoverButton extends BoxedIconButton
this.popover = new Gtk.Popover({ this.popover = new Gtk.Popover({
relative_to: this.box relative_to: this.box
}); });
this.popoverBox = new Gtk.VBox(); this.popoverBox = new Gtk.Box({
orientation: Gtk.Orientation.VERTICAL
});
this.popover.add(this.popoverBox); this.popover.add(this.popoverBox);
this.popoverBox.show(); this.popoverBox.show();
this.connect( this.connect(

View File

@@ -19,11 +19,12 @@ var Controls = GObject.registerClass({
param_types: [GObject.TYPE_STRING] param_types: [GObject.TYPE_STRING]
}, },
} }
}, class ClapperControls extends Gtk.HBox }, class ClapperControls extends Gtk.Box
{ {
_init() _init()
{ {
super._init({ super._init({
orientation: Gtk.Orientation.HORIZONTAL,
margin_start: CONTROLS_MARGIN, margin_start: CONTROLS_MARGIN,
margin_end: CONTROLS_MARGIN, margin_end: CONTROLS_MARGIN,
spacing: CONTROLS_SPACING, spacing: CONTROLS_SPACING,