diff options
author | Evan Nemerson <evan@nemerson.com> | 2014-05-08 12:55:50 -0700 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-05-11 11:48:32 -0400 |
commit | 38d2458f53f2018029d648aa246e8bc90c6afdd6 (patch) | |
tree | 5aa64c4efb5f3908f719309ace6e5e8b38455baf /gdk/gdkdevice.c | |
parent | 9187b6bae797b746e696ebdef00adfdd779c63df (diff) | |
download | gtk+-38d2458f53f2018029d648aa246e8bc90c6afdd6.tar.gz |
gdk: add many missing (nullable) return value annotations
https://bugzilla.gnome.org/show_bug.cgi?id=729834
Diffstat (limited to 'gdk/gdkdevice.c')
-rw-r--r-- | gdk/gdkdevice.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c index 52b66db272..c77f2b8279 100644 --- a/gdk/gdkdevice.c +++ b/gdk/gdkdevice.c @@ -505,7 +505,8 @@ gdk_device_get_position (GdkDevice *device, * function may not be called on devices of type %GDK_DEVICE_TYPE_SLAVE, * unless there is an ongoing grab on them, see gdk_device_grab(). * - * Returns: (transfer none): the #GdkWindow under the device position, or %NULL. + * Returns: (nullable) (transfer none): the #GdkWindow under the + * device position, or %NULL. * * Since: 3.0 **/ @@ -554,7 +555,8 @@ gdk_device_get_window_at_position_double (GdkDevice *device, * function may not be called on devices of type %GDK_DEVICE_TYPE_SLAVE, * unless there is an ongoing grab on them, see gdk_device_grab(). * - * Returns: (transfer none): the #GdkWindow under the device position, or %NULL. + * Returns: (nullable) (transfer none): the #GdkWindow under the + * device position, or %NULL. * * Since: 3.0 **/ @@ -941,7 +943,8 @@ gdk_device_get_display (GdkDevice *device) * If @device is of type %GDK_DEVICE_TYPE_FLOATING, %NULL will be * returned, as there is no associated device. * - * Returns: (transfer none): The associated device, or %NULL + * Returns: (nullable) (transfer none): The associated device, or + * %NULL * * Since: 3.0 **/ @@ -1001,10 +1004,10 @@ _gdk_device_set_associated_device (GdkDevice *device, * the list of slave devices attached to it, otherwise it will return * %NULL * - * Returns: (transfer container) (element-type GdkDevice): the list of - * slave devices, or %NULL. The list must be freed with - * g_list_free(), the contents of the list are owned by GTK+ - * and should not be freed. + * Returns: (nullable) (transfer container) (element-type GdkDevice): + * the list of slave devices, or %NULL. The list must be + * freed with g_list_free(), the contents of the list are + * owned by GTK+ and should not be freed. **/ GList * gdk_device_list_slave_devices (GdkDevice *device) |