MAX (allocation->width - max_req.width, 0) / 2;
/* allocate frame */
- if (GTK_WIDGET_VISIBLE (priv->frame)) {
+ if (GTK_WIDGET_VISIBLE (widget)) {
gtk_widget_get_child_requisition (priv->frame, &req);
f_alloc.width = req.width;
}
/* allocate icon */
- if (GTK_WIDGET_VISIBLE (priv->d_button_image)) {
+ if (GTK_WIDGET_VISIBLE (widget)) {
gtk_widget_get_child_requisition (priv->d_button_image,
&req);