init refcount to 1 (gdk_cursor_new): init refcount to 1

2000-02-13  Havoc Pennington  <hp@pobox.com>

	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
		refcount to 1
			(gdk_cursor_new): init refcount to 1

				* gdk/win32/gdkcursor-win32.c
(gdk_cursor_new): init refcount to 1
This commit is contained in:
Havoc Pennington 2000-02-13 20:22:20 +00:00 committed by Havoc Pennington
parent ff99eb7cc1
commit 95a9052d56
9 changed files with 62 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2000-02-13 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
refcount to 1
(gdk_cursor_new): init refcount to 1
* gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
2000-02-13 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter

View File

@ -1,3 +1,11 @@
2000-02-13 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
refcount to 1
(gdk_cursor_new): init refcount to 1
* gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
2000-02-13 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter

View File

@ -1,3 +1,11 @@
2000-02-13 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
refcount to 1
(gdk_cursor_new): init refcount to 1
* gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
2000-02-13 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter

View File

@ -1,3 +1,11 @@
2000-02-13 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
refcount to 1
(gdk_cursor_new): init refcount to 1
* gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
2000-02-13 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter

View File

@ -1,3 +1,11 @@
2000-02-13 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
refcount to 1
(gdk_cursor_new): init refcount to 1
* gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
2000-02-13 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter

View File

@ -1,3 +1,11 @@
2000-02-13 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
refcount to 1
(gdk_cursor_new): init refcount to 1
* gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
2000-02-13 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter

View File

@ -1,3 +1,11 @@
2000-02-13 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
refcount to 1
(gdk_cursor_new): init refcount to 1
* gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
2000-02-13 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter

View File

@ -251,7 +251,8 @@ gdk_cursor_new_from_pixmap (GdkPixmap *source,
private->xcursor = xcursor;
cursor = (GdkCursor*) private;
cursor->type = GDK_CURSOR_IS_PIXMAP;
cursor->ref_count = 1;
return cursor;
}

View File

@ -43,7 +43,8 @@ gdk_cursor_new (GdkCursorType cursor_type)
private->xcursor = xcursor;
cursor = (GdkCursor*) private;
cursor->type = cursor_type;
cursor->ref_count = 1;
return cursor;
}
@ -83,7 +84,8 @@ gdk_cursor_new_from_pixmap (GdkPixmap *source,
private->xcursor = xcursor;
cursor = (GdkCursor *) private;
cursor->type = GDK_CURSOR_IS_PIXMAP;
cursor->ref_count = 1;
return cursor;
}