docs: Move GdkEvent docs inline

This is not really worth a chapter of its own.
This commit is contained in:
Matthias Clasen
2021-02-20 10:26:17 -05:00
committed by Emmanuele Bassi
parent ca3120919f
commit 3d04c0f4be
3 changed files with 6 additions and 13 deletions

View File

@@ -1,10 +0,0 @@
Title: Events
## Handling events from the window system
In GTK applications the events are handled automatically by toplevel
widgets and passed on to the event controllers of appropriate widgets,
so using [class@Gdk.Event] and its related API is rarely needed.
[class@Gdk.Event] and its derived types are immutable data structures,
created by GTK itself to represent windowing system events.

View File

@@ -34,7 +34,6 @@ base_url = "https://gitlab.gnome.org/GNOME/gtk/-/blob/master/"
[extra]
content_files = [
"events.md",
"keys.md",
"cairo.md",
"pango.md",

View File

@@ -41,8 +41,12 @@
/**
* GdkEvent: (ref-func gdk_event_ref) (unref-func gdk_event_unref)
*
* The GdkEvent struct contains only private fields and
* should not be accessed directly.
* `GdkEvent` and its derived types are immutable data structures,
* created by GTK itself to represent windowing system events.
*
* In GTK applications the events are handled automatically by toplevel
* widgets and passed on to the event controllers of appropriate widgets,
* so using `GdkEvent` and its related API is rarely needed.
*/
/**