diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-10-12 14:04:13 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-10-12 14:07:26 +0100 |
commit | f83ee2ab6abeec1143caef6cc12ea4c4cf76927a (patch) | |
tree | 2841c63d77fa89311a44b19302004080784b8e66 /gdk/wayland/gdkdevice-wayland.c | |
parent | 33e84edf0c6d520cc158872bddfe305a4aa18894 (diff) | |
download | gtk+-f83ee2ab6abeec1143caef6cc12ea4c4cf76927a.tar.gz |
Add type annotations for GdkWayland API
The GdkWayland API takes generic GDK types and performs a run time
check, which means we need to properly annotate the actual expected
type in order to have methods recognised as such.
Diffstat (limited to 'gdk/wayland/gdkdevice-wayland.c')
-rw-r--r-- | gdk/wayland/gdkdevice-wayland.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index 65727857ec..1fb60eadf8 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -5029,9 +5029,10 @@ gdk_wayland_seat_get_wl_seat (GdkSeat *seat) /** * gdk_wayland_device_get_node_path: - * @device: a #GdkDevice + * @device: (type GdkWaylandDevice): a #GdkDevice + * + * Returns the `/dev/input/event*` path of this device. * - * Returns the /dev/input/event* path of this device. * For #GdkDevices that possibly coalesce multiple hardware * devices (eg. mouse, keyboard, touch,...), this function * will return %NULL. @@ -5039,8 +5040,8 @@ gdk_wayland_seat_get_wl_seat (GdkSeat *seat) * This is most notably implemented for devices of type * %GDK_SOURCE_PEN, %GDK_SOURCE_TABLET_PAD. * - * Returns: the /dev/input/event* path of this device - **/ + * Returns: (nullable) (transfer none): the `/dev/input/event*` path of this device + */ const char * gdk_wayland_device_get_node_path (GdkDevice *device) { @@ -5065,7 +5066,7 @@ gdk_wayland_device_get_node_path (GdkDevice *device) /** * gdk_wayland_device_pad_set_feedback: - * @device: a %GDK_SOURCE_TABLET_PAD device + * @device: (type GdkWaylandDevice): a %GDK_SOURCE_TABLET_PAD device * @feature: Feature to set the feedback label for * @feature_idx: 0-indexed index of the feature to set the feedback label for * @label: Feedback label |