[gnome-shell/uajain/adapt-user-avatar-part2: 20/26] authPrompt: Keep buttonWell and cancel button sizes in sync
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/uajain/adapt-user-avatar-part2: 20/26] authPrompt: Keep buttonWell and cancel button sizes in sync
- Date: Tue, 11 Feb 2020 16:11:48 +0000 (UTC)
commit 5baf5952ebfeec31b7007a2a09361c11c7a54c42
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Feb 6 17:51:18 2020 -0300
authPrompt: Keep buttonWell and cancel button sizes in sync
So that the entry is horizontally centralized at all times.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
js/gdm/authPrompt.js | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index a62e1b13df..974f517783 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -176,6 +176,10 @@ var AuthPrompt = GObject.registerClass({
x_align: Clutter.ActorAlign.END,
y_align: Clutter.ActorAlign.CENTER,
});
+ this._defaultButtonWell.add_constraint(new Clutter.BindConstraint({
+ source: this.cancelButton,
+ coordinate: Clutter.BindCoordinate.SIZE,
+ }));
this._mainBox.add_child(this._defaultButtonWell);
this._spinner = new Animation.Spinner(DEFAULT_BUTTON_WELL_ICON_SIZE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]