[Glade-users] Libglade



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




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