diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2005-03-21 06:02:43 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-03-21 06:02:43 +0000 |
commit | b6c29a5f1a68daa37533427d623cbbaa21ee0ca1 (patch) | |
tree | ce76d131a79f2cc29db5c5ea79559eb04be291d6 /gtk/gtkalignment.c | |
parent | 06609470188075407d1668c66f99c19f6da1c67f (diff) | |
download | gtk+-b6c29a5f1a68daa37533427d623cbbaa21ee0ca1.tar.gz |
: Mark param spec strings as static.
Diffstat (limited to 'gtk/gtkalignment.c')
-rw-r--r-- | gtk/gtkalignment.c | 24 |
1 files changed, 13 insertions, 11 deletions
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)); } |