Re: Size of widget



Fredrik Rambris <fredrik rambris com> writes: 
WOW! Not that was exactly what I was looking for. It works great!
Document it and add it to GTK.

Well, it's not that simple. If only 3% of apps will use it, it's
probably more appropriate for an add-on library than GTK proper.
But glad it worked. ;-)

Speaking of widgetsizes. How can I set a fixed size (like images have)
on a widget?

gtk_widget_set_usize()

And while we're at it. A reliable way of reading the current size of a
widget would be nice to have. The size allocation thingy don't have
values that makes sense to me.


widget->allocation.width, widget->allocation.height is the current
widget->size of the widget. It's totally reliable.

If it doesn't seem reliable, it's because the size of widgets
_changes_ over time.

Havoc





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