From c8a85a6aa040c1d2505b957af4cfb4bd39466504 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Thu, 30 Jan 2014 15:58:17 +0100 Subject: 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 --- stickynotes/stickynotes.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'stickynotes/stickynotes.h') 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 #include +#if GTK_CHECK_VERSION (3, 0, 0) +#include +#else +#include +#include +#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 */ -- cgit v1.2.1