accerciser r670 - in trunk: . plugins



Author: eitani
Date: Sun Dec 21 11:17:16 2008
New Revision: 670
URL: http://svn.gnome.org/viewvc/accerciser?rev=670&view=rev

Log:
* plugins/interface_view.py: Escape label text for accessible roles
  and names (bug #564776).

Modified:
   trunk/ChangeLog
   trunk/plugins/interface_view.py

Modified: trunk/plugins/interface_view.py
==============================================================================
--- trunk/plugins/interface_view.py	(original)
+++ trunk/plugins/interface_view.py	Sun Dec 21 11:17:16 2008
@@ -15,6 +15,7 @@
 import gtk
 import os.path
 import pango
+from glib import markup_escape_text
 from accerciser.plugin import ViewportPlugin
 from accerciser.icons import getIcon
 from accerciser.i18n import _, N_
@@ -83,7 +84,7 @@
       role_name = '%s: %s' % (role, name)
     else:
       role_name = role
-    self.label_role.set_markup('<b>%s</b>' % 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()



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