4853: Cannot enable 'child' options of BooleanOption (patch by Adam Stein)

svn: r17456
This commit is contained in:
Jérôme Rapinat 2011-05-08 13:14:49 +00:00
parent bbb03a4057
commit f00516e702

View File

@ -6,6 +6,7 @@
# Copyright (C) 2008 Craig J. Anderson
# Copyright (C) 2009 Nick Hall
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2011 Adam Stein <adam@csh.rit.edu>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -314,9 +315,7 @@ class GuiNumberOption(gtk.SpinButton):
"""
vtype = type(self.__option.get_value())
self.__option.disable_signals()
self.__option.set_value( vtype(self.get_value()) )
self.__option.enable_signals()
def __update_avail(self):
"""
@ -453,9 +452,7 @@ class GuiBooleanOption(gtk.CheckButton):
"""
Handle the change of the value made by the user.
"""
self.__option.disable_signals()
self.__option.set_value( self.get_active() )
self.__option.enable_signals()
def __update_avail(self):
"""