Re: Howto set maximum window size ?



>set_geometry_hints(???, geometry, Gdk::HINT_MAX_SIZE);
>.
>.
>.
>
>Now I don't know what to use here, the "window.gobj()" is clearly not=20
>working.

you can't do this until the widget (main window) has been
realized. until that time, its just a data structure in your program -
the X server doesn't know anything about it and no window actually
exists. 

add a handler for the realize event, and do this there.

--p



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