mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
arrow: Remove unneeded checks
Size vfuncs always get non-null out variables passed, so no need to check for NULL.
This commit is contained in:
parent
a1bba344f2
commit
e6b15c88ca
@ -201,11 +201,8 @@ gtk_arrow_get_preferred_width (GtkWidget *widget,
|
|||||||
|
|
||||||
_gtk_misc_get_padding_and_border (GTK_MISC (widget), &border);
|
_gtk_misc_get_padding_and_border (GTK_MISC (widget), &border);
|
||||||
|
|
||||||
if (minimum_size)
|
*minimum_size = MIN_ARROW_SIZE + border.left + border.right;
|
||||||
*minimum_size = MIN_ARROW_SIZE + border.left + border.right;
|
*natural_size = MIN_ARROW_SIZE + border.left + border.right;
|
||||||
|
|
||||||
if (natural_size)
|
|
||||||
*natural_size = MIN_ARROW_SIZE + border.left + border.right;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -217,11 +214,8 @@ gtk_arrow_get_preferred_height (GtkWidget *widget,
|
|||||||
|
|
||||||
_gtk_misc_get_padding_and_border (GTK_MISC (widget), &border);
|
_gtk_misc_get_padding_and_border (GTK_MISC (widget), &border);
|
||||||
|
|
||||||
if (minimum_size)
|
*minimum_size = MIN_ARROW_SIZE + border.top + border.bottom;
|
||||||
*minimum_size = MIN_ARROW_SIZE + border.top + border.bottom;
|
*natural_size = MIN_ARROW_SIZE + border.top + border.bottom;
|
||||||
|
|
||||||
if (natural_size)
|
|
||||||
*natural_size = MIN_ARROW_SIZE + border.top + border.bottom;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user