469,353 Members | 2,066 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,353 developers. It's quick & easy.

Setting optimum gtkhtml2 widget size.

Sam
I'm putting gtkhtml2.View() inside a gtk.ScrolledWindow, which goes into a
gtk.Dialog.vbox.

How do I obtain gtkhtml2.View's preferred height, and set the dialog's
height accordingly, given a specific width?

I can do a gtk.Dialog.set_default_size() up front, specifying the width and
height large enough for everything, then create all the widgets, and realize
them.

But then, even after I realize everything I can't get any useful metrics
from gtkhtml2.View(). None of the usual suspects -- get_size_request,
get_allocation -- give anything useful.

I also tried not using a ScrolledWindow, but adding gtkhtml2 as
gtk.Dialog.vbox's child.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQBDP/HYx9p3GYHlUOIRAh0/AJ0SgdREJa2/i+EhYcppwW7E1FCliQCfa1+7
j9pxMsFg4UF+owokaeXF7P0=
=TAPv
-----END PGP SIGNATURE-----

Oct 2 '05 #1
0 948

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Boris ©avc | last post: by
reply views Thread by T. Kaufmann | last post: by
7 posts views Thread by Jane Austine | last post: by
2 posts views Thread by Tonino | last post: by
6 posts views Thread by William Gill | last post: by
1 post views Thread by Erik Hendrix | last post: by
3 posts views Thread by Anurag | last post: by
2 posts views Thread by Kubuli John | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.