-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PartitionBar: make sure we get click events
Put the gesture in the constructor
- Loading branch information
1 parent
93df033
commit eb6d96a
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* Authored by: Michael Aaron Murphy <[email protected]> | ||
*/ | ||
|
||
public class Installer.PartitionBar : Gtk.Box { | ||
public class Installer.PartitionBar : Gtk.EventBox { | ||
public signal void decrypted (InstallerDaemon.LuksCredentials credential); | ||
|
||
public Icon? icon { get; set; default = null; } | ||
|
@@ -43,6 +43,9 @@ public class Installer.PartitionBar : Gtk.Box { | |
|
||
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.Box { | |
|
||
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); | ||
} | ||
|
||
|