gtk has casting macros allow change gtk object's type:
gtk_widget(gtktoolbox);
glib works in similar way (as far can tell) can't find macros data types:
g_int(); // doesn't work gint(); // doesn't work // etc
what glib casting macros? or should use (type) variable
instead?
i thought whole point of these macros make less risky? or did apply gtk objects because of complex type?
gtk+ uses magic dynamic type checking , type safe casts. http://openbooks.sourceforge.net/books/wga/gtk.html#aen194 works gtk objects, not primitive types, int. use (int) var
instead.
Comments
Post a Comment