diff options
author | Tim Janik <timj@gtk.org> | 2001-09-10 14:59:49 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2001-09-10 14:59:49 +0000 |
commit | e083ca9e455bcffa5596e9603ee13e478519b8c6 (patch) | |
tree | 6942d01bd91af4a8c1146d0ac44128e79ed33d4d /gtk/gtkalignment.c | |
parent | 57a49aae1602c57dceb7ce017d86be8908b5d32e (diff) | |
download | gtk+-e083ca9e455bcffa5596e9603ee13e478519b8c6.tar.gz |
fix xscale and yscale behaviour which havoc broke. they have to default to
Mon Sep 10 16:55:49 2001 Tim Janik <timj@gtk.org>
* gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
behaviour which havoc broke. they have to default to 1.0 for
expand behaviour.
* gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
Diffstat (limited to 'gtk/gtkalignment.c')
-rw-r--r-- | gtk/gtkalignment.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkalignment.c b/gtk/gtkalignment.c index f4eaa1c08a..44c759dab3 100644 --- a/gtk/gtkalignment.c +++ b/gtk/gtkalignment.c @@ -122,7 +122,7 @@ gtk_alignment_class_init (GtkAlignmentClass *class) _("Value between 0.0 and 1.0 to indicate X scale"), 0.0, 1.0, - 0.0, + 1.0, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (gobject_class, PROP_YSCALE, @@ -131,7 +131,7 @@ gtk_alignment_class_init (GtkAlignmentClass *class) _("Value between 0.0 and 1.0 to indicate Y scale"), 0.0, 1.0, - 0.0, + 1.0, G_PARAM_READABLE | G_PARAM_WRITABLE)); } @@ -142,8 +142,8 @@ gtk_alignment_init (GtkAlignment *alignment) alignment->xalign = 0.5; alignment->yalign = 0.5; - alignment->xscale = 0.0; - alignment->yscale = 0.0; + alignment->xscale = 1.0; + alignment->yscale = 1.0; } GtkWidget* |