Windows sizing problem



I spent a lot of time trying to implement javascript popup sizing code
in galeon but I never got it working correctly. I could use some help by
someone more clued then me here :)

What I'd need is:

1 The window should be sized so that the embedded mozilla widget has a
given width/height
2 It should still be possible for the user to shrink the window
3 The embedded mozilla widget can change his size also after the window
has been showed, and window size should be updated.

Things that I already tried:
- Using gtk_widget_set_size_request on the mozilla widget make 2 not
work at all, and 3 fail when new width/height is smaller.
- Using gtk_window_resize seem to fit the requirements. But I couldnt
find a reliable way to calculate window size for the given mozilla
widget width/height.

I tried every kind of hacks to work around the problem but I didnt get
anything acceptable. Any help would be appreciated.
I hope there is a simple solution :)

Thanks
Marco




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