widget 'allocation' question



Here is my screen widgets hierarchy:

GtkTable -
    GtkEventBox -
        GtkLayout -

I create a GtkTable first and set_usize/show, then pack GtkEventBox in
and and set_usize/show. After this, I want to pack a GtkLayout into the
GtkEventBox and want the GtkLayout to use up the max space of
GtkEventBox, but the allocation.width or allocation.height are always
'1', and requisition.width or requisition.height are always '0'. Can
somebody help me out?

Thanks

Yanxin




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