Re: Windows sizing problem



Hi Marco,

On 23 Jul 2002, Marco Pesenti Gritti wrote:
> 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.

Did you try to use gtk_window_set_default_size? This worked for my in eye
of gnome, where we had a similar problem.

Regards,

   Jens

-- 
 -= http://triq.net/~pearl =-   -= jens triq net =-




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