diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-03-18 19:40:13 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-03-18 19:40:13 +0300 |
commit | 7490f99c5821695bcb12080f4dd25d16cceba112 (patch) | |
tree | 2625170fd6491debae0219414516d9e7847c7f9e /main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs | |
parent | 9baa50def5624fa1569b68bce60193f80b07ea63 (diff) |
* MonoDevelop.Gettext.Editor/POEditorWidget.cs: Use the new status
bar model.
* gtk-gui/objects.xml: Flush.
svn path=/trunk/monodevelop/; revision=153854
Diffstat (limited to 'main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs')
-rw-r--r-- | main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs index 7f6ce63127..ec61ce30d7 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs @@ -948,8 +948,10 @@ namespace MonoDevelop.Gettext int number = 1, found = 0; double count = widget.catalog.Count; ListStore newStore = new ListStore (typeof(string), typeof(bool), typeof(string), typeof(string), typeof(CatalogEntry), typeof(Gdk.Color), typeof(int), typeof(Gdk.Color)); + StatusBarContext statusBar = null; DispatchService.GuiSyncDispatch (delegate { - IdeApp.Workbench.StatusBar.BeginProgress (GettextCatalog.GetString ("Update catalog list...")); + statusBar = IdeApp.Workbench.StatusBar.CreateContext (); + statusBar.BeginProgress (GettextCatalog.GetString ("Update catalog list...")); }); try { @@ -959,7 +961,7 @@ namespace MonoDevelop.Gettext number++; if (number % 50 == 0) { DispatchService.GuiSyncDispatch (delegate { - IdeApp.Workbench.StatusBar.SetProgressFraction (Math.Min (1.0, Math.Max (0.0, number / (double)count))); + statusBar.SetProgressFraction (Math.Min (1.0, Math.Max (0.0, number / (double)count))); }); } if (!widget.ShouldFilter (entry, widget.filter)) { @@ -981,7 +983,7 @@ namespace MonoDevelop.Gettext DispatchService.GuiSyncDispatch (delegate { widget.store.Dispose (); widget.treeviewEntries.Model = widget.store = newStore; - IdeApp.Workbench.StatusBar.EndProgress (); + statusBar.EndProgress (); IdeApp.Workbench.StatusBar.ShowMessage (string.Format (GettextCatalog.GetPluralString ("Found {0} catalog entry.", "Found {0} catalog entries.", found), found)); }); } /*else { |