Use accessor functions to access GtkAlignment

This commit is contained in:
Javier Jardón
2010-07-14 01:45:55 +02:00
parent e1184e362c
commit 5828453ae5

View File

@ -647,10 +647,17 @@ maybe_set_alignment (GtkButton *button,
else if (GTK_IS_ALIGNMENT (widget)) else if (GTK_IS_ALIGNMENT (widget))
{ {
GtkAlignment *alignment = GTK_ALIGNMENT (widget); GtkAlignment *alignment = GTK_ALIGNMENT (widget);
gfloat xscale, yscale;
g_object_get (alignment,
"xscale", &xscale,
"yscale", &yscale,
NULL);
if (priv->align_set) if (priv->align_set)
gtk_alignment_set (alignment, priv->xalign, priv->yalign, gtk_alignment_set (alignment,
alignment->xscale, alignment->yscale); priv->xalign, priv->yalign,
xscale, yscale);
} }
} }