child = gtk_bin_get_child (GTK_BIN (layout));
/* common */
- gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (child), &bin_req, &bin_nat_req);
+ gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (child), FALSE, &bin_req, &bin_nat_req);
gtk_combo_box_remeasure (combo_box);
bin_req.width = MAX (bin_req.width, priv->minimum_size.width);
GtkRequisition but_req, but_nat_req;
gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (priv->button),
+ FALSE,
&but_req, &but_nat_req);
minimum_size->width = bin_req.width + but_req.width;
/* the button */
gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (priv->button),
+ FALSE,
&button_req, &button_nat_req);
minimum_size->width += button_req.width;
}
gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (bin->child),
- NULL, &natural_size);
+ TRUE, NULL, &natural_size);
_gtk_plug_windowing_publish_natural_size (GTK_PLUG (widget), &natural_size);
}
if (GTK_TREE_VIEW_FLAG_SET (tree_view, GTK_TREE_VIEW_HEADERS_VISIBLE))
{
gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (column->button),
- NULL, &button_natural_size);
+ TRUE, NULL, &button_natural_size);
column_natural_width = MAX (column_natural_width, button_natural_size.width);
}
"to widget->requisition. gtk_widget_set_usize() may not work properly.");
#endif /* G_ENABLE_DEBUG */
- gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (widget), requisition, NULL);
+ gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (widget), FALSE, requisition, NULL);
}
/**
gtk_widget_get_child_requisition (GtkWidget *widget,
GtkRequisition *requisition)
{
- gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (widget), requisition, NULL);
+ gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (widget), FALSE, requisition, NULL);
}
static gboolean
aux_info->height = height;
changed = TRUE;
}
-
- if (gtk_widget_get_visible (widget) && changed)
+
+ if (changed && gtk_widget_get_visible (widget))
gtk_widget_queue_resize (widget);
g_object_thaw_notify (G_OBJECT (widget));