diff options
author | Tim Janik <timj@gtk.org> | 2003-11-27 15:51:32 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2003-11-27 15:51:32 +0000 |
commit | 448b576dc1c7e4c957614b821902e6c16c213934 (patch) | |
tree | cff96106bf060cd413c8fedb21bf97e972d330d7 /gtk/gtkaccelgroup.h | |
parent | 6e63e7f75a857b3d67c03505dd05771fda7c1d32 (diff) | |
download | gtk+-448b576dc1c7e4c957614b821902e6c16c213934.tar.gz |
allow accel activation depending on sensitivity and the attach widget.
Thu Nov 27 16:19:03 2003 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.c: allow accel activation depending on sensitivity
and the attach widget.
* gtk/gtkmenuitem.c: allow accel activation depending on visibility,
sensitivity and the parent menu.
* gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
checks whether accelerators may activate a widget. the default handler
demands the widget be sensitive and visible+viewable.
* gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
Diffstat (limited to 'gtk/gtkaccelgroup.h')
-rw-r--r-- | gtk/gtkaccelgroup.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkaccelgroup.h b/gtk/gtkaccelgroup.h index a3a53d4858..b4f1b032e7 100644 --- a/gtk/gtkaccelgroup.h +++ b/gtk/gtkaccelgroup.h @@ -118,6 +118,11 @@ gboolean gtk_accel_group_disconnect (GtkAccelGroup *accel_group, gboolean gtk_accel_group_disconnect_key (GtkAccelGroup *accel_group, guint accel_key, GdkModifierType accel_mods); +gboolean gtk_accel_group_activate (GtkAccelGroup *accel_group, + GQuark accel_quark, + GObject *acceleratable, + guint accel_key, + GdkModifierType accel_mods); /* --- GtkActivatable glue --- */ |