Skip to content

Commit

Permalink
Put the gesture in the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed May 8, 2024
1 parent 9caae1d commit fe5b1ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Widgets/PartitionBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
}

Expand Down

0 comments on commit fe5b1ee

Please sign in to comment.