Re: [Vala] add_accelerator with no ModifierType



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]