From 4ee69df8aaeac780cf7b96e2040d58084c2748cb Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Sat, 12 Mar 2011 20:53:39 +0100 Subject: reference: pygtk-gtkwidget.xml: fix gtk.widget_class_install_style_property, based on gtk.Container.install_child_property (bug #612905) --- docs/reference/pygtk-gtkwidget.xml | 178 +++++++++++++++++++++++++++++++------ 1 file changed, 152 insertions(+), 26 deletions(-) diff --git a/docs/reference/pygtk-gtkwidget.xml b/docs/reference/pygtk-gtkwidget.xml index 3150c114..3c1b1d38 100644 --- a/docs/reference/pygtk-gtkwidget.xml +++ b/docs/reference/pygtk-gtkwidget.xml @@ -8001,37 +8001,163 @@ style property. gtk.widget_class_install_style_property - gtk.widget_class_install_style_property - widget - + gtk.widget_class_install_style_property + widget + pspec + - - widget : - a gtk.Widget - - - pspec : - a 4-tuple containing the property spec - + + widget : + a gtk.Widget + + + pspec : + a tuple containing a parameter specifications + - - This function is available in PyGTK 2.4 and above. + + This function is available in PyGTK 2.4 and above. - The -gtk.widget_class_install_style_property() function -installs the style property specified by pspec on the -gtk.Widget -specified by widget. pspec is -a 4-tuple containing the property name, the property type, a nickname (or -None) and a description of the property (or None). - - This function raises the TypeError exception if -widget is not a gtk.Widget or if the -property is already installed. + The gtk.widget_class_install_style_property() function + installs the style property specified by pspec on the + gtk.Widget + specified by widget. pspec is + a tuple containing at least 5 items. The first 4 items contain the + following parameter specification items: + + + + a string specifying the name of the property + + + an object specifying the property type + + + a string specifying the nickname for the property or None + + + a string specifying the short description for the property or None + + + + The last item must be a integer containing a combination of the + GObject Param Flag + Constants. Additional tuple items (if needed) are inserted + between the fourth item and the last item depending on the property + type: + + + + gobject.TYPE_CHAR + + minimum, maximum and default values + + + + gobject.TYPE_CHAR + + minimum, maximum and default values + + + + gobject.TYPE_BOOLEAN + + default value + + + + gobject.TYPE_INT + + minimum, maximum and default values + + + + gobject.TYPE_UINT + + minimum, maximum and default values + + + + gobject.TYPE_LONG + + minimum, maximum and default values + + + + gobject.TYPE_ULONG + + minimum, maximum and default values + + + + gobject.TYPE_INT64 + + minimum, maximum and default values + + + + gobject.TYPE_UINT64 + + minimum, maximum and default values + + + + gobject.TYPE_ENUM + + default value + + + + gobject.TYPE_FLAGS + + default value + + + + gobject.TYPE_FLOAT + + minimum, maximum and default values + + + + gobject.TYPE_DOUBLE + + minimum, maximum and default values + + + + gobject.TYPE_STRING + + default value + + + + gobject.TYPE_PARAM + + Not applicable + + + + gobject.TYPE_BOXED + + Not applicable + + + + gobject.TYPE_POINTER + + Not applicable + + + + gobject.TYPE_OBJECT + + Not applicable + + + -- cgit v1.2.1