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 /tests/testgtk.c | |
parent | 7d39971922e88caa0a1ac7a129a766929457b028 (diff) | |
download | gdk-pixbuf-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 'tests/testgtk.c')
-rw-r--r-- | tests/testgtk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index 5a3d9993b..c004a077f 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -3270,7 +3270,7 @@ set_cursor (GtkWidget *spinner, cursor = gdk_cursor_new (c); gdk_window_set_cursor (widget->window, cursor); - gdk_cursor_destroy (cursor); + gdk_cursor_unref (cursor); } static gint |