Fix for bug #648150 - 'Selected application' and 'Selected accessible' sources...

Fix for bug #648150 - 'Selected application' and 'Selected accessible' sources are ignored in event monitor
parent 0a100422
......@@ -67,7 +67,7 @@ class EventMonitor(ViewportPlugin):
(N_('Clear event log'),
self._onClearlog,
keysyms.t, gdk.MOD1_MASK | gdk.CONTROL_MASK)]
self.source_filter = None
self.main_xml = gtk.Builder()
self.main_xml.set_translation_domain(DOMAIN)
self.main_xml.add_from_file(UI_FILE)
......@@ -79,6 +79,13 @@ class EventMonitor(ViewportPlugin):
self.monitor_toggle = self.main_xml.get_object('monitor_toggle')
self.source_filter = None
self.sources_dict = { \
self.main_xml.get_object('source_everthing') : 'source_everthing', \
self.main_xml.get_object('source_app') : 'source_app', \
self.main_xml.get_object('source_acc') : 'source_acc' \
}
self.listen_list = []
self.node.connect('accessible-changed', self._onNodeUpdated)
......@@ -486,7 +493,7 @@ class EventMonitor(ViewportPlugin):
@param radio_button: Radio button that was selected.
@type radio_button: gtk.RadioButton
'''
self.source_filter = radio_button.get_name()
self.source_filter = self.sources_dict[radio_button]
def _eventFilter(self, event):
'''
......
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