[gtk+] Mention the 'same display' requirement in the docs too
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Mention the 'same display' requirement in the docs too
- Date: Tue, 28 Oct 2014 04:57:29 +0000 (UTC)
commit d1dcac85f3b8d2050d2893606b98807c82ce9c4f
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 28 00:44:33 2014 -0400
Mention the 'same display' requirement in the docs too
gdk/gdkwindow.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 1f05aff..bc10dd5 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -6063,11 +6063,15 @@ gdk_window_get_cursor (GdkWindow *window)
* @window: a #GdkWindow
* @cursor: (allow-none): a cursor
*
- * Sets the default mouse pointer for a #GdkWindow. Use gdk_cursor_new_for_display()
- * or gdk_cursor_new_from_pixbuf() to create the cursor. To make the cursor
- * invisible, use %GDK_BLANK_CURSOR. Passing %NULL for the @cursor argument
- * to gdk_window_set_cursor() means that @window will use the cursor of its
- * parent window. Most windows should use this default.
+ * Sets the default mouse pointer for a #GdkWindow.
+ *
+ * Note that @cursor must be for the same display as @window.
+ *
+ * Use gdk_cursor_new_for_display() or gdk_cursor_new_from_pixbuf() to
+ * create the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR.
+ * Passing %NULL for the @cursor argument to gdk_window_set_cursor() means
+ * that @window will use the cursor of its parent window. Most windows
+ * should use this default.
*/
void
gdk_window_set_cursor (GdkWindow *window,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]