Re: [gtk-list] how can i find size of g[t|d]k window?



On Thu, 17 Jun 1999, brent verner wrote:

Hello,

> i would like to know the size of a gtk window _before_ it is 
> shown, is there any way to do this? i'm using
> 
>     gdk_window_get_size( (GdkWindow *)(child), &wCt, &hCt );
> 
> but this returns a size of 1x1 until the window is shown. i 
> tried realizing the widget, but that did not help. any ideas?

use gtk_widget_size_request() function instead

Regards,
Stevo.

---
Stefan Ondrejicka <ondrej@idata.sk>
http://www.idata.sk/~ondrej/



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