diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2009-01-20 02:15:59 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2009-01-20 02:15:59 +0000 |
commit | 1cba7387ce6bc59b4d9b22f7b9462358dbd9fec9 (patch) | |
tree | 8b4e8537705f8a1ba53200b9d70af69fc5145c06 /gdk/gdkcursor.h | |
parent | 42371c1a03773cd2759a48de07e0caabff4658a6 (diff) | |
download | gtk+-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.h | 3 |
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 |