mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
spinner: Behave like any other icon
Take the size from -gtk-icon-size. Note that min-width/height still works, as those properties are handled by the generic widget sizing machinery in GTK4.
This commit is contained in:
parent
c0f54f899d
commit
e6c4dbfc6d
@ -91,20 +91,10 @@ gtk_spinner_measure (GtkWidget *widget,
|
||||
int *minimum_baseline,
|
||||
int *natural_baseline)
|
||||
{
|
||||
double min_size;
|
||||
GtkCssStyle *style;
|
||||
|
||||
style = gtk_css_node_get_style (gtk_widget_get_css_node (widget));
|
||||
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
min_size = _gtk_css_number_value_get (style->size->min_width, 100);
|
||||
else
|
||||
min_size = _gtk_css_number_value_get (style->size->min_height, 100);
|
||||
|
||||
if (min_size > 0.0)
|
||||
*minimum = *natural = min_size;
|
||||
else
|
||||
*minimum = *natural = DEFAULT_SIZE;
|
||||
*minimum = *natural = _gtk_css_number_value_get (style->icon->icon_size, 100);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user