diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-08-09 19:48:23 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-08-09 20:24:44 -0400 |
commit | 2cdc5d440a10d0f24434b2350d44b669f3b58158 (patch) | |
tree | 3911814e0e29a42d4411ad803ac680df755209cd /gdk/gdkcursor.c | |
parent | c51a26e5622f4a51be854ff6ebecb1c0e9007f66 (diff) | |
download | gtk+-2cdc5d440a10d0f24434b2350d44b669f3b58158.tar.gz |
Fix up docs for new cursor apis
The docs for gdk_cursor_new_from_surface were talking about
pixbufs. And the new APIs were not appearing in the docs
at all yet.
Diffstat (limited to 'gdk/gdkcursor.c')
-rw-r--r-- | gdk/gdkcursor.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c index a336ea79ef..7d4e453c7b 100644 --- a/gdk/gdkcursor.c +++ b/gdk/gdkcursor.c @@ -391,10 +391,10 @@ gdk_cursor_new_from_pixbuf (GdkDisplay *display, * gdk_cursor_new_from_surface: * @display: the #GdkDisplay for which the cursor will be created * @surface: the cairo image surface containing the cursor pixel data - * @x: the horizontal offset of the 'hotspot' of the cursor. - * @y: the vertical offset of the 'hotspot' of the cursor. + * @x: the horizontal offset of the 'hotspot' of the cursor + * @y: the vertical offset of the 'hotspot' of the cursor * - * Creates a new cursor from a pixbuf. + * Creates a new cursor from a cairo image surface. * * Not all GDK backends support RGBA cursors. If they are not * supported, a monochrome approximation will be displayed. @@ -413,10 +413,10 @@ gdk_cursor_new_from_pixbuf (GdkDisplay *display, * Since: 3.10 */ GdkCursor * -gdk_cursor_new_from_surface (GdkDisplay *display, +gdk_cursor_new_from_surface (GdkDisplay *display, cairo_surface_t *surface, - gdouble x, - gdouble y) + gdouble x, + gdouble y) { g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL); g_return_val_if_fail (surface != NULL, NULL); @@ -514,7 +514,7 @@ gdk_cursor_get_image (GdkCursor *cursor) * @x_hot: Location to store the hotspot x position, or %NULL * @y_hot: Location to store the hotspot y position, or %NULL * - * Returns a #cairo_surface_t (image surface) with the image used to display the cursor. + * Returns a cairo image surface with the image used to display the cursor. * * Note that depending on the capabilities of the windowing system and * on the cursor, GDK may not be able to obtain the image data. In this @@ -526,11 +526,10 @@ gdk_cursor_get_image (GdkCursor *cursor) */ cairo_surface_t * gdk_cursor_get_surface (GdkCursor *cursor, - gdouble *x_hot, - gdouble *y_hot) + gdouble *x_hot, + gdouble *y_hot) { g_return_val_if_fail (GDK_IS_CURSOR (cursor), NULL); - return GDK_CURSOR_GET_CLASS (cursor)->get_surface (cursor, - x_hot, y_hot); + return GDK_CURSOR_GET_CLASS (cursor)->get_surface (cursor, x_hot, y_hot); } |