Commit 63225c66 authored by Eitan Isaacson's avatar Eitan Isaacson

Added copyright notice for role icons.

* NOTICE: Added copyright notice for role icons.
* pixmaps/Makefile.am: 
* pixmaps/acceleratorlabel.png:
* pixmaps/arrow.png:
* pixmaps/calendar.png:
* pixmaps/canvas.png:
* pixmaps/chart.png:
* pixmaps/checkbox.png:
* pixmaps/checkmenuitem.png:
* pixmaps/colorchooser.png:
* pixmaps/combobox.png:
* pixmaps/dateeditor.png:
* pixmaps/desktopicon.png:
* pixmaps/dialog.png:
* pixmaps/drawingarea.png:
* pixmaps/entry.png:
* pixmaps/filechooser.png:
* pixmaps/filler.png:
* pixmaps/focustraversable.png:
* pixmaps/fontchooser.png:
* pixmaps/frame.png:
* pixmaps/glasspane.png:
* pixmaps/icon.png:
* pixmaps/image.png:
* pixmaps/list.png:
* pixmaps/listitem.png:
* pixmaps/menu.png:
* pixmaps/menubar.png:
* pixmaps/menuitem.png:
* pixmaps/pagetablist.png:
* pixmaps/popupmenu.png:
* pixmaps/progressbar.png:
* pixmaps/pushbutton.png:
* pixmaps/radiobutton.png:
* pixmaps/radiomenuitem.png:
* pixmaps/ruler.png:
* pixmaps/scrollbar.png:
* pixmaps/scrollpane.png:
* pixmaps/separator.png:
* pixmaps/seperator.png:
* pixmaps/slider.png:
* pixmaps/spinbutton.png:
* pixmaps/splitpane.png:
* pixmaps/statusbar.png:
* pixmaps/table.png:
* pixmaps/tearoffmenuitem.png:
* pixmaps/text.png:
* pixmaps/togglebutton.png:
* pixmaps/toolbar.png:
* pixmaps/tree.png:
* pixmaps/treetable.png:
* pixmaps/window.png: Added/modified icons from glade3 icons (bug
431816). Thank you Vincent Geddes!
* plugins/api_view.py: Removed custom list interfaces method, use
pyatspi one.
* plugins/interface_view.py: Removed custom list interfaces
method,use pyatspi one.
* src/accerciser.glade: Added Vincent Geddes to 'about' dialog.
* src/lib/accerciser/accerciser.py: Fixed application quitting.
* src/lib/accerciser/icons.py: Removed role->filename mapping.
* src/lib/accerciser/pyatspi.zip: Updated to snapshot of revision 922.

svn path=/trunk/; revision=134
parent 37c6993e
2007-05-09 Eitan Isaacson <eitan@ascender.com>
* NOTICE: Added copyright notice for role icons.
* pixmaps/Makefile.am:
* pixmaps/acceleratorlabel.png:
* pixmaps/arrow.png:
* pixmaps/calendar.png:
* pixmaps/canvas.png:
* pixmaps/chart.png:
* pixmaps/checkbox.png:
* pixmaps/checkmenuitem.png:
* pixmaps/colorchooser.png:
* pixmaps/combobox.png:
* pixmaps/dateeditor.png:
* pixmaps/desktopicon.png:
* pixmaps/dialog.png:
* pixmaps/drawingarea.png:
* pixmaps/entry.png:
* pixmaps/filechooser.png:
* pixmaps/filler.png:
* pixmaps/focustraversable.png:
* pixmaps/fontchooser.png:
* pixmaps/frame.png:
* pixmaps/glasspane.png:
* pixmaps/icon.png:
* pixmaps/image.png:
* pixmaps/list.png:
* pixmaps/listitem.png:
* pixmaps/menu.png:
* pixmaps/menubar.png:
* pixmaps/menuitem.png:
* pixmaps/pagetablist.png:
* pixmaps/popupmenu.png:
* pixmaps/progressbar.png:
* pixmaps/pushbutton.png:
* pixmaps/radiobutton.png:
* pixmaps/radiomenuitem.png:
* pixmaps/ruler.png:
* pixmaps/scrollbar.png:
* pixmaps/scrollpane.png:
* pixmaps/separator.png:
* pixmaps/seperator.png:
* pixmaps/slider.png:
* pixmaps/spinbutton.png:
* pixmaps/splitpane.png:
* pixmaps/statusbar.png:
* pixmaps/table.png:
* pixmaps/tearoffmenuitem.png:
* pixmaps/text.png:
* pixmaps/togglebutton.png:
* pixmaps/toolbar.png:
* pixmaps/tree.png:
* pixmaps/treetable.png:
* pixmaps/window.png: Added/modified icons from glade3 icons (bug
431816). Thank you Vincent Geddes!
* plugins/api_view.py: Removed custom list interfaces method, use
pyatspi one.
* plugins/interface_view.py: Removed custom list interfaces
method,use pyatspi one.
* src/accerciser.glade: Added Vincent Geddes to 'about' dialog.
* src/lib/accerciser/accerciser.py: Fixed application quitting.
* src/lib/accerciser/icons.py: Removed role->filename mapping.
* src/lib/accerciser/pyatspi.zip: Updated to snapshot of revision 922.
2007-05-08 Eitan Isaacson <eitan@ascender.com>
* plugins/event_monitor.py: Made load time extremely faster.
......
......@@ -33,3 +33,6 @@ Copyright Holders and Attribution
BSD License
* pyatspi is Copyright (c) 2006 IBM Corporation under the terms of the
LGPL License
* Role icons are Copyright (c) 2007 Vincent Geddes under the terms of the
BSD License
......@@ -4,19 +4,24 @@ pixmaps_DATA = \
acceleratorlabel.png \
alert.png \
animation.png \
arrow.png \
calendar.png \
canvas.png \
care.png \
character.png \
chart.png \
checkbox.png \
checkmenuitem.png \
clock.png \
colorchooser.png \
columnheader.png \
column.png \
combobox.png \
cursor.png \
dateeditor.png \
desktopframe.png \
desktopicon.png \
dialog.png \
dial.png \
directorypane.png \
drawingarea.png \
......@@ -25,11 +30,16 @@ pixmaps_DATA = \
entry.png \
filechooser.png \
filler.png \
focustraversable.png \
fontchooser.png \
form.png \
frame.png \
glasspane.png \
grip.png \
heading.png \
helpballoon.png \
htmlcontainer.png \
icon.png \
imagemap.png \
image.png \
inputmethodwindow.png \
......@@ -38,16 +48,23 @@ pixmaps_DATA = \
link.png \
listitem.png \
list.png \
menubar.png \
menuitem.png \
menu.png \
outlineitem.png \
pagetablist.png \
passwordtext.png \
popupmenu.png \
progressbar.png \
pushbutton.png \
radiobutton.png \
radiomenuitem.png \
row.png \
ruler.png \
scrollbar.png \
scrollpane.png \
seperator.png \
section.png \
separator.png \
shape.png \
slider.png \
sound.png \
......@@ -56,9 +73,14 @@ pixmaps_DATA = \
statusbar.png \
tablecell.png \
table.png \
tearoffmenuitem.png \
terminal.png \
text.png \
togglebutton.png \
toolbar.png \
tooltip.png \
tree.png \
treetable.png
treetable.png \
window.png
EXTRA_DIST = $(pixmaps_DATA)
\ No newline at end of file
pixmaps/acceleratorlabel.png

2.91 KB | W: | H:

pixmaps/acceleratorlabel.png

131 Bytes | W: | H:

pixmaps/acceleratorlabel.png
pixmaps/acceleratorlabel.png
pixmaps/acceleratorlabel.png
pixmaps/acceleratorlabel.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/calendar.png

2.96 KB | W: | H:

pixmaps/calendar.png

161 Bytes | W: | H:

pixmaps/calendar.png
pixmaps/calendar.png
pixmaps/calendar.png
pixmaps/calendar.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/canvas.png

3.31 KB | W: | H:

pixmaps/canvas.png

115 Bytes | W: | H:

pixmaps/canvas.png
pixmaps/canvas.png
pixmaps/canvas.png
pixmaps/canvas.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/chart.png

3.09 KB | W: | H:

pixmaps/chart.png

235 Bytes | W: | H:

pixmaps/chart.png
pixmaps/chart.png
pixmaps/chart.png
pixmaps/chart.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/checkbox.png

3.21 KB | W: | H:

pixmaps/checkbox.png

179 Bytes | W: | H:

pixmaps/checkbox.png
pixmaps/checkbox.png
pixmaps/checkbox.png
pixmaps/checkbox.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/colorchooser.png

3.41 KB | W: | H:

pixmaps/colorchooser.png

458 Bytes | W: | H:

pixmaps/colorchooser.png
pixmaps/colorchooser.png
pixmaps/colorchooser.png
pixmaps/colorchooser.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/combobox.png

3.27 KB | W: | H:

pixmaps/combobox.png

164 Bytes | W: | H:

pixmaps/combobox.png
pixmaps/combobox.png
pixmaps/combobox.png
pixmaps/combobox.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/desktopicon.png

3.31 KB | W: | H:

pixmaps/desktopicon.png

226 Bytes | W: | H:

pixmaps/desktopicon.png
pixmaps/desktopicon.png
pixmaps/desktopicon.png
pixmaps/desktopicon.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/drawingarea.png

3.83 KB | W: | H:

pixmaps/drawingarea.png

689 Bytes | W: | H:

pixmaps/drawingarea.png
pixmaps/drawingarea.png
pixmaps/drawingarea.png
pixmaps/drawingarea.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/entry.png

2.94 KB | W: | H:

pixmaps/entry.png

125 Bytes | W: | H:

pixmaps/entry.png
pixmaps/entry.png
pixmaps/entry.png
pixmaps/entry.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/filechooser.png

3.58 KB | W: | H:

pixmaps/filechooser.png

198 Bytes | W: | H:

pixmaps/filechooser.png
pixmaps/filechooser.png
pixmaps/filechooser.png
pixmaps/filechooser.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/filler.png

2.98 KB | W: | H:

pixmaps/filler.png

143 Bytes | W: | H:

pixmaps/filler.png
pixmaps/filler.png
pixmaps/filler.png
pixmaps/filler.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/fontchooser.png

3.22 KB | W: | H:

pixmaps/fontchooser.png

175 Bytes | W: | H:

pixmaps/fontchooser.png
pixmaps/fontchooser.png
pixmaps/fontchooser.png
pixmaps/fontchooser.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/image.png

3.96 KB | W: | H:

pixmaps/image.png

269 Bytes | W: | H:

pixmaps/image.png
pixmaps/image.png
pixmaps/image.png
pixmaps/image.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/list.png

3.21 KB | W: | H:

pixmaps/list.png

135 Bytes | W: | H:

pixmaps/list.png
pixmaps/list.png
pixmaps/list.png
pixmaps/list.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/listitem.png

3.2 KB | W: | H:

pixmaps/listitem.png

95 Bytes | W: | H:

pixmaps/listitem.png
pixmaps/listitem.png
pixmaps/listitem.png
pixmaps/listitem.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/menubar.png

3.04 KB | W: | H:

pixmaps/menubar.png

183 Bytes | W: | H:

pixmaps/menubar.png
pixmaps/menubar.png
pixmaps/menubar.png
pixmaps/menubar.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/menuitem.png

3.23 KB | W: | H:

pixmaps/menuitem.png

127 Bytes | W: | H:

pixmaps/menuitem.png
pixmaps/menuitem.png
pixmaps/menuitem.png
pixmaps/menuitem.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/progressbar.png

3.35 KB | W: | H:

pixmaps/progressbar.png

138 Bytes | W: | H:

pixmaps/progressbar.png
pixmaps/progressbar.png
pixmaps/progressbar.png
pixmaps/progressbar.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/pushbutton.png

3.17 KB | W: | H:

pixmaps/pushbutton.png

181 Bytes | W: | H:

pixmaps/pushbutton.png
pixmaps/pushbutton.png
pixmaps/pushbutton.png
pixmaps/pushbutton.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/radiobutton.png

3.91 KB | W: | H:

pixmaps/radiobutton.png

257 Bytes | W: | H:

pixmaps/radiobutton.png
pixmaps/radiobutton.png
pixmaps/radiobutton.png
pixmaps/radiobutton.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/ruler.png

3.19 KB | W: | H:

pixmaps/ruler.png

138 Bytes | W: | H:

pixmaps/ruler.png
pixmaps/ruler.png
pixmaps/ruler.png
pixmaps/ruler.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/scrollbar.png

3.18 KB | W: | H:

pixmaps/scrollbar.png

344 Bytes | W: | H:

pixmaps/scrollbar.png
pixmaps/scrollbar.png
pixmaps/scrollbar.png
pixmaps/scrollbar.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/scrollpane.png

3.13 KB | W: | H:

pixmaps/scrollpane.png

339 Bytes | W: | H:

pixmaps/scrollpane.png
pixmaps/scrollpane.png
pixmaps/scrollpane.png
pixmaps/scrollpane.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/slider.png

3.31 KB | W: | H:

pixmaps/slider.png

164 Bytes | W: | H:

pixmaps/slider.png
pixmaps/slider.png
pixmaps/slider.png
pixmaps/slider.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/spinbutton.png

3.1 KB | W: | H:

pixmaps/spinbutton.png

206 Bytes | W: | H:

pixmaps/spinbutton.png
pixmaps/spinbutton.png
pixmaps/spinbutton.png
pixmaps/spinbutton.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/splitpane.png

3.01 KB | W: | H:

pixmaps/splitpane.png

118 Bytes | W: | H:

pixmaps/splitpane.png
pixmaps/splitpane.png
pixmaps/splitpane.png
pixmaps/splitpane.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/statusbar.png

3.01 KB | W: | H:

pixmaps/statusbar.png

116 Bytes | W: | H:

pixmaps/statusbar.png
pixmaps/statusbar.png
pixmaps/statusbar.png
pixmaps/statusbar.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/table.png

2.88 KB | W: | H:

pixmaps/table.png

120 Bytes | W: | H:

pixmaps/table.png
pixmaps/table.png
pixmaps/table.png
pixmaps/table.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/text.png

3.04 KB | W: | H:

pixmaps/text.png

148 Bytes | W: | H:

pixmaps/text.png
pixmaps/text.png
pixmaps/text.png
pixmaps/text.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/toolbar.png

3.22 KB | W: | H:

pixmaps/toolbar.png

187 Bytes | W: | H:

pixmaps/toolbar.png
pixmaps/toolbar.png
pixmaps/toolbar.png
pixmaps/toolbar.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/tree.png

3.04 KB | W: | H:

pixmaps/tree.png

158 Bytes | W: | H:

pixmaps/tree.png
pixmaps/tree.png
pixmaps/tree.png
pixmaps/tree.png
  • 2-up
  • Swipe
  • Onion skin
pixmaps/treetable.png

3.15 KB | W: | H:

pixmaps/treetable.png

158 Bytes | W: | H:

pixmaps/treetable.png
pixmaps/treetable.png
pixmaps/treetable.png
pixmaps/treetable.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -13,6 +13,7 @@ is available at U{http://www.opensource.org/licenses/bsd-license.php}
import gtk
from accerciser.plugin import ViewportPlugin
from accerciser.i18n import _, N_
import pyatspi
class DemoViewport(ViewportPlugin):
plugin_name = N_('API Browser')
......@@ -74,24 +75,12 @@ class DemoViewport(ViewportPlugin):
def onAccChanged(self, acc):
self.acc = acc
ints = self._getInterfaces(acc)
ints = pyatspi.listInterfaces(acc)
model = self.iface_combo.get_model()
model.clear()
for iface in ints:
self.iface_combo.append_text(iface)
self.iface_combo.set_active(0)
def _getInterfaces(self, acc):
ints = []
for func in [getattr(acc, f) for f in dir(acc) if f.startswith('query')]:
try:
func()
except:
continue
else:
ints.append(func.func_name.replace('query', ''))
ints.sort()
return ints
def _refreshAttribs(self, widget):
iface = self.iface_combo.get_active_text()
......
......@@ -55,18 +55,6 @@ class InterfaceViewer(ViewportPlugin):
section = _InterfaceSection(glade_xml, self.node, iface_name)
section.disable()
def _getInterfaces(self, acc):
interfaces = []
for func in [getattr(acc, f) for f in dir(acc) if f.startswith('query')]:
try:
func()
except:
continue
else:
interfaces.append(func.func_name.replace('query', ''))
interfaces.sort()
return interfaces
def onAccChanged(self, acc):
role = acc.getRoleName()
name = acc.name
......@@ -75,7 +63,7 @@ class InterfaceViewer(ViewportPlugin):
else:
role_name = role
self.label_role.set_markup('<b>%s</b>' % role_name)
interfaces = self._getInterfaces(acc)
interfaces = pyatspi.listInterfaces(acc)
for section_obj in self.sections:
section_obj.disable()
if section_obj.interface_name in interfaces:
......
......@@ -219,7 +219,8 @@ Peter Parente &lt;pparent@us.ibm.com&gt;</property>
<property name="documenters">Eitan Isaacson &lt;eitan@ascender.com&gt;</property>
<property name="translator_credits" translatable="yes" comments="TRANSLATORS: Replace this string with your names, one name per line.">translator-credits</property>
<property name="artists">Eitan Isaacson &lt;eitan@ascender.com&gt;
James Stipp &lt;James_Stipp@us.ibm.com&gt;</property>
James Stipp &lt;James_Stipp@us.ibm.com&gt;
Vincent Geddes &lt;vincent.geddes@gmail.com&gt;</property>
<property name="logo_icon_name">accerciser</property>
<property name="wrap_license">True</property>
<signal name="response" handler="_onAboutResponse"/>
......
......@@ -217,9 +217,6 @@ class MainWindow(Tools):
for paned_name in ('hpaned', 'vpaned'):
paned = self.main_xml.get_widget(paned_name)
cl.set_int(GCONF_GENERAL+'/'+paned_name, paned.get_position())
for name, ob in pyatspi.Registry.observers.items():
ob.unregister(pyatspi.Registry.reg, name)
self.acc_treeview.destroy()
self.plugin_manager.close()
def _onQuit(self, widget):
......
......@@ -24,96 +24,6 @@ ICONS_PATH = os.path.join(sys.prefix, 'share',
if not os.path.exists(ICONS_PATH):
ICONS_PATH = os.path.join(os.path.split(os.getcwd())[0], 'pixmaps')
role_to_icon = {
ROLE_ACCELERATOR_LABEL : 'acceleratorlabel',
ROLE_ALERT : 'alert',
ROLE_ANIMATION : 'animation',
ROLE_APPLICATION : 'desktopframe', # Temporary
ROLE_ARROW : 'grip', # Temporary
ROLE_AUTOCOMPLETE : 'combobox', # Temporary
ROLE_CALENDAR : 'calendar',
ROLE_CANVAS : 'canvas',
ROLE_CAPTION : 'helpballoon', # Temporary
ROLE_CHART : 'chart',
ROLE_CHECK_BOX : 'checkbox',
ROLE_CHECK_MENU_ITEM : 'checkbox', # Temporary
ROLE_COLOR_CHOOSER : 'colorchooser',
ROLE_COLUMN_HEADER : 'columnheader',
ROLE_COMBO_BOX : 'combobox',
ROLE_DATE_EDITOR : 'calendar', # Temporary
ROLE_DESKTOP_FRAME : 'desktopframe',
ROLE_DESKTOP_ICON : 'desktopicon',
ROLE_DIAL : 'dial',
ROLE_DIALOG : 'desktopframe', # Temporary
ROLE_DIRECTORY_PANE : 'directorypane',
ROLE_DOCUMENT_FRAME : 'filler', # Temporary
ROLE_DRAWING_AREA : 'drawingarea',
ROLE_EDITBAR : 'combobox', # Temporary
ROLE_EMBEDDED : 'embedded',
ROLE_ENTRY : 'entry',
ROLE_EXTENDED : 'filler', # Temporary
ROLE_FILE_CHOOSER : 'filechooser',
ROLE_FILLER : 'filler',
ROLE_FOCUS_TRAVERSABLE : 'filler', # Temporary
ROLE_FONT_CHOOSER : 'fontchooser',
ROLE_FOOTER : 'label', # Temporary
ROLE_FRAME : 'filler', # Temporary
ROLE_GLASS_PANE : 'drawingarea', # Temporary
ROLE_HEADER : 'label', # Temporary
ROLE_HEADING : 'heading',
ROLE_HTML_CONTAINER : 'htmlcontainer',
ROLE_ICON : 'imagemap', # Temporary
ROLE_IMAGE : 'image',
ROLE_INTERNAL_FRAME : 'filler', # Temporary
ROLE_INVALID : 'invalid',
ROLE_LABEL : 'label',
ROLE_LAYERED_PANE : 'drawingarea', # Temporary
ROLE_LIST : 'list',
ROLE_LIST_ITEM : 'listitem',
ROLE_MENU : 'menuitem', # Temporary
ROLE_MENU_BAR : 'menubar', # Temporary
ROLE_MENU_ITEM : 'menuitem',
ROLE_OPTION_PANE : 'filler', # Temporary
ROLE_PAGE : 'filler', # Temporary
ROLE_PAGE_TAB : 'label',
ROLE_PAGE_TAB_LIST : 'filler', # Temporary
ROLE_PANEL : 'filler', # Temporary
ROLE_PARAGRAPH : 'filler', # Temporary
ROLE_PASSWORD_TEXT : 'passwordtext', # Temporary
ROLE_POPUP_MENU : 'menuitem', # Temporary
ROLE_PROGRESS_BAR : 'progressbar',
ROLE_PUSH_BUTTON : 'pushbutton',
ROLE_RADIO_BUTTON : 'radiobutton',
ROLE_RADIO_MENU_ITEM : 'radiomenuitem',
ROLE_ROOT_PANE : 'filler', # Temporary
ROLE_ROW_HEADER : 'row', # Temporary
ROLE_RULER : 'ruler',
ROLE_SCROLL_BAR : 'scrollbar',
ROLE_SCROLL_PANE : 'scrollpane',
ROLE_SECTION : 'section',
ROLE_SEPARATOR: 'seperator',
ROLE_SLIDER : 'slider',
ROLE_SPIN_BUTTON : 'spinbutton',
ROLE_SPLIT_PANE : 'splitpane',
ROLE_STATUS_BAR : 'statusbar',
ROLE_TABLE : 'table',
ROLE_TABLE_CELL : 'tablecell',
ROLE_TABLE_COLUMN_HEADER : 'column', # Temporary
ROLE_TABLE_ROW_HEADER : 'row', # Temporary
ROLE_TEAROFF_MENU_ITEM : 'menuitem', # Temporary
ROLE_TERMINAL : 'terminal',
ROLE_TEXT : 'text',
ROLE_TOGGLE_BUTTON : 'checkbox', # Temporary
ROLE_TOOL_BAR : 'toolbar',
ROLE_TOOL_TIP : 'tooltip',
ROLE_TREE : 'tree',
ROLE_TREE_TABLE : 'treetable',
ROLE_UNKNOWN : 'filler', # Temporary
ROLE_VIEWPORT : 'filler', # Temporary
ROLE_WINDOW : 'desktopframe' # Temporary
}
def getIcon(acc):
'''
Loads an icon for the given application or accessible widget. Tries to use
......@@ -140,8 +50,7 @@ def getIcon(acc):
return win.get_mini_icon()
return None
else:
# try using the role map or collapsing spaces
name = role_to_icon.get(role) or role_name.replace(' ', '')
name = role_name.replace(' ', '')
try:
fn = os.path.join(ICONS_PATH, '%s.png' % name)
return gtk.gdk.pixbuf_new_from_file(fn)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment