Re: icewm: patch about aspect ratio



Chi-Deok Hwang wrote:
> 
> Hi!,
> if we use gtk_window_set_geometry_hints to set "aspect ratio" bound in gtk
> programs, it didn't work in icewm.
> Problem seems to be overflow in wmclient.cc's code.
> Following patch works for me.

Hmm. I don't like to use floats here. They could lead to some rounding
problems.
IMO gtk+ is stupid here. There is absolutely no sense in using numbers
larger
than 32767 (max window width/height). Perhaps some normalization could
be done.
Why is gtk using such large numbers?

> If you want my test program, I will send it. It was made with pygtk.

Please, thanks.

Mark
-- 
... GUI: WPS.
------------------------------------------------------------------------
Marko.Macek@gmx.net                 http://www.kiss.uni-lj.si/~k4fr0235/




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