diff options
author | Havoc Pennington <hp@pobox.com> | 2000-01-29 22:26:41 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-01-29 22:26:41 +0000 |
commit | 4d48b106f0b897d3c101c73be0e4f19f1248f8de (patch) | |
tree | 73ef27890b623ef58361790272f97470261947cf /gdk/gdkcursor.h | |
parent | 7d39971922e88caa0a1ac7a129a766929457b028 (diff) | |
download | gtk+-4d48b106f0b897d3c101c73be0e4f19f1248f8de.tar.gz |
use gdk_cursor_unref instead of destroy
2000-01-30 Havoc Pennington <hp@pobox.com>
* gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
destroy
* gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
* gdk/gdkprivate.h: declare
_gdk_cursor_destroy which is then
implemented in platform-specific code
* gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
* gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy):
rename with an
underscore in front
* gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
put an underscore in front
* gdk/gdkcursor.c: new file, implements
gdk_cursor_ref/gdk_cursor_unref
* gdk/gdkcursor.h: Refcount GdkCursor
* gdk/gdkcompat.h
(gdk_cursor_destroy): compat
Diffstat (limited to 'gdk/gdkcursor.h')
-rw-r--r-- | gdk/gdkcursor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/gdkcursor.h b/gdk/gdkcursor.h index 14f6e4414d..fd28ce89f5 100644 --- a/gdk/gdkcursor.h +++ b/gdk/gdkcursor.h @@ -19,6 +19,7 @@ typedef enum struct _GdkCursor { GdkCursorType type; + guint refcount; }; /* Cursors @@ -30,7 +31,8 @@ GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source, GdkColor *bg, gint x, gint y); -void gdk_cursor_destroy (GdkCursor *cursor); +GdkCursor* gdk_cursor_ref (GdkCursor *cursor); +void gdk_cursor_unref (GdkCursor *cursor); #ifdef __cplusplus } |