summaryrefslogtreecommitdiff
path: root/gtk/gtkcalendar.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2005-03-21 06:02:43 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-03-21 06:02:43 +0000
commitb6c29a5f1a68daa37533427d623cbbaa21ee0ca1 (patch)
treece76d131a79f2cc29db5c5ea79559eb04be291d6 /gtk/gtkcalendar.c
parent06609470188075407d1668c66f99c19f6da1c67f (diff)
downloadgtk+-b6c29a5f1a68daa37533427d623cbbaa21ee0ca1.tar.gz
: Mark param spec strings as static.
Diffstat (limited to 'gtk/gtkcalendar.c')
-rw-r--r--gtk/gtkcalendar.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index 3e740860a9..58edb9a830 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -465,27 +465,29 @@ gtk_calendar_class_init (GtkCalendarClass *class)
class->prev_year = NULL;
class->next_year = NULL;
+#define STATIC_STRINGS G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
+
g_object_class_install_property (gobject_class,
PROP_YEAR,
g_param_spec_int ("year",
P_("Year"),
P_("The selected year"),
0, G_MAXINT, 0,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_MONTH,
g_param_spec_int ("month",
P_("Month"),
P_("The selected month (as a number between 0 and 11)"),
0, 11, 0,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_DAY,
g_param_spec_int ("day",
P_("Day"),
P_("The selected day (as a number between 1 and 31, or 0 to unselect the currently selected day)"),
0, 31, 0,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | STATIC_STRINGS));
/**
* GtkCalendar:show-heading:
@@ -500,7 +502,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
P_("Show Heading"),
P_("If TRUE, a heading is displayed"),
TRUE,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | STATIC_STRINGS));
/**
* GtkCalendar:show-day-names:
@@ -515,7 +517,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
P_("Show Day Names"),
P_("If TRUE, day names are displayed"),
TRUE,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | STATIC_STRINGS));
/**
* GtkCalendar:no-month-change:
*
@@ -529,7 +531,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
P_("No Month Change"),
P_("If TRUE, the selected month cannot be changed"),
FALSE,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | STATIC_STRINGS));
/**
* GtkCalendar:show-week-numbers:
@@ -544,7 +546,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
P_("Show Week Numbers"),
P_("If TRUE, week numbers are displayed"),
FALSE,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | STATIC_STRINGS));
gtk_calendar_signals[MONTH_CHANGED_SIGNAL] =
g_signal_new ("month_changed",