summaryrefslogtreecommitdiff
path: root/gtk/gtkadjustment.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/gtkadjustment.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/gtkadjustment.c')
-rw-r--r--gtk/gtkadjustment.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/gtk/gtkadjustment.c b/gtk/gtkadjustment.c
index 924422efa6..c547e38bdc 100644
--- a/gtk/gtkadjustment.c
+++ b/gtk/gtkadjustment.c
@@ -26,8 +26,9 @@
#include <config.h>
#include "gtkadjustment.h"
-#include "gtkintl.h"
#include "gtkmarshalers.h"
+#include "gtkprivate.h"
+#include "gtkintl.h"
#include "gtkalias.h"
enum
@@ -102,8 +103,6 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
class->changed = NULL;
class->value_changed = NULL;
-#define STATIC_STRINGS G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
-
/**
* GtkAdjustment:value:
*
@@ -119,7 +118,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
-G_MAXDOUBLE,
G_MAXDOUBLE,
0.0,
- G_PARAM_READWRITE | STATIC_STRINGS));
+ GTK_PARAM_READWRITE));
/**
* GtkAdjustment:lower:
@@ -136,7 +135,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
-G_MAXDOUBLE,
G_MAXDOUBLE,
0.0,
- G_PARAM_READWRITE | STATIC_STRINGS));
+ GTK_PARAM_READWRITE));
/**
* GtkAdjustment:upper:
@@ -156,7 +155,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
-G_MAXDOUBLE,
G_MAXDOUBLE,
0.0,
- G_PARAM_READWRITE | STATIC_STRINGS));
+ GTK_PARAM_READWRITE));
/**
* GtkAdjustment:step-increment:
@@ -173,7 +172,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
-G_MAXDOUBLE,
G_MAXDOUBLE,
0.0,
- G_PARAM_READWRITE | STATIC_STRINGS));
+ GTK_PARAM_READWRITE));
/**
* GtkAdjustment:page-increment:
@@ -190,7 +189,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
-G_MAXDOUBLE,
G_MAXDOUBLE,
0.0,
- G_PARAM_READWRITE | STATIC_STRINGS));
+ GTK_PARAM_READWRITE));
/**
* GtkAdjustment:page-size:
@@ -210,7 +209,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
-G_MAXDOUBLE,
G_MAXDOUBLE,
0.0,
- G_PARAM_READWRITE | STATIC_STRINGS));
+ GTK_PARAM_READWRITE));
adjustment_signals[CHANGED] =