summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2005-06-18 11:25:14 +0000
committerManish Singh <yosh@src.gnome.org>2005-06-18 11:25:14 +0000
commit8e3ea42aba01c5f784b4d356b7651cb33171cf03 (patch)
tree01ba57a5ab83b688ab44340c79d431cf4951baba
parent21227561890c0b193806d04c5d1e0a73269a9b79 (diff)
downloadgdk-pixbuf-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.
-rw-r--r--ChangeLog9
-rw-r--r--ChangeLog.pre-2-109
-rw-r--r--ChangeLog.pre-2-89
-rw-r--r--gdk/gdkcursor.c4
-rw-r--r--gdk/gdkcursor.h2
-rw-r--r--gdk/x11/gdkcursor-x11.c14
6 files changed, 36 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index da46dfa41..28bae282d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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.
+
Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
* gtk/gtktreeview.c (do_presize_handler): remove unused variable
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index da46dfa41..28bae282d 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,12 @@
+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.
+
Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
* gtk/gtktreeview.c (do_presize_handler): remove unused variable
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index da46dfa41..28bae282d 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,12 @@
+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.
+
Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
* gtk/gtktreeview.c (do_presize_handler): remove unused variable
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c
index 2902ff10e..1038d7347 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;
diff --git a/gdk/gdkcursor.h b/gdk/gdkcursor.h
index 086f55e70..ed93ccb98 100644
--- a/gdk/gdkcursor.h
+++ b/gdk/gdkcursor.h
@@ -7,8 +7,6 @@
G_BEGIN_DECLS
#define GDK_TYPE_CURSOR (gdk_cursor_get_type ())
-#define GDK_CURSOR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_CURSOR, GdkCursor))
-#define GDK_IS_CURSOR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_CURSOR))
/* Cursor types.
*/
diff --git a/gdk/x11/gdkcursor-x11.c b/gdk/x11/gdkcursor-x11.c
index c4b07d5e6..c816b5d65 100644
--- a/gdk/x11/gdkcursor-x11.c
+++ b/gdk/x11/gdkcursor-x11.c
@@ -255,7 +255,7 @@ _gdk_cursor_destroy (GdkCursor *cursor)
{
GdkCursorPrivate *private;
- g_return_if_fail (GDK_IS_CURSOR (cursor));
+ g_return_if_fail (cursor != NULL);
g_return_if_fail (cursor->ref_count == 0);
private = (GdkCursorPrivate *) cursor;
@@ -277,7 +277,7 @@ _gdk_cursor_destroy (GdkCursor *cursor)
Display *
gdk_x11_cursor_get_xdisplay (GdkCursor *cursor)
{
- g_return_val_if_fail (GDK_IS_CURSOR (cursor), NULL);
+ g_return_val_if_fail (cursor != NULL, NULL);
return GDK_DISPLAY_XDISPLAY(((GdkCursorPrivate *)cursor)->display);
}
@@ -293,7 +293,7 @@ gdk_x11_cursor_get_xdisplay (GdkCursor *cursor)
Cursor
gdk_x11_cursor_get_xcursor (GdkCursor *cursor)
{
- g_return_val_if_fail (GDK_IS_CURSOR (cursor), None);
+ g_return_val_if_fail (cursor != NULL, None);
return ((GdkCursorPrivate *)cursor)->xcursor;
}
@@ -312,7 +312,7 @@ gdk_x11_cursor_get_xcursor (GdkCursor *cursor)
GdkDisplay *
gdk_cursor_get_display (GdkCursor *cursor)
{
- g_return_val_if_fail (GDK_IS_CURSOR (cursor), NULL);
+ g_return_val_if_fail (cursor != NULL, NULL);
return ((GdkCursorPrivate *)cursor)->display;
}
@@ -346,7 +346,7 @@ gdk_cursor_get_image (GdkCursor *cursor)
GdkPixbuf *pixbuf;
gchar *theme;
- g_return_val_if_fail (GDK_IS_CURSOR (cursor), NULL);
+ g_return_val_if_fail (cursor != NULL, NULL);
private = (GdkCursorPrivate *) cursor;
@@ -498,7 +498,7 @@ gdk_x11_display_set_cursor_theme (GdkDisplay *display,
GdkPixbuf*
gdk_cursor_get_image (GdkCursor *cursor)
{
- g_return_val_if_fail (GDK_IS_CURSOR (cursor), NULL);
+ g_return_val_if_fail (cursor != NULL, NULL);
return NULL;
}
@@ -514,7 +514,7 @@ gdk_x11_display_set_cursor_theme (GdkDisplay *display,
void
_gdk_x11_cursor_update_theme (GdkCursor *cursor)
{
- g_return_if_fail (GDK_IS_CURSOR (cursor));
+ g_return_if_fail (cursor != NULL);
}
#endif