From 7a7e3fc0e3460c5f58b1ec1a35ecd66bc9409910 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 21 Apr 2016 22:55:57 -0400 Subject: [PATCH] Ad d new API to the docs --- docs/reference/gdk/gdk3-sections.txt | 1 + gdk/gdkevents.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt index 64c61b3915..114c2929f8 100644 --- a/docs/reference/gdk/gdk3-sections.txt +++ b/docs/reference/gdk/gdk3-sections.txt @@ -877,6 +877,7 @@ gdk_events_get_center gdk_events_get_distance gdk_event_triggers_context_menu gdk_event_get_seat +gdk_event_get_scancode gdk_event_handler_set diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index d508dc3541..d562a9c08f 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -2478,10 +2478,11 @@ _gdk_event_set_scancode (GdkEvent *event, * gdk_event_get_scancode: * @event: a #GdkEvent * - * Gets the keyboard low-level scancode. - * This is usually hardware_keycode. - * On Windows this is the high word of WM_KEY{DOWN,UP} lParam - * which contains the scancode and some extended flags. + * Gets the keyboard low-level scancode of a key event. + * + * This is usually hardware_keycode. On Windows this is the high + * word of WM_KEY{DOWN,UP} lParam which contains the scancode and + * some extended flags. * * Returns: The associated keyboard scancode or 0 *