From b6c29a5f1a68daa37533427d623cbbaa21ee0ca1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 21 Mar 2005 06:02:43 +0000 Subject: : Mark param spec strings as static. --- gtk/gtkalignment.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'gtk/gtkalignment.c') diff --git a/gtk/gtkalignment.c b/gtk/gtkalignment.c index 894b93d8b0..9217bc563a 100644 --- a/gtk/gtkalignment.c +++ b/gtk/gtkalignment.c @@ -112,6 +112,8 @@ gtk_alignment_class_init (GtkAlignmentClass *class) widget_class->size_request = gtk_alignment_size_request; widget_class->size_allocate = gtk_alignment_size_allocate; +#define STATIC_STRINGS G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB + g_object_class_install_property (gobject_class, PROP_XALIGN, g_param_spec_float("xalign", @@ -120,7 +122,7 @@ gtk_alignment_class_init (GtkAlignmentClass *class) 0.0, 1.0, 0.5, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_YALIGN, @@ -130,7 +132,7 @@ gtk_alignment_class_init (GtkAlignmentClass *class) 0.0, 1.0, 0.5, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_XSCALE, g_param_spec_float("xscale", @@ -139,7 +141,7 @@ gtk_alignment_class_init (GtkAlignmentClass *class) 0.0, 1.0, 1.0, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_YSCALE, g_param_spec_float("yscale", @@ -148,7 +150,7 @@ gtk_alignment_class_init (GtkAlignmentClass *class) 0.0, 1.0, 1.0, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); /** @@ -166,10 +168,10 @@ gtk_alignment_class_init (GtkAlignmentClass *class) 0, G_MAXINT, 0, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); /** - * GtkAlignment:top-padding: + * GtkAlignment:bottom-padding: * * The padding to insert at the bottom of the widget. * @@ -183,10 +185,10 @@ gtk_alignment_class_init (GtkAlignmentClass *class) 0, G_MAXINT, 0, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); /** - * GtkAlignment:top-padding: + * GtkAlignment:left-padding: * * The padding to insert at the left of the widget. * @@ -200,10 +202,10 @@ gtk_alignment_class_init (GtkAlignmentClass *class) 0, G_MAXINT, 0, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); /** - * GtkAlignment:top-padding: + * GtkAlignment:right-padding: * * The padding to insert at the right of the widget. * @@ -217,7 +219,7 @@ gtk_alignment_class_init (GtkAlignmentClass *class) 0, G_MAXINT, 0, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_type_class_add_private (gobject_class, sizeof (GtkAlignmentPrivate)); } -- cgit v1.2.1