mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 21:20:09 +00:00
[introspection] add transfer none annotation to gdk_keyval_name return
* moved docs from .sgml file to th e.c file so we can add the annotation
This commit is contained in:
parent
bc070b9d24
commit
cdf517d1c8
@ -265,18 +265,6 @@ Returns: %PANGO_DIRECTION_LTR or %PANGO_DIRECTION_RTL.
|
|||||||
@Returns:
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gdk_keyval_name ##### -->
|
|
||||||
<para>
|
|
||||||
Converts a key value into a symbolic name.
|
|
||||||
The names are the same as those in the <filename><gdk/gdkkeysyms.h></filename> header file
|
|
||||||
but without the leading "GDK_KEY_".
|
|
||||||
</para>
|
|
||||||
|
|
||||||
@keyval: a key value.
|
|
||||||
@Returns: a string containing the name of the key, or %NULL if @keyval is not
|
|
||||||
a valid key. The string should not be modified.
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gdk_keyval_from_name ##### -->
|
<!-- ##### FUNCTION gdk_keyval_from_name ##### -->
|
||||||
<para>
|
<para>
|
||||||
Converts a key name to a key value.
|
Converts a key name to a key value.
|
||||||
|
@ -1606,7 +1606,19 @@ gdk_keymap_translate_keyboard_state (GdkKeymap *keymap,
|
|||||||
|
|
||||||
|
|
||||||
/* Key handling not part of the keymap */
|
/* Key handling not part of the keymap */
|
||||||
|
/**
|
||||||
|
* gdk_keyval_name:
|
||||||
|
*
|
||||||
|
* Converts a key value into a symbolic name.
|
||||||
|
* The names are the same as those in the
|
||||||
|
* <filename><gdk/gdkkeysyms.h></filename> header file
|
||||||
|
* but without the leading "GDK_KEY_".
|
||||||
|
*
|
||||||
|
* @keyval: a key value.
|
||||||
|
*
|
||||||
|
* Return value: (transfer none): a string containing the name of the key, or
|
||||||
|
* %NULL if @keyval is not a valid key. The string should not be modified.
|
||||||
|
**/
|
||||||
gchar*
|
gchar*
|
||||||
gdk_keyval_name (guint keyval)
|
gdk_keyval_name (guint keyval)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user