#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->refcount = 1;
+ cursor->ref_count = 1;
return cursor;
}
private->xcursor = xcursor;
cursor = (GdkCursor*) private;
cursor->type = GDK_CURSOR_IS_PIXMAP;
-
+ cursor->ref_count = 1;
+
return cursor;
}
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);
}