Re: [Vala] add_accelerator with no ModifierType
- From: Wolfgang Mauer <wolfgang mauer kabelmail de>
- To: Stephen Brandt <stephen stephenbrandt com>, vala-list gnome org
- Subject: Re: [Vala] add_accelerator with no ModifierType
- Date: Fri, 8 Feb 2019 21:34:58 +0100
Works...
Thanks a lot!
Am 08.02.19 um 21:07 schrieb Stephen Brandt:
Hi Wolfgang,
You should be able to use the literal number zero, like this:
add_accelerator ("activate", accel_group, Gdk.Key.F5, 0,
Gtk.AccelFlags.VISIBLE);
I used it here in my own application:
https://github.com/ztefn/haguichi/blob/master/src/headerbar.vala#L187
Cheers,
Stephen
Wolfgang Mauer wrote:
Hi all,
i try tio use the "Widget.add_accelerator" funktion...
I do not want a "Gdk.ModifierType", but "Gdk.ModifierType.NONE" is
not avail
How to do this?
add_accelerator ("activate", accel_group, Gdk.Key.F5,
Gdk.ModifierType.*????*, Gtk.AccelFlags.VISIBLE);
Thanks for Help!
Wolfgang
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]