fix MonitoredDataType initialization
svn: r6627
This commit is contained in:
		@@ -1,3 +1,6 @@
 | 
			
		||||
2006-05-12  Don Allingham  <don@gramps-project.org>
 | 
			
		||||
	* src/GrampsWidgets.py: fix MonitoredDataType initialization
 | 
			
		||||
	
 | 
			
		||||
2006-05-12  Alex Roitman  <shura@gramps-project.org>
 | 
			
		||||
	* src/Filters/Makefile.am (pkgdata_PYTHON): Add new files.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -370,13 +370,7 @@ class MonitoredDataType:
 | 
			
		||||
            default,
 | 
			
		||||
            additional=custom_values)
 | 
			
		||||
 | 
			
		||||
        if get_val().is_custom():
 | 
			
		||||
            self.obj.set_active(get_val().get_custom())
 | 
			
		||||
            obj.child.set_text(str(val))
 | 
			
		||||
        else:
 | 
			
		||||
            active = int(get_val())
 | 
			
		||||
            self.obj.set_active(active)
 | 
			
		||||
            
 | 
			
		||||
        self.sel.set_values((int(get_val()),str(get_val())))
 | 
			
		||||
        self.obj.set_sensitive(not readonly)
 | 
			
		||||
        self.obj.connect('changed', self.on_change)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user