[gtk/wip/baedert/for-master: 9/16] widget: Shorten get_halign() a bit
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 9/16] widget: Shorten get_halign() a bit
- Date: Wed, 13 Jan 2021 19:38:53 +0000 (UTC)
commit c3b1e7e8620cea432f4625bb3d7e06f84d9046f0
Author: Timm Bäder <mail baedert org>
Date: Sat Jan 9 15:16:13 2021 +0100
widget: Shorten get_halign() a bit
gtk/gtkwidget.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 6efcdccc4a..54e0b2fb88 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -9120,14 +9120,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;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]