diff options
author | Manish Singh <yosh@gimp.org> | 2005-06-18 11:25:14 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2005-06-18 11:25:14 +0000 |
commit | 8e3ea42aba01c5f784b4d356b7651cb33171cf03 (patch) | |
tree | 01ba57a5ab83b688ab44340c79d431cf4951baba /gdk/gdkcursor.c | |
parent | 21227561890c0b193806d04c5d1e0a73269a9b79 (diff) | |
download | gtk+-8e3ea42aba01c5f784b4d356b7651cb33171cf03.tar.gz |
remove GDK_CURSOR and GDK_IS_CURSOR, instance checks don't work on boxed
Sat Jun 18 04:22:51 2005 Manish Singh <yosh@gimp.org>
* gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
checks don't work on boxed types.
* gdk/x11/gdkcursor-x11.c:
* gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
GDK_IS_CURSOR.
Diffstat (limited to 'gdk/gdkcursor.c')
-rw-r--r-- | gdk/gdkcursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c index 2902ff10e5..1038d73479 100644 --- a/gdk/gdkcursor.c +++ b/gdk/gdkcursor.c @@ -53,7 +53,7 @@ gdk_cursor_get_type (void) GdkCursor* gdk_cursor_ref (GdkCursor *cursor) { - g_return_val_if_fail (GDK_IS_CURSOR (cursor), NULL); + g_return_val_if_fail (cursor != NULL, NULL); g_return_val_if_fail (cursor->ref_count > 0, NULL); cursor->ref_count += 1; @@ -72,7 +72,7 @@ gdk_cursor_ref (GdkCursor *cursor) void gdk_cursor_unref (GdkCursor *cursor) { - g_return_if_fail (GDK_IS_CURSOR (cursor)); + g_return_if_fail (cursor != NULL); g_return_if_fail (cursor->ref_count > 0); cursor->ref_count -= 1; |