Commit 733a590f authored by Matthias Clasen's avatar Matthias Clasen

GtkButton: warn slightly less

Use gtk_misc_set_alignment when setting x/align on button children
where possible, to avoid the runtime warning that g_object_set
incurs nowadays.
parent 4287e44a
......@@ -702,7 +702,9 @@ maybe_set_alignment (GtkButton *button,
if (GTK_IS_MISC (widget) || GTK_IS_ALIGNMENT (widget))
if (GTK_IS_MISC (widget))
gtk_misc_set_alignment (GTK_MISC (widget), priv->xalign, priv->yalign);
else if (GTK_IS_ALIGNMENT (widget))
g_object_set (widget, "xalign", priv->xalign, "yalign", priv->yalign, NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment