diff --git a/docs/reference/gdk/tmpl/keys.sgml b/docs/reference/gdk/tmpl/keys.sgml index 537d1c4597..ca6c4dcfdd 100644 --- a/docs/reference/gdk/tmpl/keys.sgml +++ b/docs/reference/gdk/tmpl/keys.sgml @@ -11,13 +11,12 @@ They appear in the keyval field of the #GdkEventKey structure, which is passed to signal handlers for the "key-press-event" and "key-release-event" signals. The complete list of key values can be found in the <gdk/gdkkeysyms.h> -header file. <gdk/gdkkeysyms.h> is not included in <gdk/gdk.h>, -it must be included independently, because the file is quite large. +header file. Key values are regularly updated from the upstream X.org X11 implementation, -so new values are added regularly. They will be prefixed with GDK_ rather than -XF86XK_ or XK_ (for older symbols). +so new values are added regularly. They will be prefixed with GDK_KEY_ rather +than XF86XK_ or XK_ (for older symbols). Key values can be converted into a string representation using @@ -30,7 +29,7 @@ gdk_keyval_is_lower(). Key values can be converted to upper or lower case using gdk_keyval_to_upper() and gdk_keyval_to_lower(). -When it makes sense, key values can be converted to and from +When it makes sense, key values can be converted to and from Unicode characters with gdk_keyval_to_unicode() and gdk_unicode_to_keyval(). @@ -270,7 +269,7 @@ Returns: %PANGO_DIRECTION_LTR or %PANGO_DIRECTION_RTL. Converts a key value into a symbolic name. The names are the same as those in the <gdk/gdkkeysyms.h> header file -but without the leading "GDK_". +but without the leading "GDK_KEY_". @keyval: a key value. diff --git a/gdk/gdk.h b/gdk/gdk.h index 97381047d2..a6c7578a80 100644 --- a/gdk/gdk.h +++ b/gdk/gdk.h @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include