From: Havoc Pennington Date: Sun, 13 Feb 2000 20:22:20 +0000 (+0000) Subject: init refcount to 1 (gdk_cursor_new): init refcount to 1 X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=95a9052d561b824e6071c6e8ee24fb1fe07b7b8a;p=~andy%2Fgtk init refcount to 1 (gdk_cursor_new): init refcount to 1 2000-02-13 Havoc Pennington * 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 --- diff --git a/ChangeLog b/ChangeLog index 5a6ec241e..07bc6cf16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-02-13 Havoc Pennington + + * 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 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 5a6ec241e..07bc6cf16 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,11 @@ +2000-02-13 Havoc Pennington + + * 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 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5a6ec241e..07bc6cf16 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,11 @@ +2000-02-13 Havoc Pennington + + * 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 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 5a6ec241e..07bc6cf16 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,11 @@ +2000-02-13 Havoc Pennington + + * 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 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 5a6ec241e..07bc6cf16 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,11 @@ +2000-02-13 Havoc Pennington + + * 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 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 5a6ec241e..07bc6cf16 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,11 @@ +2000-02-13 Havoc Pennington + + * 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 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5a6ec241e..07bc6cf16 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,11 @@ +2000-02-13 Havoc Pennington + + * 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 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter diff --git a/gdk/win32/gdkcursor-win32.c b/gdk/win32/gdkcursor-win32.c index 576e646f9..ab0968a9b 100644 --- a/gdk/win32/gdkcursor-win32.c +++ b/gdk/win32/gdkcursor-win32.c @@ -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; } diff --git a/gdk/x11/gdkcursor-x11.c b/gdk/x11/gdkcursor-x11.c index 85b5ee56a..d0a580ccc 100644 --- a/gdk/x11/gdkcursor-x11.c +++ b/gdk/x11/gdkcursor-x11.c @@ -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; }