st: Remove StBin's align properties

They are now completely unused, so remove them and stop the confusing
shadowing of ClutterActor's own x/y-align properties.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/803
This commit is contained in:
Florian Müllner
2019-10-17 23:27:27 +02:00
parent f2bd39b20c
commit 2c62e45168
12 changed files with 45 additions and 169 deletions

View File

@ -175,15 +175,16 @@ class Indicator extends PanelMenu.SystemIndicator {
}
_createActionButton(iconName, accessibleName) {
let icon = new St.Button({ reactive: true,
can_focus: true,
track_hover: true,
accessible_name: accessibleName,
x_expand: true,
style_class: 'system-menu-action' });
icon.set_x_align(Clutter.ActorAlign.CENTER);
icon.child = new St.Icon({ icon_name: iconName });
return icon;
return new St.Button({
child: new St.Icon({ icon_name: iconName }),
reactive: true,
can_focus: true,
track_hover: true,
accessible_name: accessibleName,
x_expand: true,
x_align: Clutter.ActorAlign.CENTER,
style_class: 'system-menu-action',
});
}
_createSubMenu() {