howto compare two GTypes



hi, I have a list of objects and a type I want to find in it. I did the
following but it didn't work. What's wrong?

GType type;

type = GTK_TYPE_WINDOW;

if(G_OBJECT_TYPE(list->data) == type)
 printf("doesn't work\n\0");




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]