From cc4a23045dd111081b2b3dbe86617268763944f5 Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Thu, 7 Feb 2008 09:20:44 +0000 Subject: 2008-02-07 Stephane Delcroix * MainWindow.cs: move the LoadConfiguration part at the end of the ctor. svn path=/trunk/mono-tools/; revision=95123 --- gui-compare/ChangeLog | 5 +++++ gui-compare/MainWindow.cs | 24 +++++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) (limited to 'gui-compare') diff --git a/gui-compare/ChangeLog b/gui-compare/ChangeLog index 3bf573dd..bb8f3b75 100644 --- a/gui-compare/ChangeLog +++ b/gui-compare/ChangeLog @@ -1,3 +1,8 @@ +2008-02-07 Stephane Delcroix + + * MainWindow.cs: move the LoadConfiguration part at the end of + the ctor. + 2008-02-01 Andrew Jorgensen * Makefile.am: gui-compare is generated by autotools diff --git a/gui-compare/MainWindow.cs b/gui-compare/MainWindow.cs index 1ef317a2..d9a26cea 100644 --- a/gui-compare/MainWindow.cs +++ b/gui-compare/MainWindow.cs @@ -105,17 +105,9 @@ public partial class MainWindow: Gtk.Window { Build (); notebook1.Page = 1; - - // - // Load configuration - // - Config = GuiCompare.Config.GetConfig (); - ShowMissing.Active = Config.ShowMissing; - ShowErrors.Active = Config.ShowErrors; - ShowExtra.Active = Config.ShowExtra; - ShowPresent.Active = Config.ShowPresent; - ShowTodo.Active = Config.ShowTodo; + Config = GuiCompare.Config.GetConfig (); + // // Configure the GUI // @@ -227,6 +219,16 @@ public partial class MainWindow: Gtk.Window } } }; + + // + // Load configuration + // + ShowMissing.Active = Config.ShowMissing; + ShowErrors.Active = Config.ShowErrors; + ShowExtra.Active = Config.ShowExtra; + ShowPresent.Active = Config.ShowPresent; + ShowTodo.Active = Config.ShowTodo; + } // A handle to our menu bar @@ -547,4 +549,4 @@ public partial class MainWindow: Gtk.Window cc.Destroy (); } -} \ No newline at end of file +} -- cgit v1.2.3