Re: Question about type casting.



DC A wrote:
[...]
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?

gtk_menu_shell_append takes `GtkWidget *' as a second argument:
    http://developer.gnome.org/doc/API/2.0/gtk/GtkMenuShell.html#gtk-menu-shell-append

like I said, gtk_menu_bar_append is a deprecated alias, use gtk_menu_shell_append
instead; either way you need to use the type in the declared prototype.

Cheers,
                               -Tristan



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