Re: Question about type casting.
- From: Tristan Van Berkom <tristan van berkom gmail com>
- To: DC A <adc4444 hotmail com>
- Cc: gtk-list gnome org
- Subject: Re: Question about type casting.
- Date: Sat, 08 Oct 2005 03:02:56 -0400
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]