diff options
author | Pavel Holejsovsky <pholejs@src.gnome.org> | 2011-01-18 10:01:17 +0100 |
---|---|---|
committer | Pavel Holejsovsky <pholejs@src.gnome.org> | 2011-01-20 13:57:18 +0100 |
commit | 2f0d40335b83d70d04a205dd17e8a5514b79f2d4 (patch) | |
tree | e154bd17faf149c40807461f9e671983e32b6f82 /gdk | |
parent | 9b88eb356dde2578ff652511fcfc083b66be7b0b (diff) | |
download | gtk+-2f0d40335b83d70d04a205dd17e8a5514b79f2d4.tar.gz |
[GI] Add missing (transfer) annotations
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdkcursor.c | 2 | ||||
-rw-r--r-- | gdk/gdkdisplay.c | 2 | ||||
-rw-r--r-- | gdk/gdkdisplaymanager.c | 4 | ||||
-rw-r--r-- | gdk/gdkdnd.c | 2 | ||||
-rw-r--r-- | gdk/gdkevents.c | 2 | ||||
-rw-r--r-- | gdk/gdkoffscreenwindow.c | 2 | ||||
-rw-r--r-- | gdk/gdkwindow.c | 21 | ||||
-rw-r--r-- | gdk/x11/gdkdisplay-x11.c | 3 | ||||
-rw-r--r-- | gdk/x11/gdkvisual-x11.c | 4 |
9 files changed, 23 insertions, 19 deletions
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c index 1418b1bd0a..f9a5a6e2ee 100644 --- a/gdk/gdkcursor.c +++ b/gdk/gdkcursor.c @@ -150,7 +150,7 @@ gdk_cursor_init (GdkCursor *cursor) * * Adds a reference to @cursor. * - * Return value: Same @cursor that was passed in + * Return value: (transfer full): Same @cursor that was passed in * * Deprecated: 3.0: Use g_object_ref() instead */ diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index fa2e645467..0cbf3879be 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -1756,7 +1756,7 @@ gdk_display_real_get_app_launch_context (GdkDisplay *display) * Returns a #GdkAppLaunchContext suitable for launching * applications on the given display. * - * Returns: a new #GdkAppLaunchContext for @display. + * Returns: (transfer full): a new #GdkAppLaunchContext for @display. * Free with g_object_unref() when done * * Since: 3.0 diff --git a/gdk/gdkdisplaymanager.c b/gdk/gdkdisplaymanager.c index 79ed85aebd..160404d75c 100644 --- a/gdk/gdkdisplaymanager.c +++ b/gdk/gdkdisplaymanager.c @@ -335,7 +335,7 @@ gdk_display_manager_open_display (GdkDisplayManager *manager, * * Finds or creates an atom corresponding to a given string. * - * Returns: the atom corresponding to @atom_name. + * Returns: (transfer none): the atom corresponding to @atom_name. */ GdkAtom gdk_atom_intern (const gchar *atom_name, @@ -361,7 +361,7 @@ gdk_atom_intern (const gchar *atom_name, * ever unload the module again (e.g. do not use this function in * GTK+ theme engines). * - * Returns: the atom corresponding to @atom_name + * Returns: (transfer none): the atom corresponding to @atom_name * * Since: 2.10 */ diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c index bb2e6a854e..fd54a8a71b 100644 --- a/gdk/gdkdnd.c +++ b/gdk/gdkdnd.c @@ -445,7 +445,7 @@ gdk_drag_drop_succeeded (GdkDragContext *context) * * Returns the selection atom for the current source window. * - * Return value: the selection atom, or %GDK_NONE + * Return value: (transfer none): the selection atom, or %GDK_NONE */ GdkAtom gdk_drag_get_selection (GdkDragContext *context) diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index 43fc086077..5fa240fe9d 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -1165,7 +1165,7 @@ gdk_event_set_source_device (GdkEvent *event, * If the event does not contain a device field, this function will * return %NULL. * - * Returns: a #GdkDevice, or %NULL + * Returns: (transfer none): a #GdkDevice, or %NULL. * * Since: 3.0 **/ diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c index fa1518f0d7..b3c53afca9 100644 --- a/gdk/gdkoffscreenwindow.c +++ b/gdk/gdkoffscreenwindow.c @@ -334,7 +334,7 @@ gdk_offscreen_window_get_device_state (GdkWindow *window, * If you need to keep this around over window resizes, you need to * add a reference to it. * - * Returns: The offscreen surface, or %NULL if not offscreen + * Returns: (transfer none): The offscreen surface, or %NULL if not offscreen */ cairo_surface_t * gdk_offscreen_window_get_surface (GdkWindow *window) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index aa9fb3c3d4..0ea4d40a60 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -384,7 +384,8 @@ gdk_window_class_init (GdkWindowClass *klass) * The ::pick-embedded-child signal is emitted to find an embedded * child at the given position. * - * Returns: the #GdkWindow of the embedded child at @x, @y, or %NULL + * Returns: (transfer none): the #GdkWindow of the embedded child at + * @x, @y, or %NULL * * Since: 2.18 */ @@ -6584,8 +6585,8 @@ gdk_window_set_background_pattern (GdkWindow *window, * does not have its own background and reuses the parent's, %NULL is * returned and you'll have to query it yourself. * - * Returns: The pattern to use for the background or %NULL to use the - * parent's background. + * Returns: (transfer none): The pattern to use for the background or + * %NULL to use the parent's background. * * Since: 2.22 **/ @@ -6622,9 +6623,10 @@ update_cursor_foreach (GdkDisplay *display, * there is no custom cursor set on the specified window, and it is * using the cursor for its parent window. * - * Return value: a #GdkCursor, or %NULL. The returned object is owned - * by the #GdkWindow and should not be unreferenced directly. Use - * gdk_window_set_cursor() to unset the cursor of the window + * Return value: (transfer none): a #GdkCursor, or %NULL. The returned + * object is owned by the #GdkWindow and should not be unreferenced + * directly. Use gdk_window_set_cursor() to unset the cursor of the + * window * * Since: 2.18 */ @@ -6686,9 +6688,10 @@ gdk_window_set_cursor (GdkWindow *window, * there is no custom cursor set on the specified window, and it is * using the cursor for its parent window. * - * Returns: a #GdkCursor, or %NULL. The returned object is owned - * by the #GdkWindow and should not be unreferenced directly. Use - * gdk_window_set_cursor() to unset the cursor of the window + * Returns: (transfer none): a #GdkCursor, or %NULL. The returned + * object is owned by the #GdkWindow and should not be unreferenced + * directly. Use gdk_window_set_cursor() to unset the cursor of the + * window * * Since: 3.0 **/ diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c index e406bb83e3..b3d77cb3a8 100644 --- a/gdk/x11/gdkdisplay-x11.c +++ b/gdk/x11/gdkdisplay-x11.c @@ -1854,7 +1854,8 @@ gdk_x11_lookup_xdisplay (Display *xdisplay) * Given the root window ID of one of the screen's of a #GdkDisplay, * finds the screen. * - * Return value: the #GdkScreen corresponding to @xrootwin, or %NULL. + * Return value: (transfer none): the #GdkScreen corresponding to + * @xrootwin, or %NULL. **/ GdkScreen * _gdk_x11_display_screen_for_xrootwin (GdkDisplay *display, diff --git a/gdk/x11/gdkvisual-x11.c b/gdk/x11/gdkvisual-x11.c index eb394f6fc2..7d80a12ac7 100644 --- a/gdk/x11/gdkvisual-x11.c +++ b/gdk/x11/gdkvisual-x11.c @@ -462,8 +462,8 @@ _gdk_x11_screen_list_visuals (GdkScreen *screen) * * Looks up the #GdkVisual for a particular screen and X Visual ID. * - * Returns: the #GdkVisual (owned by the screen object), or %NULL - * if the visual ID wasn't found. + * Returns: (transfer none): the #GdkVisual (owned by the screen + * object), or %NULL if the visual ID wasn't found. * * Since: 2.2 */ |