changeset 533:a284fde5d471

Correctly implemented DW_POINTER_DEFAULT on Unix.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 23 Mar 2004 21:04:08 +0000
parents 1e60e98a9168
children 222b0f32e7c9
files gtk/dw.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/dw.c	Tue Mar 23 20:55:18 2004 +0000
+++ b/gtk/dw.c	Tue Mar 23 21:04:08 2004 +0000
@@ -2750,11 +2750,14 @@
 		GdkPixmap  *pixmap = _find_private_pixmap(&bitmap, (pointertype & 0xFFFFFF), NULL, NULL);
 		cursor = gdk_cursor_new_from_pixmap(pixmap, (GdkPixmap *)bitmap, &_colors[DW_CLR_WHITE], &_colors[DW_CLR_BLACK], 8, 8);
 	}
+	else if(!pointertype)
+		cursor = NULL;
 	else
 		cursor = gdk_cursor_new(pointertype);
 	if(handle && handle->window)
 		gdk_window_set_cursor(handle->window, cursor);
-	gdk_cursor_destroy(cursor);
+	if(cursor)
+		gdk_cursor_destroy(cursor);
 	DW_MUTEX_UNLOCK;
 }