Commit c98305ac authored by Matthias Clasen's avatar Matthias Clasen

Update docs on blank cursors

svn path=/trunk/; revision=22147
parent 4d9df738
2009-01-19 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkcursor.c:
* gdk/gdkwindow.c: Update docs on how to create blank cursors.
2009-01-19 Matthias Clasen <mclasen@redhat.com> 2009-01-19 Matthias Clasen <mclasen@redhat.com>
Cache cursors to avoid libXcursor theme lookup overhead. Cache cursors to avoid libXcursor theme lookup overhead.
......
...@@ -88,8 +88,7 @@ gdk_cursor_unref (GdkCursor *cursor) ...@@ -88,8 +88,7 @@ gdk_cursor_unref (GdkCursor *cursor)
* Creates a new cursor from the set of builtin cursors for the default display. * Creates a new cursor from the set of builtin cursors for the default display.
* See gdk_cursor_new_for_display(). * See gdk_cursor_new_for_display().
* *
* To make the cursor invisible, use gdk_cursor_new_from_pixmap() to create * To make the cursor invisible, use %GDK_BLANK_CURSOR.
* a cursor with no pixels in it.
* *
* Return value: a new #GdkCursor * Return value: a new #GdkCursor
**/ **/
......
...@@ -3859,12 +3859,11 @@ gdk_window_set_back_pixmap (GdkWindow *window, ...@@ -3859,12 +3859,11 @@ gdk_window_set_back_pixmap (GdkWindow *window,
* @window: a #GdkWindow * @window: a #GdkWindow
* @cursor: a cursor * @cursor: a cursor
* *
* Sets the mouse pointer for a #GdkWindow. Use gdk_cursor_new() or * Sets the mouse pointer for a #GdkWindow. Use gdk_cursor_new_for_display()
* gdk_cursor_new_from_pixmap() to create the cursor. * or gdk_cursor_new_from_pixmap() to create the cursor. To make the cursor
* To make the cursor invisible, use gdk_cursor_new_from_pixmap() to create * invisible, use %GDK_BLANK_CURSOR. Passing %NULL for the @cursor argument
* a cursor with no pixels in it. Passing %NULL for the @cursor argument * to gdk_window_set_cursor() means that @window will use the cursor of its
* to gdk_window_set_cursor() means that @window will use the cursor of * parent window. Most windows should use this default.
* its parent window. Most windows should use this default.
*/ */
void void
gdk_window_set_cursor (GdkWindow *window, gdk_window_set_cursor (GdkWindow *window,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment