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:
Matthias Clasen
2005-03-22 02:14:55 +00:00
committed by Matthias Clasen
parent 8d752a5587
commit 269d89c79c
102 changed files with 792 additions and 732 deletions

View File

@ -29,6 +29,7 @@
#include <stdlib.h>
#include "gtkcellrendererprogress.h"
#include "gtkprivate.h"
#include "gtkintl.h"
#include "gtkalias.h"
@ -101,8 +102,6 @@ gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *klass)
cell_class->get_size = gtk_cell_renderer_progress_get_size;
cell_class->render = gtk_cell_renderer_progress_render;
#define STATIC_STRINGS G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
/**
* GtkCellRendererProgress:value:
*
@ -117,7 +116,7 @@ gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *klass)
P_("Value"),
P_("Value of the progress bar"),
0, 100, 0,
G_PARAM_READWRITE | STATIC_STRINGS));
GTK_PARAM_READWRITE));
/**
* GtkCellRendererProgress:text:
@ -135,7 +134,7 @@ gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *klass)
P_("Text"),
P_("Text on the progress bar"),
NULL,
G_PARAM_READWRITE | STATIC_STRINGS));
GTK_PARAM_READWRITE));
g_type_class_add_private (object_class,
sizeof (GtkCellRendererProgressPrivate));