summaryrefslogtreecommitdiff
path: root/gtk/gtkaccelgroup.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2011-11-03 15:39:57 +0000
committerBastien Nocera <hadess@hadess.net>2011-11-04 16:40:22 +0000
commit06b55b2149f47f629a95230e7452148d295341b1 (patch)
tree1467b2e8182b69595f424de81fd36d76bc667a67 /gtk/gtkaccelgroup.h
parent0f167e8b43526533e2a0c037567c4d5dfaac7b48 (diff)
downloadgtk+-06b55b2149f47f629a95230e7452148d295341b1.tar.gz
gtk: Add accel with keycode parsing functions
Which handle accelerators with keycodes as well as keyvals, so we can use it in applications that use GtkCellRendererAccel's "Other" mode of operations (namely gnome-control-center and gnome-settings-daemon). https://bugzilla.gnome.org/show_bug.cgi?id=662755
Diffstat (limited to 'gtk/gtkaccelgroup.h')
-rw-r--r--gtk/gtkaccelgroup.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkaccelgroup.h b/gtk/gtkaccelgroup.h
index 3195a91b3e..0996bc62c7 100644
--- a/gtk/gtkaccelgroup.h
+++ b/gtk/gtkaccelgroup.h
@@ -163,10 +163,22 @@ gboolean gtk_accelerator_valid (guint keyval,
void gtk_accelerator_parse (const gchar *accelerator,
guint *accelerator_key,
GdkModifierType *accelerator_mods);
+void gtk_accelerator_parse_with_keycode (const gchar *accelerator,
+ guint *accelerator_key,
+ guint **accelerator_codes,
+ GdkModifierType *accelerator_mods);
gchar* gtk_accelerator_name (guint accelerator_key,
GdkModifierType accelerator_mods);
+gchar* gtk_accelerator_name_with_keycode (GdkDisplay *display,
+ guint accelerator_key,
+ guint keycode,
+ GdkModifierType accelerator_mods);
gchar* gtk_accelerator_get_label (guint accelerator_key,
GdkModifierType accelerator_mods);
+gchar* gtk_accelerator_get_label_with_keycode (GdkDisplay *display,
+ guint accelerator_key,
+ guint keycode,
+ GdkModifierType accelerator_mods);
void gtk_accelerator_set_default_mod_mask (GdkModifierType default_mod_mask);
GdkModifierType
gtk_accelerator_get_default_mod_mask (void);