accerciser r432 - in trunk: . src/lib/accerciser
- From: eitani svn gnome org
- To: svn-commits-list gnome org
- Subject: accerciser r432 - in trunk: . src/lib/accerciser
- Date: Sun, 27 Jan 2008 03:14:06 +0000 (GMT)
Author: eitani
Date: Sun Jan 27 03:14:06 2008
New Revision: 432
URL: http://svn.gnome.org/viewvc/accerciser?rev=432&view=rev
Log:
* src/lib/accerciser/accerciser.py: Fixed hang when enabling
desktop a11y through accerciser (bug #509805). Thanks Pedro Fragoso.
Modified:
trunk/ChangeLog
trunk/src/lib/accerciser/accerciser.py
Modified: trunk/src/lib/accerciser/accerciser.py
==============================================================================
--- trunk/src/lib/accerciser/accerciser.py (original)
+++ trunk/src/lib/accerciser/accerciser.py Sun Jan 27 03:14:06 2008
@@ -133,19 +133,22 @@
dialog = gtk.MessageDialog(self.window,type=gtk.MESSAGE_ERROR,
buttons=gtk.BUTTONS_YES_NO,
message_format=message)
- response_id = dialog.run()
- dialog.destroy()
- if response_id == gtk.RESPONSE_YES:
- cl = gconf.client_get_default()
- cl.set_bool('/desktop/gnome/interface/accessibility', True)
- dialog = gtk.MessageDialog(
- self.window,
- type=gtk.MESSAGE_INFO,
- buttons=gtk.BUTTONS_OK,
- message_format=_('Note: Changes only take effect after logout.'))
- dialog.run()
- dialog.destroy()
+ dialog.connect('response', self._onNoA11yResponse)
+ dialog.show_all()
+ def _onNoA11yResponse(self, dialog, response_id):
+ dialog.destroy()
+ if response_id == gtk.RESPONSE_YES:
+ cl = gconf.client_get_default()
+ cl.set_bool('/desktop/gnome/interface/accessibility', True)
+ dialog = gtk.MessageDialog(
+ self.window,
+ type=gtk.MESSAGE_INFO,
+ buttons=gtk.BUTTONS_OK,
+ message_format=_('Note: Changes only take effect after logout.'))
+ dialog.connect('response', lambda dia, resp: dia.destroy())
+ dialog.show_all()
+
def _shutDown(self):
'''
Cleans up any object instances that need explicit shutdown.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]