Re: [gtk-list] Setting size of widget problem...



>    I was using gtk_widget_set_usize to set the size of some widgets, but
> the only problem I see is that it sets a minimum size restriction of the
> widget. In an app of mine, before it is closed it saves the size of some
> widgets, and next time it starts up, it'll retrieve this size, and use
> gtk_widget_set_usize to set the sizes back. So, if the user maximizes the
> program, and then closes it, next time they start it back up, it is still
> this size, and they can't shrink it. I have tried setting the values of
> the allocation fields for the widget, and doing a gtk_widget_quue_resize,
> but this don't do anything. What is the proper way for me to do this? I

Try gtk_window_set_policy().

Best, --josh

----------------------------------------------------------------
                       Joshua Richardson
Dept. Cognitive and Neural Systems / Center for Adaptive Systems
                       Boston University
----------------------------------------------------------------



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