diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-30 15:58:17 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-30 15:58:17 +0100 |
commit | c8a85a6aa040c1d2505b957af4cfb4bd39466504 (patch) | |
tree | 1d60e06e4504a25bf00918a3ee81e847af72bce1 /stickynotes/stickynotes.ui | |
parent | d15349379583695063e692010bdb44e9974c3f18 (diff) | |
download | mate-applets-c8a85a6aa040c1d2505b957af4cfb4bd39466504.tar.bz2 mate-applets-c8a85a6aa040c1d2505b957af4cfb4bd39466504.tar.xz |
stickynotes: Add undo/redo feature
Using GtkSourceView instead of GtkTextView
This adds new dependency to package to build this applet
Closes #17
https://github.com/mate-desktop/mate-applets/issues/17
Diffstat (limited to 'stickynotes/stickynotes.ui')
-rw-r--r-- | stickynotes/stickynotes.ui | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/stickynotes/stickynotes.ui b/stickynotes/stickynotes.ui index 14bcdf3f..cc98a1e4 100644 --- a/stickynotes/stickynotes.ui +++ b/stickynotes/stickynotes.ui @@ -775,6 +775,9 @@ <action-widget response="-5">button4</action-widget> </action-widgets> </object> + <object class="GtkSourceBuffer" id="body_buffer"> + <property name="max_undo_levels">-1</property> + </object> <object class="GtkWindow" id="stickynote_window"> <property name="title" translatable="yes">Sticky Note</property> <child> @@ -846,12 +849,13 @@ <property name="hscrollbar_policy">never</property> <property name="vscrollbar_policy">never</property> <child> - <object class="GtkTextView" id="body_text"> + <object class="GtkSourceView" id="body_text"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="wrap_mode">word</property> <property name="left_margin">4</property> <property name="right_margin">4</property> + <property name="buffer">body_buffer</property> </object> </child> </object> |