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

resizeproblem: solved (possible bug)



On 08/28/99, Havoc Pennington said:
>On 29 Aug 1999, Danny Dulai wrote:
>> before:
>> ---------
>> | 1 | 2 |
>> ---------
>> 
>> after hide(2):
>> 
>> ---------
>> | 1 |   |
>> ---------
>>
>
>Is your 1 packed with expand and fill set to TRUE? 
> 
>> desired after hide(2):
>> 
>> -------
>> |  1  |
>> -------
>> 
>
>If you want to center something, a GtkAlignment is often a good choice,
>perhaps pack 1 into an alignment. You'll need to pack with TRUE, TRUE
>though to get any effect.
>
>> Is there a signal I should be sending to widget 1 to tell it to wake up and
>> resize? or maybe the table?
>> 
>
>gtk_widget_queue_resize() on the child widget (widget 1) can force a
>resize, but it may not be necessary if you set expand/fill to TRUE.

Well, right now widget 1 is set to expand/fill, and when i resize the
widnow, it does expand itlsef and fill in the missing space left over by
widget 2. but it doesnt automaticly do it. I added a
gtk_widget_queue_resize(widget 1) and it works perfectly! thanks.

both of these widgets are in a table, and everything is set to expand, fill
and shrink. maybe this is a bug?


-- 
___________________________________________________________________________
Danny Dulai                                           Feet. Pumice. Lotion.
http://www.ishiboo.com/~nirva/                            nirva@ishiboo.com



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