[pyatspi2] Fix getDefaultAttributeSet



commit 3b0d34069716162b9f1016604e25bde15446447a
Author: Mike Gorse <mgorse suse com>
Date:   Sun Aug 9 13:35:53 2015 -0500

    Fix getDefaultAttributeSet
    
    text.getDefaultAttributeSet was calling a non-existent
    get_default_attribute_set function. Modified it to call
    get_default_attributes and return the attributes directly as a hash table.
    getDefaultAttributes will retain its current behavior for historical reasons.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752928

 pyatspi/text.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pyatspi/text.py b/pyatspi/text.py
index 417adee..434d2d7 100644
--- a/pyatspi/text.py
+++ b/pyatspi/text.py
@@ -298,6 +298,8 @@ class Text(interface):
                 whereas an object whose text weight is inspecified may report
                 the default or implied text weight in the default AttributeSet.
                 """
+                return Atspi.Text.get_default_attributes(self.obj)
+
                 ret = Atspi.Text.get_default_attribute_set(self.obj)
                 return [key + ':' + value for key, value in ret.values()]
 


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