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/gtkcellrenderer.c | |
parent | 06609470188075407d1668c66f99c19f6da1c67f (diff) | |
download | gtk+-b6c29a5f1a68daa37533427d623cbbaa21ee0ca1.tar.gz |
: Mark param spec strings as static.
Diffstat (limited to 'gtk/gtkcellrenderer.c')
-rw-r--r-- | gtk/gtkcellrenderer.c | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c index 4c07d882e5..ca1146824f 100644 --- a/gtk/gtkcellrenderer.c +++ b/gtk/gtkcellrenderer.c @@ -199,6 +199,8 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) GTK_TYPE_CELL_EDITABLE, G_TYPE_STRING); +#define STATIC_STRINGS G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB + g_object_class_install_property (object_class, PROP_MODE, g_param_spec_enum ("mode", @@ -206,8 +208,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) P_("Editable mode of the CellRenderer"), GTK_TYPE_CELL_RENDERER_MODE, GTK_CELL_RENDERER_MODE_INERT, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_VISIBLE, @@ -215,14 +216,14 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) P_("visible"), P_("Display the cell"), TRUE, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_SENSITIVE, g_param_spec_boolean ("sensitive", P_("Sensitive"), P_("Display the cell sensitive"), TRUE, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_XALIGN, @@ -232,8 +233,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) 0.0, 1.0, 0.5, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_YALIGN, @@ -243,8 +243,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) 0.0, 1.0, 0.5, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_XPAD, @@ -254,8 +253,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) 0, G_MAXUINT, 0, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_YPAD, @@ -265,8 +263,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) 0, G_MAXUINT, 0, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_WIDTH, @@ -276,8 +273,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) -1, G_MAXINT, -1, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_HEIGHT, @@ -287,8 +283,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) -1, G_MAXINT, -1, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRING)); g_object_class_install_property (object_class, PROP_IS_EXPANDER, @@ -296,8 +291,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) P_("Is Expander"), P_("Row has children"), FALSE, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, @@ -306,8 +300,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) P_("Is Expanded"), P_("Row is an expander row, and is expanded"), FALSE, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_CELL_BACKGROUND, @@ -315,7 +308,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) P_("Cell background color name"), P_("Cell background color as a string"), NULL, - G_PARAM_WRITABLE)); + G_PARAM_WRITABLE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_CELL_BACKGROUND_GDK, @@ -323,10 +316,10 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) P_("Cell background color"), P_("Cell background color as a GdkColor"), GDK_TYPE_COLOR, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); -#define ADD_SET_PROP(propname, propval, nick, blurb) g_object_class_install_property (object_class, propval, g_param_spec_boolean (propname, nick, blurb, FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE)) +#define ADD_SET_PROP(propname, propval, nick, blurb) g_object_class_install_property (object_class, propval, g_param_spec_boolean (propname, nick, blurb, FALSE, G_PARAM_READWRITE | STATIC_STRINGS)) ADD_SET_PROP ("cell-background-set", PROP_CELL_BACKGROUND_SET, P_("Cell background set"), |