Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PartitionBar: make sure we get click events #765

Merged
merged 2 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gnome = import('gnome')
i18n = import('i18n')

distinst_dep = dependency('distinst')
glib_dep = dependency('glib-2.0')
glib_dep = dependency('glib-2.0', version: '>=2.74')
gobject_dep = dependency('gobject-2.0')
gtk_dep = dependency('gtk+-3.0')
gee_dep = dependency('gee-0.8')
Expand Down
2 changes: 1 addition & 1 deletion src/Views/KeyboardLayoutView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public class KeyboardLayoutView : AbstractInstallerView {

show_all ();

Idle.add (() => {
Idle.add_once (() => {
string? country = Configuration.get_default ().country;
if (country != null) {
string default_layout = country.down ();
Expand Down
8 changes: 4 additions & 4 deletions src/Widgets/PartitionBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down Expand Up @@ -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 {
Expand All @@ -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);
}

Expand Down
Loading