aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-06-04 12:29:45 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-06-21 21:49:07 +0200
commit0583af45a205b98d3b23dcf0ecd78b5c495d2d09 (patch)
tree8443b029f04cf3e8425db2bbac6676847d224db1
parent1e92ca186dd1704cc376d078d244114d544df33d (diff)
downloadarctica-greeter-0583af45a205b98d3b23dcf0ecd78b5c495d2d09.tar.gz
arctica-greeter-0583af45a205b98d3b23dcf0ecd78b5c495d2d09.tar.bz2
arctica-greeter-0583af45a205b98d3b23dcf0ecd78b5c495d2d09.zip
Revert "Revert "Work around GTK 3.20's new allocation logic. Ported from slick-greeter.""
This reverts commit dd603ac1b726ee5b6e6a4d1c9e9e7732d5bbea99. Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
-rw-r--r--src/list-stack.vala3
-rw-r--r--src/main-window.vala2
-rw-r--r--src/prompt-box.vala3
3 files changed, 8 insertions, 0 deletions
diff --git a/src/list-stack.vala b/src/list-stack.vala
index 87e040b..63bde28 100644
--- a/src/list-stack.vala
+++ b/src/list-stack.vala
@@ -35,6 +35,9 @@ public class ListStack : Gtk.Fixed
construct
{
+ // Hack to avoid gtk 3.20's new allocate logic, which messes us up.
+ resize_mode = Gtk.ResizeMode.QUEUE;
+
width = grid_size * GreeterList.BOX_WIDTH;
}
diff --git a/src/main-window.vala b/src/main-window.vala
index 6fc1259..ae5518e 100644
--- a/src/main-window.vala
+++ b/src/main-window.vala
@@ -144,6 +144,8 @@ public class MainWindow : Gtk.Window
align.add (hbox);
align = new Gtk.Alignment (0.5f, 0.5f, 0.0f, 0.0f);
+ // Hack to avoid gtk 3.20's new allocate logic, which messes us up.
+ align.resize_mode = Gtk.ResizeMode.QUEUE;
align.set_size_request (grid_size, -1);
align.margin_bottom = ArcticaGreeter.MENUBAR_HEIGHT; /* offset for menubar at top */
align.show ();
diff --git a/src/prompt-box.vala b/src/prompt-box.vala
index 97c95ba..601464e 100644
--- a/src/prompt-box.vala
+++ b/src/prompt-box.vala
@@ -96,6 +96,9 @@ public class PromptBox : FadableBox
construct
{
+ // Hack to avoid gtk 3.20's new allocate logic, which messes us up.
+ resize_mode = Gtk.ResizeMode.QUEUE;
+
set_start_row ();
reset_last_row ();
expand = true;