From fe5b1eea967d72facdcee112ae85b6e9137b7b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Wed, 8 May 2024 12:06:47 -0700 Subject: [PATCH] Put the gesture in the constructor --- src/Widgets/PartitionBar.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Widgets/PartitionBar.vala b/src/Widgets/PartitionBar.vala index 50c03e996..fa0193326 100644 --- a/src/Widgets/PartitionBar.vala +++ b/src/Widgets/PartitionBar.vala @@ -43,6 +43,9 @@ public class Installer.PartitionBar : Gtk.EventBox { menu.relative_to = this; menu.position = BOTTOM; + + click_gesture = new Gtk.GestureMultiPress (this); + click_gesture.released.connect (menu.popup); } class construct { @@ -64,9 +67,6 @@ public class Installer.PartitionBar : Gtk.EventBox { get_style_context ().add_class (Distinst.strfilesys (partition.filesystem)); - click_gesture = new Gtk.GestureMultiPress (this); - click_gesture.released.connect (menu.popup); - bind_property ("icon", image, "gicon", SYNC_CREATE); }