summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.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/gtktreeviewcolumn.c
parent8d752a5587abfda1a14298e56cdffb90b4ab21de (diff)
downloadgdk-pixbuf-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/gtktreeviewcolumn.c')
-rw-r--r--gtk/gtktreeviewcolumn.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index 63e80cc58..17c46f878 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -29,6 +29,7 @@
#include "gtkhbox.h"
#include "gtkmarshalers.h"
#include "gtkarrow.h"
+#include "gtkprivate.h"
#include "gtkintl.h"
#include "gtkalias.h"
@@ -225,7 +226,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
P_("Visible"),
P_("Whether to display the column"),
TRUE,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_RESIZABLE,
@@ -233,7 +234,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
P_("Resizable"),
P_("Column is user-resizable"),
FALSE,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_WIDTH,
@@ -243,7 +244,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
0,
G_MAXINT,
0,
- G_PARAM_READABLE));
+ GTK_PARAM_READABLE));
g_object_class_install_property (object_class,
PROP_SPACING,
g_param_spec_int ("spacing",
@@ -252,7 +253,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
0,
G_MAXINT,
0,
- G_PARAM_READWRITE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_SIZING,
g_param_spec_enum ("sizing",
@@ -260,7 +261,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
P_("Resize mode of the column"),
GTK_TYPE_TREE_VIEW_COLUMN_SIZING,
GTK_TREE_VIEW_COLUMN_GROW_ONLY,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_FIXED_WIDTH,
@@ -270,7 +271,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
1,
G_MAXINT,
1, /* not useful */
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_MIN_WIDTH,
@@ -280,7 +281,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
-1,
G_MAXINT,
-1,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_MAX_WIDTH,
@@ -290,7 +291,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
-1,
G_MAXINT,
-1,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_TITLE,
@@ -298,7 +299,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
P_("Title"),
P_("Title to appear in column header"),
"",
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_EXPAND,
@@ -306,7 +307,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
P_("Expand"),
P_("Column gets share of extra width allocated to the widget"),
FALSE,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_CLICKABLE,
@@ -314,7 +315,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
P_("Clickable"),
P_("Whether the header can be clicked"),
FALSE,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
@@ -323,7 +324,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
P_("Widget"),
P_("Widget to put in column header button instead of column title"),
GTK_TYPE_WIDGET,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_ALIGNMENT,
@@ -333,7 +334,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
0.0,
1.0,
0.0,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_REORDERABLE,
@@ -341,7 +342,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
P_("Reorderable"),
P_("Whether the column can be reordered around the headers"),
FALSE,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_SORT_INDICATOR,
@@ -349,7 +350,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
P_("Sort indicator"),
P_("Whether to show a sort indicator"),
FALSE,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_SORT_ORDER,
@@ -358,7 +359,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
P_("Sort direction the sort indicator should indicate"),
GTK_TYPE_SORT_TYPE,
GTK_SORT_ASCENDING,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ GTK_PARAM_READWRITE));
}