diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-10-26 11:57:11 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-10-26 11:57:50 +0400 |
commit | d11c606e5b8568c4fd3366d6f6d32a1ec556b8f9 (patch) | |
tree | 702a36198bc5a991fbaa3fd7f37d391091db56b3 /main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs | |
parent | e7127cbcf3aebc3638f1ed5215480b4ce65eee18 (diff) |
[Undo] Removed begin/end atomic undo action functions & replaced them
with an IDispoable pattern.
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, 6 insertions, 2 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 b45dfefa45..c1af5850df 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs @@ -1267,12 +1267,16 @@ namespace MonoDevelop.Gettext undoStack.Push (change); } - public void BeginAtomicUndo () + class DisposeStub : IDisposable { + public void Dispose () + { + } } - public void EndAtomicUndo () + public IDisposable OpenUndoGroup () { + return new DisposeStub (); } public bool EnableUndo { |