summaryrefslogtreecommitdiff
path: root/gtk/gtkcurve.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-03-22 02:14:55 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-03-22 02:14:55 +0000
commit269d89c79c9e8e872b3599242d1e174afeab4b00 (patch)
tree6222a134a586bb5107fd7d58af9c83274f4d313a /gtk/gtkcurve.c
parent8d752a5587abfda1a14298e56cdffb90b4ab21de (diff)
downloadgtk+-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/gtkcurve.c')
-rw-r--r--gtk/gtkcurve.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/gtk/gtkcurve.c b/gtk/gtkcurve.c
index 20f637ba85..5eb26e9d0b 100644
--- a/gtk/gtkcurve.c
+++ b/gtk/gtkcurve.c
@@ -35,6 +35,7 @@
#include "gtkmarshalers.h"
#include "gtkradiobutton.h"
#include "gtktable.h"
+#include "gtkprivate.h"
#include "gtkintl.h"
#include "gtkalias.h"
@@ -124,8 +125,7 @@ gtk_curve_class_init (GtkCurveClass *class)
P_("Is this curve linear, spline interpolated, or free-form"),
GTK_TYPE_CURVE_TYPE,
GTK_CURVE_TYPE_LINEAR,
- G_PARAM_READABLE |
- G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_MIN_X,
g_param_spec_float ("min-x",
@@ -134,8 +134,7 @@ gtk_curve_class_init (GtkCurveClass *class)
-G_MAXFLOAT,
G_MAXFLOAT,
0.0,
- G_PARAM_READABLE |
- G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_MAX_X,
g_param_spec_float ("max-x",
@@ -144,8 +143,7 @@ gtk_curve_class_init (GtkCurveClass *class)
-G_MAXFLOAT,
G_MAXFLOAT,
1.0,
- G_PARAM_READABLE |
- G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_MIN_Y,
g_param_spec_float ("min-y",
@@ -154,8 +152,7 @@ gtk_curve_class_init (GtkCurveClass *class)
-G_MAXFLOAT,
G_MAXFLOAT,
0.0,
- G_PARAM_READABLE |
- G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_MAX_Y,
g_param_spec_float ("max-y",
@@ -164,8 +161,7 @@ gtk_curve_class_init (GtkCurveClass *class)
-G_MAXFLOAT,
G_MAXFLOAT,
1.0,
- G_PARAM_READABLE |
- G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
curve_type_changed_signal =
g_signal_new ("curve_type_changed",