* natural widths, the start and end widgets start shrinking and the
* center child keeps natural width until they reach minimum width.
*
- * If set to `TRUE`, start and end widgets keep natural width and the
+ * If set to `FALSE`, start and end widgets keep natural width and the
* center widget starts shrinking instead.
*
* Since: 4.12
*/
props[PROP_SHRINK_CENTER_LAST] =
g_param_spec_boolean ("shrink-center-last", NULL, NULL,
- FALSE,
+ TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_properties (object_class, LAST_PROP, props);
* natural widths, the start and end widgets start shrinking and the
* center child keeps natural width until they reach minimum width.
*
- * If set to `TRUE`, start and end widgets keep natural width and the
+ * If set to `FALSE`, start and end widgets keep natural width and the
* center widget starts shrinking instead.
*
* Since: 4.12
avail = size - needed_spacing - (sizes[0].minimum_size + sizes[2].minimum_size);
if (self->shrink_center_last)
- natural_size = CLAMP (size - needed_spacing - (sizes[0].natural_size + sizes[2].natural_size), sizes[1].minimum_size, sizes[1].natural_size);
- else
natural_size = sizes[1].natural_size;
+ else
+ natural_size = CLAMP (size - needed_spacing - (sizes[0].natural_size + sizes[2].natural_size), sizes[1].minimum_size, sizes[1].natural_size);
center_size = CLAMP (avail, sizes[1].minimum_size, natural_size);
center_expand = gtk_widget_compute_expand (self->center_widget, self->orientation);
* natural widths, the start and end widgets start shrinking and the
* center child keeps natural width until they reach minimum width.
*
- * If set to `TRUE`, start and end widgets keep natural width and the
+ * If set to `FALSE`, start and end widgets keep natural width and the
* center widget starts shrinking instead.
*
* Since: 4.12
*/
props[PROP_SHRINK_CENTER_LAST] =
g_param_spec_boolean ("shrink-center-last", NULL, NULL,
- FALSE,
+ TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_properties (object_class, LAST_PROP, props);
{
self->orientation = GTK_ORIENTATION_HORIZONTAL;
self->baseline_pos = GTK_BASELINE_POSITION_CENTER;
+ self->shrink_center_last = TRUE;
}
/**
* natural widths, the start and end widgets start shrinking and the
* center child keeps natural width until they reach minimum width.
*
- * If set to `TRUE`, start and end widgets keep natural width and the
+ * If set to `FALSE`, start and end widgets keep natural width and the
* center widget starts shrinking instead.
*
* Since: 4.12