problems with sizing of widgets




Hello,

I'm using the stock GTK 0.99.970925 (from RH 5.0) to develop an MPEG audio
player. I want to display some frame information (time elapsed, etc). I
tried using a label widget, but it flashes horribly when updated; in my
"old" toolkit (XForms) this could be fixed by turning on
double-buffering.. can this be done in GTK?

So I decided to use an entry widget. The problem is that the entry widget
consumes too much space. I want it to be smaller, but it does not obey
gtk_set_widget_usize(). I am packing everything into a table (I don't use
the packing boxes, too confusing as I am a GTK newbie).

I've tried gtk_table_attach_defaults(), gtk_table_attach (.. GTK_SHRINK,
GTK_SHRINK, ..) as well as other permutations. I've even tried putting my
slider inside its own table in the hope that the table is more aggressive
at grabbing space than the entry.. still nothing.

If you can help, you can check out what it looks like here:
 http://lilith.mozcom.com/~orly/gtk123.gif

Thanks!


Cheers,
Orly




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