From 05f3bd4b474eb1eae74f87693c6a9f79a4b97c6f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 12 May 2006 16:30:38 +0000 Subject: [PATCH] fix MonitoredDataType initialization svn: r6627 --- ChangeLog | 3 +++ src/GrampsWidgets.py | 8 +------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4f31601f3..6c7bf808f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-05-12 Don Allingham + * src/GrampsWidgets.py: fix MonitoredDataType initialization + 2006-05-12 Alex Roitman * src/Filters/Makefile.am (pkgdata_PYTHON): Add new files. diff --git a/src/GrampsWidgets.py b/src/GrampsWidgets.py index 29ae268bd..8425a7fb8 100644 --- a/src/GrampsWidgets.py +++ b/src/GrampsWidgets.py @@ -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)