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/gtkoptionmenu.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/gtkoptionmenu.c')
-rw-r--r-- | gtk/gtkoptionmenu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkoptionmenu.c b/gtk/gtkoptionmenu.c index fb4dd65a4d..feb62717ab 100644 --- a/gtk/gtkoptionmenu.c +++ b/gtk/gtkoptionmenu.c @@ -35,6 +35,7 @@ #include "gtkoptionmenu.h" #define GTK_DISABLE_DEPRECATED +#include "gtkprivate.h" #include "gtkalias.h" #define CHILD_LEFT_SPACING 4 @@ -195,20 +196,20 @@ gtk_option_menu_class_init (GtkOptionMenuClass *class) P_("Menu"), P_("The menu of options"), GTK_TYPE_MENU, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + GTK_PARAM_READWRITE)); gtk_widget_class_install_style_property (widget_class, g_param_spec_boxed ("indicator-size", P_("Indicator Size"), P_("Size of dropdown indicator"), GTK_TYPE_REQUISITION, - G_PARAM_READABLE)); + GTK_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, g_param_spec_boxed ("indicator-spacing", P_("Indicator Spacing"), P_("Spacing around indicator"), GTK_TYPE_BORDER, - G_PARAM_READABLE)); + GTK_PARAM_READABLE)); } static GType |