diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-03-22 02:14:55 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-03-22 02:14:55 +0000 |
commit | 269d89c79c9e8e872b3599242d1e174afeab4b00 (patch) | |
tree | 6222a134a586bb5107fd7d58af9c83274f4d313a /gtk/gtkcolorbutton.c | |
parent | 8d752a5587abfda1a14298e56cdffb90b4ab21de (diff) | |
download | gtk+-269d89c79c9e8e872b3599242d1e174afeab4b00.tar.gz |
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.
Diffstat (limited to 'gtk/gtkcolorbutton.c')
-rw-r--r-- | gtk/gtkcolorbutton.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c index f096962fb4..858d8d6387 100644 --- a/gtk/gtkcolorbutton.c +++ b/gtk/gtkcolorbutton.c @@ -43,6 +43,7 @@ #include "gtkframe.h" #include "gtksignal.h" #include "gtkmarshalers.h" +#include "gtkprivate.h" #include "gtkintl.h" #include "gtkalias.h" @@ -203,7 +204,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass) g_param_spec_boolean ("use-alpha", P_("Use alpha"), P_("Whether or not to give the color an alpha value"), FALSE, - (G_PARAM_READABLE | G_PARAM_WRITABLE))); + GTK_PARAM_READWRITE)); /** * GtkColorButton:title: @@ -218,7 +219,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass) P_("Title"), P_("The title of the color selection dialog"), _("Pick a Color"), - (G_PARAM_READABLE | G_PARAM_WRITABLE))); + GTK_PARAM_READWRITE)); /** * GtkColorButton:color: @@ -233,7 +234,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass) P_("Current Color"), P_("The selected color"), GDK_TYPE_COLOR, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + GTK_PARAM_READWRITE)); /** * GtkColorButton:alpha: @@ -248,7 +249,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass) P_("Current Alpha"), P_("The selected opacity value (0 fully transparent, 65535 fully opaque)"), 0, 65535, 65535, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + GTK_PARAM_READWRITE)); /** * GtkColorButton::color-set: |