[accerciser] Fix for bug #648150 - 'Selected application' and 'Selected accessible' sources are ignored in event
- From: Javier Hernández Antúnez <jhernandez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accerciser] Fix for bug #648150 - 'Selected application' and 'Selected accessible' sources are ignored in event
- Date: Mon, 6 Jun 2011 08:35:34 +0000 (UTC)
commit fd43ce94d75637ab6f6b0d1d3cd96a5ac0e44ba4
Author: Javier Hernández Antúnez <jhernandez emergya es>
Date: Mon Jun 6 02:12:25 2011 +0200
Fix for bug #648150 - 'Selected application' and 'Selected accessible' sources are ignored in event monitor
plugins/event_monitor.py | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/plugins/event_monitor.py b/plugins/event_monitor.py
index 82d66c0..3c818d4 100644
--- a/plugins/event_monitor.py
+++ b/plugins/event_monitor.py
@@ -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):
'''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]