diff options
author | Timm Bäder <mail@baedert.org> | 2021-01-09 15:16:13 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2021-01-17 04:39:26 +0100 |
commit | 872b46a527e0ce6cd9fb44384be0d773310a280d (patch) | |
tree | 6d68b8351dac397b3305739fdda57a1b38dcf5f1 | |
parent | b1c8613dbe013dfcc48506128304defd56a71fef (diff) | |
download | gtk+-872b46a527e0ce6cd9fb44384be0d773310a280d.tar.gz |
widget: Shorten get_halign() a bit
-rw-r--r-- | gtk/gtkwidget.c | 6 |
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; } /** |