mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Replace deprecated Gtk HBox and VBox with normal Box
This commit is contained in:
@@ -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(
|
||||||
|
3
clapper_src/controls.js
vendored
3
clapper_src/controls.js
vendored
@@ -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,
|
||||||
|
Reference in New Issue
Block a user