diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-10-05 05:17:22 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-10-05 05:17:22 +0000 |
commit | 0dfe684dde3e88d42dba6a6e434b4e2ca3c6eec7 (patch) | |
tree | 3e03b663dadfb7005e7e5dfbeb21710d22f47459 /gtk/gtkaccellabel.h | |
parent | 8e30e2d5c3ccc8845254d5029273dc731da199dc (diff) | |
download | gtk+-0dfe684dde3e88d42dba6a6e434b4e2ca3c6eec7.tar.gz |
Provide access to the string representation of accelerators used in
2004-10-05 Matthias Clasen <mclasen@redhat.com>
Provide access to the string representation of accelerators used
in GtkAccelLabel. (#154068, John Spray)
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c (gtk_accelerator_get_label): New function
to return the accelerator label used in GtkAccelLabel.
(gtk_accelerator_name): Update docs to point to
gtk_accelerator_get_label().
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
New auxiliary function which creates the string representing the
accelerator.
Diffstat (limited to 'gtk/gtkaccellabel.h')
-rw-r--r-- | gtk/gtkaccellabel.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gtk/gtkaccellabel.h b/gtk/gtkaccellabel.h index 9d15ba6a74..4eb842a610 100644 --- a/gtk/gtkaccellabel.h +++ b/gtk/gtkaccellabel.h @@ -34,10 +34,7 @@ #include <gtk/gtklabel.h> -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - +G_BEGIN_DECLS #define GTK_TYPE_ACCEL_LABEL (gtk_accel_label_get_type ()) #define GTK_ACCEL_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACCEL_LABEL, GtkAccelLabel)) @@ -97,9 +94,11 @@ void gtk_accel_label_set_accel_closure (GtkAccelLabel *accel_label, GClosure *accel_closure); gboolean gtk_accel_label_refetch (GtkAccelLabel *accel_label); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +/* private */ +gchar * _gtk_accel_label_class_get_accelerator_label (GtkAccelLabelClass *klass, + guint accelerator_key, + GdkModifierType accelerator_mods); +G_END_DECLS #endif /* __GTK_ACCEL_LABEL_H__ */ |