summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2021-01-09 15:16:13 +0100
committerTimm Bäder <mail@baedert.org>2021-01-17 04:39:26 +0100
commit872b46a527e0ce6cd9fb44384be0d773310a280d (patch)
tree6d68b8351dac397b3305739fdda57a1b38dcf5f1
parentb1c8613dbe013dfcc48506128304defd56a71fef (diff)
downloadgtk+-872b46a527e0ce6cd9fb44384be0d773310a280d.tar.gz
widget: Shorten get_halign() a bit
-rw-r--r--gtk/gtkwidget.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 45a3720b18..f37f1ddd9b 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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;
}
/**