I wish I choose the right list to post my question and this would not bothering you.
I am learning gtk+ programming these days, on a debian squeeze platform. Almost all the document I have found teaches me that I should create a widget with gtk_<wiget name>_new(). However, any properties of a widget can be set by g_object_set(). So, I suppose that any widgets can be created by g_object_new(), since gtk+ is an OO development tool kit.
Finally, I find that a window can be created with g_object_new(GTK_TYPE_WINDOW, NULL), a button can be created with g_object_new(GTK_TYPE_BUTTON, NULL). But I cannot find out what the GTK_TYPE_* mean. I have searched the API documentation, but cannot find GTK_TYPE_WINDOW or GTK_TYPE_BUTTON etc.
Is that right using g_object_new(GTK_TYPE_WINDOW, NULL) to create a window? Is that an old way to create window and should not be used in newly written code?
If I can use that method to create widgets, where can I find documents about all the GTK_TYPE_*?
Thanks.
dingshaoheng
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list