[perl-Glib] Glib::Object: improve docs of find_property()



commit 50cc933b9eb232533ec87bacdb7e663ba3452019
Author: Kevin Ryde <user42 zip com au>
Date:   Fri Oct 29 10:16:26 2010 +1100

    Glib::Object: improve docs of find_property()
    
    Make it clear that it returns undef if no such property (in particular show
    "pspec or undef" in the signature).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=633413

 GObject.xs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/GObject.xs b/GObject.xs
index 20bad9b..d367fe9 100644
--- a/GObject.xs
+++ b/GObject.xs
@@ -1411,10 +1411,11 @@ The Glib::ParamFlags of the property
 =cut
 
 =for apidoc Glib::Object::find_property
-=for signature pspec = $object_or_class_name->find_property ($name)
+=for signature pspec or undef = $object_or_class_name->find_property ($name)
 =for arg name (string)
 =for arg ... (__hide__)
-Find the definition of object property I<$name> for I<$object_or_class_name>; for
+Find the definition of object property I<$name> for I<$object_or_class_name>.
+Return C<undef> if no such property.  For
 the returned data see L<Glib::Object::list_properties>.
 =cut
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]