Re: [gtk-list] GtkWindow ?????




On Fri, 4 Dec 1998, Yoel Benitez Fonseca wrote:
> 
>  I don't know where is my error, It want to move the GtkWindow and give
> it another measures, the following is a portion of what I tried to do:
> 
>       gdk_window_move( (GdkWindow*)GTK_WINDOW(window), bounds->x, bounds->y );
>       gdk_window_resize( (GdkWindow*)GTK_WINDOW(window), bounds->width, 
>                                                          bounds->high);      
> 

GdkWindow and GtkWindow are different types, so you are doing something
Very Bad. If the compiler won't compile something, adding casts is
generally not the best solution. ;-)

Havoc




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