summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-09-20 17:19:00 +0300
committermonsta <[email protected]>2017-09-22 15:52:37 +0300
commit3fbc54ed3cb23afaa2476b5eac618e2d99616b38 (patch)
tree1fd2ff978e1d8fdd9acc6279f012677f5c21d1b8 /stickynotes/stickynotes.c
parent42cedf78e5e40846d426a2a56b390d225f1ecc80 (diff)
downloadmate-applets-3fbc54ed3cb23afaa2476b5eac618e2d99616b38.tar.bz2
mate-applets-3fbc54ed3cb23afaa2476b5eac618e2d99616b38.tar.xz
stickynotes: fix text selection
fixes https://github.com/mate-desktop/mate-applets/issues/236 taken from: https://git.gnome.org/browse/gnome-applets/commit/?id=e189ba213c0f8db876dd020d1d80b9f8b576dd75
Diffstat (limited to 'stickynotes/stickynotes.c')
-rw-r--r--stickynotes/stickynotes.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c
index 10428620..cd3517a7 100644
--- a/stickynotes/stickynotes.c
+++ b/stickynotes/stickynotes.c
@@ -292,6 +292,9 @@ stickynote_new_aux (GdkScreen *screen, gint x, gint y, gint w, gint h)
g_object_unref(builder);
+ g_signal_connect_after (note->w_body, "button-press-event",
+ G_CALLBACK (gtk_true), note);
+
g_signal_connect (gtk_text_view_get_buffer(GTK_TEXT_VIEW(note->w_body)),
"changed",
G_CALLBACK (buffer_changed), note);