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); }