minor cleanups and merges

This commit is contained in:
Tim Janik
1998-05-10 05:19:00 +00:00
parent f75d8b0c23
commit 315affdfcb
5 changed files with 34 additions and 20 deletions

View File

@ -55,10 +55,10 @@ extern "C" {
/* Determines whether `obj' and `klass' are a type of `otype'.
*/
#define GTK_CHECK_TYPE(obj,otype) ( \
GTK_TYPE_IS_A (((GtkObject*) (obj))->klass->type, (otype)) \
gtk_type_is_a (((GtkObject*) (obj))->klass->type, (otype)) \
)
#define GTK_CHECK_CLASS_TYPE(klass,otype) ( \
GTK_TYPE_IS_A (((GtkObjectClass*) (klass))->type, (otype)) \
gtk_type_is_a (((GtkObjectClass*) (klass))->type, (otype)) \
)
/* Macro for casting a pointer to a GtkObject or GtkObjectClass pointer.