#include "config.h"
#include "gdkcursor.h"
-#include "gdkwin32.h"
+#include "gdkinternals.h"
+#include "gdkprivate-win32.h"
static const struct { const char *name; int type; } cursors[] = {
{ "x_cursor", 0 },
{
xcursor = LoadCursor (gdk_DLLInstance, cursors[i].name);
if (xcursor == NULL)
- g_warning ("gdk_cursor_new: LoadCursor failed");
+ WIN32_API_FAILED ("LoadCursor");
GDK_NOTE (MISC, g_print ("gdk_cursor_new: %#x %d\n",
xcursor, cursor_type));
}
private->xcursor = xcursor;
cursor = (GdkCursor*) private;
cursor->type = cursor_type;
+ cursor->ref_count = 1;
return cursor;
}
private->xcursor = xcursor;
cursor = (GdkCursor*) private;
cursor->type = GDK_CURSOR_IS_PIXMAP;
-
+ cursor->ref_count = 1;
+
return cursor;
}
g_return_if_fail (cursor != NULL);
private = (GdkCursorPrivate *) cursor;
- GDK_NOTE (MISC, g_print ("gdk_cursor_destroy: %#x\n",
+ GDK_NOTE (MISC, g_print ("_gdk_cursor_destroy: %#x\n",
(cursor->type == GDK_CURSOR_IS_PIXMAP) ? private->xcursor : 0));
if (cursor->type == GDK_CURSOR_IS_PIXMAP)
if (!DestroyIcon (private->xcursor))
- g_warning ("gdk_cursor_destroy: DestroyIcon failed");
+ WIN32_API_FAILED ("DestroyIcon");
g_free (private);
}