Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE
2005-03-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like their G_ counterparts, but also mark the name, nick and blurb as static. * gtk/*.c: Mark param spec strings as static, using the new macros.
This commit is contained in:
committed by
Matthias Clasen
parent
8d752a5587
commit
269d89c79c
@ -198,7 +198,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
|
||||
P_("Expanded"),
|
||||
P_("Whether the expander has been opened to reveal the child widget"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
||||
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_LABEL,
|
||||
@ -206,7 +206,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
|
||||
P_("Label"),
|
||||
P_("Text of the expander's label"),
|
||||
NULL,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
||||
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_USE_UNDERLINE,
|
||||
@ -214,7 +214,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
|
||||
P_("Use underline"),
|
||||
P_("If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
||||
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_USE_MARKUP,
|
||||
@ -222,7 +222,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
|
||||
P_("Use markup"),
|
||||
P_("The text of the label includes XML markup. See pango_parse_markup()"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
||||
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SPACING,
|
||||
@ -232,7 +232,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
|
||||
0,
|
||||
G_MAXINT,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
GTK_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_LABEL_WIDGET,
|
||||
@ -240,7 +240,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
|
||||
P_("Label widget"),
|
||||
P_("A widget to display in place of the usual expander label"),
|
||||
GTK_TYPE_WIDGET,
|
||||
G_PARAM_READWRITE));
|
||||
GTK_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("expander-size",
|
||||
@ -249,7 +249,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
|
||||
0,
|
||||
G_MAXINT,
|
||||
DEFAULT_EXPANDER_SIZE,
|
||||
G_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("expander-spacing",
|
||||
@ -258,7 +258,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
|
||||
0,
|
||||
G_MAXINT,
|
||||
DEFAULT_EXPANDER_SPACING,
|
||||
G_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE));
|
||||
|
||||
widget_class->activate_signal =
|
||||
g_signal_new ("activate",
|
||||
|
||||
Reference in New Issue
Block a user