void AddTextview (int index) { ScrolledWindow window = new ScrolledWindow (); Mono.TextEditor.TextEditor textView = new Mono.TextEditor.TextEditor (); window.Child = textView; textView.Options = options; textView.Document.TextReplaced += delegate { if (this.isUpdating) return; try { if (this.currentEntry != null) { string escapedText = textView.Document.Text; string oldText = this.currentEntry.GetTranslation (index); this.currentEntry.SetTranslation (escapedText, index); AddChange (this.currentEntry, oldText, escapedText, index); } IdeApp.Workbench.StatusBar.ShowReady (); textView.ModifyBase (Gtk.StateType.Normal, Style.Base (Gtk.StateType.Normal)); } catch (System.Exception e) { IdeApp.Workbench.StatusBar.ShowError (e.Message); textView.ModifyBase (Gtk.StateType.Normal, errorColor); } treeviewEntries.QueueDraw (); UpdateProgressBar (); UpdateTasks (); }; Label label = new Label (); label.Text = this.Catalog.PluralFormsDescriptions [index]; window.ShowAll (); this.notebookTranslated.AppendPage (window, label); }