[perl-Gtk2] Gtk2::Style: improve the docs of get_style_property
- From: Torsten Schönfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Gtk2] Gtk2::Style: improve the docs of get_style_property
- Date: Sun, 25 Apr 2010 14:54:04 +0000 (UTC)
commit 88fde0b22010b5479dd1ad65012d01ff9bdd8348
Author: Kevin Ryde <user42 zip com au>
Date: Sun Apr 25 16:53:19 2010 +0200
Gtk2::Style: improve the docs of get_style_property
https://bugzilla.gnome.org/show_bug.cgi?id=615598
xs/GtkStyle.xs | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/xs/GtkStyle.xs b/xs/GtkStyle.xs
index 0b7d1b6..ab01adc 100644
--- a/xs/GtkStyle.xs
+++ b/xs/GtkStyle.xs
@@ -582,17 +582,17 @@ gtk_style_lookup_color (GtkStyle *style, const gchar *color_name)
=for arg ... (list) list of property names
Fetch and return the values for the style properties named in I<...> for a
-widget of type I<widget_package>. I<get_style_property> is an alias for
-I<get>.
+widget of type I<widget_package>. I<get> is an alias for
+I<get_style_property>.
-B<Note>: The I<get> method shadows I<Glib::Object::get>. This shouldn't be a
-problem since I<Gtk2::Style> defines no properties (as of gtk+ 2.16). If you
-have a class that's derived from Gtk2::Style and adds a property or if a new
-version of gtk+ adds a property to I<Gtk2::Style>, the property can be accessed
-with I<get_property> which still resolves to I<Glib::Object::get_property>:
-
- my $value = $style->get_property('property');
+ my $size = $style->get_style_property ("expander-size");
+B<Note>: The I<get> method shadows I<Glib::Object::get> (see
+L<Glib::Object/get and set>). This shouldn't be a problem since
+I<Gtk2::Style> defines no properties (as of gtk+ 2.16). If you have a
+class that's derived from Gtk2::Style and adds a property or if a new
+version of gtk+ adds a property to I<Gtk2::Style> then the property
+can be accessed with I<get_property>.
=cut
void
gtk_style_get (style, widget_package, ...)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]