[perl-Gtk2] Gtk2::Gdk::Cursor: document the dependence on a display
- From: Torsten Schönfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Gtk2] Gtk2::Gdk::Cursor: document the dependence on a display
- Date: Sun, 12 Dec 2010 13:24:59 +0000 (UTC)
commit 98a0fd015fc36d6a19d2f4f295129f7f12c5d20b
Author: Kevin Ryde <user42 zip com au>
Date: Sun Dec 12 14:23:31 2010 +0100
Gtk2::Gdk::Cursor: document the dependence on a display
xs/GdkCursor.xs | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/xs/GdkCursor.xs b/xs/GdkCursor.xs
index c79846f..e6525de 100644
--- a/xs/GdkCursor.xs
+++ b/xs/GdkCursor.xs
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003-2005 by the gtk2-perl team (see the file AUTHORS)
+ * Copyright (c) 2003-2005, 2010 by the gtk2-perl team (see the file AUTHORS)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -23,6 +23,22 @@
MODULE = Gtk2::Gdk::Cursor PACKAGE = Gtk2::Gdk::Cursor PREFIX = gdk_cursor_
+=for position DESCRIPTION
+
+=head1 DESCRIPTION
+
+For reference, cursors are a per-display resource and can only be used
+with the display they were created on.
+
+As of Gtk 2.22 a cursor doesn't keep a reference to its
+C<Gtk2::Gdk::Display> and if the display object is destroyed before
+the cursor then a later destroy of the cursor may get a segv.
+Perl-Gtk2 doesn't try to do anything about this. Care may be needed
+if keeping a cursor separate from a widget or window. (Closing the
+display is fine, but not destroying it.)
+
+=cut
+
GdkCursorType
gdk_cursor_type (cursor)
GdkCursor *cursor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]