Re: getting real widget sizes how and when

2005-07-19 Thread Karl H. Beckers
Tristan Van Berkom schrieb: [...] Yes, "configure-event" should work for you, its emitted for resizes in general, but I believe there is an initial configure-event fired at allocation time. yup ... works, moving stuff to an event handler (actually I'm using size-allocate) and adding twice

Re: getting real widget sizes how and when

2005-07-18 Thread Karl H. Beckers
Tristan Van Berkom wrote: Karl H. Beckers wrote: Hi all, Hi, I'm afraid I havent the time to try and deciepher your email, I can see that your having trouble getting the allocated size of your widgets in a viewport. There is a good chance that a widget will never get an allocation unt

Re: getting real widget sizes how and when

2005-07-18 Thread Tristan Van Berkom
Karl H. Beckers wrote: [...] So maybe the solution to your problem is: "Widgets in an area of a GtkViewport that is not shown (i.e. not in part of the scrolled window) /dont have a size/". Well, I've realized that and AM doing a gtk_widget_show before attempting to get the sizes. But the dialo

Re: getting real widget sizes how and when

2005-07-18 Thread Tristan Van Berkom
Karl H. Beckers wrote: Hi all, Hi, I'm afraid I havent the time to try and deciepher your email, I can see that your having trouble getting the allocated size of your widgets in a viewport. There is a good chance that a widget will never get an allocation untill its actualy shown. I'm not

getting real widget sizes how and when

2005-07-15 Thread Karl H. Beckers
Hi all, * second attempt ... first mail seems not to have come through * I have this strange problem with resizing a viewport. Reducing it to the elementary stuff, I'm doing and getting this: - create a viewport - put a vbox in it - put (for the time being) a single widget in the vbox - show ev

getting real widget sizes how and when

2005-07-13 Thread Karl H. Beckers
Hi all, I have this strange problem with resizing a viewport. Reducing it to the elementary stuff, I'm doing and getting this: - create a viewport - put a vbox in it - put (for the time being) a single widget in the vbox - show everything - reduce the viewport's height to conserve space if the wi