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/gtkcellrendererpixbuf.c | |
parent | 06609470188075407d1668c66f99c19f6da1c67f (diff) | |
download | gtk+-b6c29a5f1a68daa37533427d623cbbaa21ee0ca1.tar.gz |
: Mark param spec strings as static.
Diffstat (limited to 'gtk/gtkcellrendererpixbuf.c')
-rw-r--r-- | gtk/gtkcellrendererpixbuf.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c index e1960f9f45..032cdc3d4d 100644 --- a/gtk/gtkcellrendererpixbuf.c +++ b/gtk/gtkcellrendererpixbuf.c @@ -132,14 +132,15 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class) cell_class->get_size = gtk_cell_renderer_pixbuf_get_size; cell_class->render = gtk_cell_renderer_pixbuf_render; +#define STATIC_STRINGS G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB + g_object_class_install_property (object_class, PROP_PIXBUF, g_param_spec_object ("pixbuf", P_("Pixbuf Object"), P_("The pixbuf to render"), GDK_TYPE_PIXBUF, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_PIXBUF_EXPANDER_OPEN, @@ -147,8 +148,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class) P_("Pixbuf Expander Open"), P_("Pixbuf for open expander"), GDK_TYPE_PIXBUF, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_PIXBUF_EXPANDER_CLOSED, @@ -156,8 +156,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class) P_("Pixbuf Expander Closed"), P_("Pixbuf for closed expander"), GDK_TYPE_PIXBUF, - G_PARAM_READABLE | - G_PARAM_WRITABLE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_STOCK_ID, @@ -165,7 +164,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class) P_("Stock ID"), P_("The stock ID of the stock icon to render"), NULL, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_STOCK_SIZE, @@ -175,7 +174,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class) 0, G_MAXUINT, GTK_ICON_SIZE_MENU, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_STOCK_DETAIL, @@ -183,7 +182,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class) P_("Detail"), P_("Render detail to pass to the theme engine"), NULL, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | STATIC_STRINGS)); /** * GtkCellRendererPixbuf:follow-state: @@ -200,7 +199,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class) P_("Whether the rendered pixbuf should be " "colorized according to the state"), FALSE, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | STATIC_STRIGNS)); g_type_class_add_private (object_class, sizeof (GtkCellRendererPixbufPrivate)); |