: Mark param spec strings as static.
This commit is contained in:
@ -115,6 +115,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
/* FIXME we need to override the "spacing" property on GtkBox once
|
||||
* libgobject allows that.
|
||||
*/
|
||||
#define STATIC_STRINGS G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("child-min-width",
|
||||
@ -123,7 +124,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
0,
|
||||
G_MAXINT,
|
||||
DEFAULT_CHILD_MIN_WIDTH,
|
||||
G_PARAM_READABLE));
|
||||
G_PARAM_READABLE | STATIC_STRINGS));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("child-min-height",
|
||||
@ -132,7 +133,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
0,
|
||||
G_MAXINT,
|
||||
DEFAULT_CHILD_MIN_HEIGHT,
|
||||
G_PARAM_READABLE));
|
||||
G_PARAM_READABLE | STATIC_STRINGS));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("child-internal-pad-x",
|
||||
@ -141,7 +142,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
0,
|
||||
G_MAXINT,
|
||||
DEFAULT_CHILD_IPAD_X,
|
||||
G_PARAM_READABLE));
|
||||
G_PARAM_READABLE | STATIC_STRINGS));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("child-internal-pad-y",
|
||||
@ -150,7 +151,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
0,
|
||||
G_MAXINT,
|
||||
DEFAULT_CHILD_IPAD_Y,
|
||||
G_PARAM_READABLE));
|
||||
G_PARAM_READABLE | STATIC_STRINGS));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_LAYOUT_STYLE,
|
||||
g_param_spec_enum ("layout-style",
|
||||
@ -158,7 +159,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
P_("How to layout the buttons in the box. Possible values are default, spread, edge, start and end"),
|
||||
GTK_TYPE_BUTTON_BOX_STYLE,
|
||||
GTK_BUTTONBOX_DEFAULT_STYLE,
|
||||
G_PARAM_READWRITE));
|
||||
G_PARAM_READWRITE | STATIC_STRINGS));
|
||||
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_SECONDARY,
|
||||
@ -166,7 +167,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
P_("Secondary"),
|
||||
P_("If TRUE, the child appears in a secondary group of children, suitable for, e.g., help buttons"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
G_PARAM_READWRITE | STATIC_STRINGS));
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user