widget: Shorten get_halign() a bit

This commit is contained in:
Timm Bäder 2021-01-09 15:16:13 +01:00
parent b1c8613dbe
commit 872b46a527

View File

@ -9123,14 +9123,12 @@ GtkAlign
gtk_widget_get_halign (GtkWidget *widget)
{
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
GtkAlign align;
g_return_val_if_fail (GTK_IS_WIDGET (widget), GTK_ALIGN_FILL);
align = priv->halign;
if (align == GTK_ALIGN_BASELINE)
if (priv->halign == GTK_ALIGN_BASELINE)
return GTK_ALIGN_FILL;
return align;
return priv->halign;
}
/**