To get the height and width of a GtkEventBox, I tried the following:

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); //getting 0

What function will give you the actual displayed height and width of the widget?

c gtk
Edit
Report