From dd603ac1b726ee5b6e6a4d1c9e9e7732d5bbea99 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 Jun 2024 11:26:18 +0200 Subject: Revert "Work around GTK 3.20's new allocation logic. Ported from slick-greeter." This reverts commit 2fa9791d9802d5c34323d9bd99ad9fa608abdda6. --- src/list-stack.vala | 3 --- src/main-window.vala | 2 -- src/prompt-box.vala | 3 --- 3 files changed, 8 deletions(-) diff --git a/src/list-stack.vala b/src/list-stack.vala index 63bde28..87e040b 100644 --- a/src/list-stack.vala +++ b/src/list-stack.vala @@ -35,9 +35,6 @@ 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 ad2700a..9b7a43b 100644 --- a/src/main-window.vala +++ b/src/main-window.vala @@ -125,8 +125,6 @@ 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 = MENUBAR_HEIGHT; /* offset for menubar at top */ align.show (); diff --git a/src/prompt-box.vala b/src/prompt-box.vala index 601464e..97c95ba 100644 --- a/src/prompt-box.vala +++ b/src/prompt-box.vala @@ -96,9 +96,6 @@ 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; -- cgit v1.2.3