#if GLIB_CHECK_VERSION(2, 10, 0) /* g_object_ref_sink() was added in glib 2.10: */
g_object_ref_sink (G_OBJECT (cell));
#else
+ g_object_ref (G_OBJECT (cell));
gtk_object_sink (GTK_OBJECT (cell));
#endif
}
GList *node = NULL;
GtkCellRenderer *child;
gint height, extra;
- GtkRequisition req;
direction = gtk_widget_get_direction (widget);
nvis_children = 0;
nexpand_children = 0;
- /* first, retrieve the requisition of the children cell renderers */
- modest_vbox_cell_renderer_get_size (cell, widget, NULL, NULL, NULL, &(req.width), &(req.height));
/* Counts visible and expandable children cell renderers */
for (node = priv->renderers_list; node != NULL; node = g_list_next (node)) {
GdkRectangle child_alloc;
if (nexpand_children > 0) {
+ GtkRequisition req;
+
+ modest_vbox_cell_renderer_get_size (cell, widget, NULL, NULL, NULL, &(req.width), &(req.height));
height = cell_area->height - req.height;
extra = height / nexpand_children;
} else {