[accerciser/pygi] Removing some workarounds with arguments before been fixed



commit 7da099fd329a326e3dd166a1a14bcf8a2d7f418e
Author: Javier HernÃndez <jhernandez emergya es>
Date:   Thu Aug 25 22:59:24 2011 +0200

    Removing some workarounds with arguments before been fixed

 plugins/interface_view.py          |    8 ++++----
 src/lib/accerciser/prefs_dialog.py |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/interface_view.py b/plugins/interface_view.py
index b7767b3..9af29fa 100644
--- a/plugins/interface_view.py
+++ b/plugins/interface_view.py
@@ -114,7 +114,7 @@ class InterfaceViewer(ViewportPlugin):
       role_name = '%s: %s' % (role, name)
     else:
       role_name = role
-    self.label_role.set_markup('<b>%s</b>' % markup_escape_text(role_name, len(role_name)))
+    self.label_role.set_markup('<b>%s</b>' % markup_escape_text(role_name))
       
   def onAccChanged(self, acc):
     '''
@@ -129,7 +129,7 @@ class InterfaceViewer(ViewportPlugin):
       role_name = '%s: %s' % (role, name)
     else:
       role_name = role
-    self.label_role.set_markup('<b>%s</b>' % markup_escape_text(role_name, len(role_name)))
+    self.label_role.set_markup('<b>%s</b>' % markup_escape_text(role_name))
     interfaces = pyatspi.listInterfaces(acc)
     for section_obj in self.sections:
       section_obj.disable()
@@ -356,13 +356,13 @@ class _SectionAccessible(_InterfaceSection):
       r_type_name = r_type_name.replace('_', ' ').lower().capitalize()
       iter = self.relations_model.append(
           None, [None, 
-                 '<i>'+markup_escape_text(r_type_name, len(r_type_name))+'</i>', -1, 
+                 '<i>'+markup_escape_text(r_type_name)+'</i>', -1, 
                  self.header_bg, False])
       for i in range(relation.getNTargets()):
         acc = relation.getTarget(i)
         self.relations_model.append(
             iter, [getIcon(acc), 
-                   markup_escape_text(acc.name, len(acc.name)), i, 
+                   markup_escape_text(acc.name), i, 
                    self.relation_bg, True])
     self.relations_view.expand_all()
 
diff --git a/src/lib/accerciser/prefs_dialog.py b/src/lib/accerciser/prefs_dialog.py
index 9c9db16..44c936a 100644
--- a/src/lib/accerciser/prefs_dialog.py
+++ b/src/lib/accerciser/prefs_dialog.py
@@ -149,7 +149,7 @@ class _HighlighterView(gtk.Alignment):
     ColorButton derivative with useful methods for us.
     '''
     def __init__(self, color, alpha):
-      color = gdk.color_parse(color)[1]
+      color = gdk.color_parse(color)
       gtk.ColorButton.__init__(self)
       self.set_use_alpha(True)
       self.set_alpha(int(alpha*0xffff))



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