Simplify NotesView
parent
b427b77ed7
commit
13f05246b5
|
@ -169,15 +169,8 @@ class ControlView : DrawingArea {
|
||||||
}
|
}
|
||||||
|
|
||||||
class NotesView : TextView {
|
class NotesView : TextView {
|
||||||
TextBuffer buffer;
|
|
||||||
|
|
||||||
public NotesView() {
|
|
||||||
buffer = new TextBuffer(null);
|
|
||||||
set_buffer(buffer);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set_text(string text) {
|
public void set_text(string text) {
|
||||||
buffer.set_text(text, (int) text.length);
|
buffer.text = text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue