summaryrefslogtreecommitdiff
path: root/gdk/gdkcursor.h
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2009-01-20 02:15:59 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2009-01-20 02:15:59 +0000
commit1cba7387ce6bc59b4d9b22f7b9462358dbd9fec9 (patch)
tree8b4e8537705f8a1ba53200b9d70af69fc5145c06 /gdk/gdkcursor.h
parent42371c1a03773cd2759a48de07e0caabff4658a6 (diff)
downloadgtk+-1cba7387ce6bc59b4d9b22f7b9462358dbd9fec9.tar.gz
Cache cursors to avoid libXcursor theme lookup overhead.
Patch by David Alan Gilbert. * gdk/gdkcursor.h: Add a GDK_BLANK_CURSOR cursor type. * gdk/x11/gdkcursor-x11.c: Cache font cursors and named cursors. * gdk/x11/gdkprivate-x11.h: * gdk/x11/gdkcdisplay-x11.c: Remove cached cursors when a display if finalized. svn path=/trunk/; revision=22145
Diffstat (limited to 'gdk/gdkcursor.h')
-rw-r--r--gdk/gdkcursor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/gdkcursor.h b/gdk/gdkcursor.h
index 488faa498f..f20400368d 100644
--- a/gdk/gdkcursor.h
+++ b/gdk/gdkcursor.h
@@ -120,7 +120,8 @@ typedef enum
GDK_WATCH = 150,
GDK_XTERM = 152,
GDK_LAST_CURSOR,
- GDK_CURSOR_IS_PIXMAP = -1
+ GDK_BLANK_CURSOR = -2,
+ GDK_CURSOR_IS_PIXMAP = -1
} GdkCursorType;
struct _GdkCursor