From 13f05246b557324e0401246754b4c7d53ea53055 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Tue, 17 Jan 2012 15:12:36 +0100 Subject: [PATCH] Simplify NotesView --- src/ControlWindow.vala | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/ControlWindow.vala b/src/ControlWindow.vala index ac95eb1..d63833e 100644 --- a/src/ControlWindow.vala +++ b/src/ControlWindow.vala @@ -169,15 +169,8 @@ class ControlView : DrawingArea { } class NotesView : TextView { - TextBuffer buffer; - - public NotesView() { - buffer = new TextBuffer(null); - set_buffer(buffer); - } - public void set_text(string text) { - buffer.set_text(text, (int) text.length); + buffer.text = text; } }