From 5898e342660b9bda177eb08ab3254c3c8605ac20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Mon, 23 Jun 2014 10:19:11 +0200 Subject: [Gettext] Track API changes. --- .../MonoDevelop.Gettext.Editor/POEditorWidget.cs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 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 e39acc0b20..c99b178b57 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs @@ -56,7 +56,6 @@ namespace MonoDevelop.Gettext ListStore foundInStore; Catalog catalog; string poFileName; - ITextEditorOptions options = new TextEditorOptions (); TextEditor texteditorOriginal = DocumentFactory.CreateNewEditor (); TextEditor texteditorPlural = DocumentFactory.CreateNewEditor (); @@ -240,20 +239,19 @@ namespace MonoDevelop.Gettext widgets.Add (this); checkbuttonWhiteSpaces.Toggled += CheckbuttonWhiteSpacesToggled; - options.ShowLineNumberMargin = false; - options.ShowFoldMargin = false; - options.ShowIconMargin = false; - options.ColorScheme = IdeApp.Preferences.ColorScheme; - options.FontName = PropertyService.Get ("FontName"); - + this.scrolledwindowOriginal.Child = this.texteditorOriginal.GetGtkWidget (); this.scrolledwindowPlural.Child = this.texteditorPlural.GetGtkWidget (); this.scrolledwindowOriginal.Child.Show (); this.scrolledwindowPlural.Child.Show (); scrolledwindowOriginal.Child.ModifyBase (Gtk.StateType.Normal, Style.Base (Gtk.StateType.Insensitive)); scrolledwindowPlural.Child.ModifyBase (Gtk.StateType.Normal, Style.Base (Gtk.StateType.Insensitive)); - this.texteditorOriginal.Options = options; - this.texteditorPlural.Options = options; + this.texteditorOriginal.Options.ShowLineNumberMargin = false; + this.texteditorOriginal.Options.ShowFoldMargin = false; + this.texteditorOriginal.Options.ShowIconMargin = false; + this.texteditorPlural.Options.ShowLineNumberMargin = false; + this.texteditorPlural.Options.ShowFoldMargin = false; + this.texteditorPlural.Options.ShowIconMargin = false; this.texteditorOriginal.IsReadOnly = true; this.texteditorPlural.IsReadOnly = true; } @@ -485,7 +483,6 @@ namespace MonoDevelop.Gettext ScrolledWindow window = new ScrolledWindow (); var textView = DocumentFactory.CreateNewEditor (); window.Child = textView.GetGtkWidget (); - textView.Options = options; textView.TextChanged += delegate { if (this.isUpdating) return; -- cgit v1.2.3