Totally fed-up with get Gtk widget height and width.
Posted
by PP
on Stack Overflow
See other posts from Stack Overflow
or by PP
Published on 2010-04-20T13:40:08Z
Indexed on
2010/04/20
13:43 UTC
Read the original article
Hit count: 128
Trying to get Height and Width of GtkEventBox.
Tried following Things.
GtkRequisition requisition;
gtk_widget_get_child_requisition(widget, &requisition);
// Getting requisition.height 0
----------------------------------------------------------
widget->allocation-x //getting 0
widget->allocation-height //getting -1
----------------------------------------------------------
gtk_widget_get_size_request( widget, &height, &width); // Again getting 0
--------------------------------------------------------------------------
It is really bad that Gtk has not provided simple function that will give you the actual displayed height and with of the widget.
Anyone tried to get height and with of GtkWidget?
© Stack Overflow or respective owner