[gtk+] Use accessor functions to access GtkAlignment
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Use accessor functions to access GtkAlignment
- Date: Tue, 13 Jul 2010 23:55:20 +0000 (UTC)
commit 5828453ae5fa74186fed5098093aa7f028746ce7
Author: Javier Jardón <jjardon gnome org>
Date: Wed Jul 14 01:45:55 2010 +0200
Use accessor functions to access GtkAlignment
gtk/gtkbutton.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 9785e8d..9b2f475 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]