mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Use accessor functions to access GtkAlignment
This commit is contained in:
parent
e1184e362c
commit
5828453ae5
@ -647,10 +647,17 @@ maybe_set_alignment (GtkButton *button,
|
||||
else if (GTK_IS_ALIGNMENT (widget))
|
||||
{
|
||||
GtkAlignment *alignment = GTK_ALIGNMENT (widget);
|
||||
gfloat xscale, yscale;
|
||||
|
||||
g_object_get (alignment,
|
||||
"xscale", &xscale,
|
||||
"yscale", &yscale,
|
||||
NULL);
|
||||
|
||||
if (priv->align_set)
|
||||
gtk_alignment_set (alignment, priv->xalign, priv->yalign,
|
||||
alignment->xscale, alignment->yscale);
|
||||
gtk_alignment_set (alignment,
|
||||
priv->xalign, priv->yalign,
|
||||
xscale, yscale);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user