summaryrefslogtreecommitdiff
path: root/gdk/gdkdevice.c
diff options
context:
space:
mode:
authorEvan Nemerson <evan@nemerson.com>2014-05-08 12:55:50 -0700
committerMatthias Clasen <mclasen@redhat.com>2014-05-11 11:48:32 -0400
commit38d2458f53f2018029d648aa246e8bc90c6afdd6 (patch)
tree5aa64c4efb5f3908f719309ace6e5e8b38455baf /gdk/gdkdevice.c
parent9187b6bae797b746e696ebdef00adfdd779c63df (diff)
downloadgtk+-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.c17
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)