diff options
author | Tim Janik <timj@gtk.org> | 1998-06-30 08:20:45 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-06-30 08:20:45 +0000 |
commit | 80b0b3ea05c4575911f37fa5ad66d7deeaef0ad6 (patch) | |
tree | b6fb0172e827a66a8b202ccbfc39ceb1c1615dd2 /gtk/gtkbindings.c | |
parent | bf44f089cd6e9a613dd5b6a08fee66e14df347e1 (diff) | |
download | gtk+-80b0b3ea05c4575911f37fa5ad66d7deeaef0ad6.tar.gz |
ok, this enables the possibility for key-release bindings.
but nearly no widget really cares to set GDK_KEY_RELEASE_MASK,
which needs to be enabled in order for release bindings to work.
Tue Jun 30 09:24:40 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.c (gtk_accelerator_parse): parse "<Release>"
modifier as well.
(gtk_accelerator_name): add "<Release>" to the accelerator name if
neccessary.
* gtk/gtkbindings.c (BINDING_MOD_MASK): take BINDING_MOD_MASK into
account.
* gtk/gtkwidget.c (gtk_widget_real_key_release_event): implemented
default handler for key-release events, which checks for activation
of GDK_RELEASE_MASK key bindings.
* gdk/gdktypes.h (enum): added GDK_RELEASE_MASK to GdkModifierType.
Diffstat (limited to 'gtk/gtkbindings.c')
-rw-r--r-- | gtk/gtkbindings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c index 27864fed49..8c17c9f5df 100644 --- a/gtk/gtkbindings.c +++ b/gtk/gtkbindings.c @@ -28,7 +28,7 @@ /* --- defines --- */ -#define BINDING_MOD_MASK() (gtk_accelerator_get_default_mod_mask ()) +#define BINDING_MOD_MASK() (gtk_accelerator_get_default_mod_mask () | GDK_RELEASE_MASK) /* --- variables --- */ |