[Glade-users] Libglade

Tristan Van Berkom tristan.van.berkom at gmail.com
Tue Jul 21 12:02:12 EDT 2009


On Tue, Jul 21, 2009 at 7:17 AM, Peyman<paskari007 at yahoo.ca> wrote:
[...]
> the compiler throws a warning that I am passing incompatible pointer
> type for argument 1 (widget instead of window). So I cast it as such
>
> gtk_window_maximize ((GtkWindow *)widget);
>

That is correct, only usually in C/GTK+ we use the casts
with runtime type-checking like so:

gtk_window_maximize (GTK_WINDOW (widget));

Cheers,
          -Tristan


More information about the Glade-users mailing list