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.h | |
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.h')
-rw-r--r-- | stickynotes/stickynotes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/stickynotes/stickynotes.h b/stickynotes/stickynotes.h index 4073c42e..85574df1 100644 --- a/stickynotes/stickynotes.h +++ b/stickynotes/stickynotes.h @@ -24,6 +24,13 @@ #include <libwnck/libwnck.h> #include <stickynotes_applet.h> +#if GTK_CHECK_VERSION (3, 0, 0) +#include <gtksourceview/gtksource.h> +#else +#include <gtksourceview/gtksourceview.h> +#include <gtksourceview/gtksourcebuffer.h> +#endif + typedef struct { GtkWidget *w_window; /* Sticky Note window */ @@ -48,6 +55,8 @@ typedef struct GtkWidget *w_resize_se; /* Sticky Note resize button (south east) */ GtkWidget *w_resize_sw; /* Sticky Note resize button (south west) */ + GtkSourceBuffer *buffer; /* Sticky Note text buffer for undo/redo */ + GtkToggleAction *ta_lock_toggle_item; /* Lock item in the popup menu */ GtkImage *img_lock; /* Lock image */ |