Yes it doesn't complain when the arguments are like this:
gtk_menu_bar_append(GTK_MENU_BAR(menu_bar), file_item);
or like this:
gtk_menu_bar_append(menu_bar, file_item);
But when i use the following line compiler complains:
gtk_menu_bar_append(GTK_MENU_BAR(menu_bar), GTK_MENU_ITEM(file_item));
Why's compiler complaining? Is there any way to know when to use type
casting and when not to for arguments of macro? Do i have to
write-compile-run each time in order to know which combination works
correctly? Or is there a better way to know for sure?
Thanks for your time.
_______________________________________________
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list