Re: Size of widget
- From: learfox furry ao net
- To: Fredrik Rambris <fredrik rambris com>
- Cc: GTK Application Development List <gtk-app-devel-list gnome org>
- Subject: Re: Size of widget
- Date: Thu, 4 Jan 2001 18:17:51 -0800 (PST)
learfox> When yer definatly sure the widget has the right size you want,
learfox> use
Another alternative is to insure your window exists with gtk_widget_realize()
and then call gtk_window_get_size() for the width and height. Notice that one
is "widget" and the other "window".
there isn't a function called gtk_window_get_size. I've searched both
docs and includes.
I thought you wanted the size of the widget? not the window?
The window geometry fetching function returns the size of the GtkWidget's
window *if* it has a window.
w = GTK_WIDGET(da);
if(!GTK_WIDGET_NO_WINDOW(w))
{
gdk_window_get_geometry(
w->window,
&x, &y, &width, &height,
&depth
);
}
--
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
..__ ,_JNMNNEO=_ /|\
OMNOUMmnne. {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
http://furry.ao.net/~learfox/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]