Commit 3ec234a6 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Add a blurb for shadow_type.

2003-06-24  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for shadow_type.

	* gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser):
	(gtk_widget_class_list_style_properties): Use same parameter names as in
	header (to silence gtk-doc).

	* gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
parent 7395e4da
2003-06-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for shadow_type.
* gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser):
(gtk_widget_class_list_style_properties): Use same parameter names as in
header (to silence gtk-doc).
* gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
Tue Jun 24 20:00:45 BST 2003 Tony Gale <gale@gtk.org>
* docs/faq/gtk-faq.sgml: Thread support updates
......
2003-06-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for shadow_type.
* gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser):
(gtk_widget_class_list_style_properties): Use same parameter names as in
header (to silence gtk-doc).
* gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
Tue Jun 24 20:00:45 BST 2003 Tony Gale <gale@gtk.org>
* docs/faq/gtk-faq.sgml: Thread support updates
......
2003-06-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for shadow_type.
* gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser):
(gtk_widget_class_list_style_properties): Use same parameter names as in
header (to silence gtk-doc).
* gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
Tue Jun 24 20:00:45 BST 2003 Tony Gale <gale@gtk.org>
* docs/faq/gtk-faq.sgml: Thread support updates
......
2003-06-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for shadow_type.
* gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser):
(gtk_widget_class_list_style_properties): Use same parameter names as in
header (to silence gtk-doc).
* gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
Tue Jun 24 20:00:45 BST 2003 Tony Gale <gale@gtk.org>
* docs/faq/gtk-faq.sgml: Thread support updates
......
2003-06-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for shadow_type.
* gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser):
(gtk_widget_class_list_style_properties): Use same parameter names as in
header (to silence gtk-doc).
* gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
Tue Jun 24 20:00:45 BST 2003 Tony Gale <gale@gtk.org>
* docs/faq/gtk-faq.sgml: Thread support updates
......
......@@ -519,7 +519,7 @@ gtk_alignment_size_allocate (GtkWidget *widget,
/**
* gtk_alignment_set_padding:
* @alignment a #GtkAlignment
* @alignment: a #GtkAlignment
* @padding_top: the padding at the top of the widget
* @padding_bottom: the padding at the bottom of the widget
* @padding_left: the padding at the left of the widget
......@@ -579,7 +579,7 @@ gtk_alignment_set_padding (GtkAlignment *alignment,
/**
* gtk_alignment_get_padding:
* @alignment a #GtkAlignment
* @alignment: a #GtkAlignment
* @padding_top: location to store the padding for the top of the widget, or %NULL
* @padding_bottom: location to store the padding for the bottom of the widget, or %NULL
* @padding_left: location to store the padding for the left of the widget, or %NULL
......
......@@ -306,7 +306,9 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
G_PARAM_READWRITE));
gtk_widget_class_install_style_property_parser (widget_class,
g_param_spec_enum ("shadow_type", "Shadow Type", NULL,
g_param_spec_enum ("shadow_type",
"Shadow Type",
_("Style of bevel around the spin button"),
GTK_TYPE_SHADOW_TYPE,
GTK_SHADOW_IN,
G_PARAM_READABLE),
......
......@@ -6515,26 +6515,26 @@ gtk_widget_unref (GtkWidget *widget)
/**
* gtk_widget_class_install_style_property_parser:
* @class: a #GtkWidgetClass
* @klass: a #GtkWidgetClass
* @pspec: the #GParamSpec for the style property
* @parser: the parser for the style property
*
* Installs a style property on a widget class.
**/
void
gtk_widget_class_install_style_property_parser (GtkWidgetClass *class,
gtk_widget_class_install_style_property_parser (GtkWidgetClass *klass,
GParamSpec *pspec,
GtkRcPropertyParser parser)
{
g_return_if_fail (GTK_IS_WIDGET_CLASS (class));
g_return_if_fail (GTK_IS_WIDGET_CLASS (klass));
g_return_if_fail (G_IS_PARAM_SPEC (pspec));
g_return_if_fail (pspec->flags & G_PARAM_READABLE);
g_return_if_fail (!(pspec->flags & (G_PARAM_CONSTRUCT_ONLY | G_PARAM_CONSTRUCT)));
if (g_param_spec_pool_lookup (style_property_spec_pool, pspec->name, G_OBJECT_CLASS_TYPE (class), FALSE))
if (g_param_spec_pool_lookup (style_property_spec_pool, pspec->name, G_OBJECT_CLASS_TYPE (klass), FALSE))
{
g_warning (G_STRLOC ": class `%s' already contains a style property named `%s'",
G_OBJECT_CLASS_NAME (class),
G_OBJECT_CLASS_NAME (klass),
pspec->name);
return;
}
......@@ -6542,29 +6542,29 @@ gtk_widget_class_install_style_property_parser (GtkWidgetClass *class,
g_param_spec_ref (pspec);
g_param_spec_sink (pspec);
g_param_spec_set_qdata (pspec, quark_property_parser, (gpointer) parser);
g_param_spec_pool_insert (style_property_spec_pool, pspec, G_OBJECT_CLASS_TYPE (class));
g_param_spec_pool_insert (style_property_spec_pool, pspec, G_OBJECT_CLASS_TYPE (klass));
}
/**
* gtk_widget_class_install_style_property:
* @class: a #GtkWidgetClass
* @klass: a #GtkWidgetClass
* @pspec: the #GParamSpec for the property
*
* Installs a style property on a widget class. The parser for the
* style property is determined by the value type of @pspec.
**/
void
gtk_widget_class_install_style_property (GtkWidgetClass *class,
gtk_widget_class_install_style_property (GtkWidgetClass *klass,
GParamSpec *pspec)
{
GtkRcPropertyParser parser;
g_return_if_fail (GTK_IS_WIDGET_CLASS (class));
g_return_if_fail (GTK_IS_WIDGET_CLASS (klass));
g_return_if_fail (G_IS_PARAM_SPEC (pspec));
parser = _gtk_rc_property_parser_from_type (G_PARAM_SPEC_VALUE_TYPE (pspec));
gtk_widget_class_install_style_property_parser (class, pspec, parser);
gtk_widget_class_install_style_property_parser (klass, pspec, parser);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment