From 89f1ec69c9a6674e1e334788c5ac0d67e7e700d8 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 22 Jan 2009 11:50:16 +0000 Subject: [PATCH] Move new gui options to near top of init svn: r11683 --- src/DateEdit.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/DateEdit.py b/src/DateEdit.py index 48eb2094b..21ab5a728 100644 --- a/src/DateEdit.py +++ b/src/DateEdit.py @@ -237,14 +237,16 @@ class DateEditorDialog(ManagedWindow.ManagedWindow): self.stop_year = self.top.get_widget('stop_year') self.stop_year.set_value(self.date.get_stop_year()) + self.dual_dated = self.top.get_widget('dualdated') + self.new_year = self.top.get_widget('newyear') + self.new_year.set_active(self.date.get_new_year()) + # Disable second date controls if not compound date if not self.date.is_compound(): self.stop_day.set_sensitive(0) self.stop_month_box.set_sensitive(0) self.stop_year.set_sensitive(0) - self.dual_dated = self.top.get_widget('dualdated') - # Disable the rest of controls if a text-only date if self.date.get_modifier() == Date.MOD_TEXTONLY: self.start_day.set_sensitive(0) @@ -264,9 +266,6 @@ class DateEditorDialog(ManagedWindow.ManagedWindow): self.calendar_box.set_active(Date.CAL_JULIAN) self.dual_dated.connect('toggled', self.switch_dual_dated) - self.new_year = self.top.get_widget('newyear') - self.new_year.set_active(self.date.get_new_year()) - # The dialog is modal -- since dates don't have names, we don't # want to have several open dialogs, since then the user will # loose track of which is which. Much like opening files.