summaryrefslogtreecommitdiff
path: root/stickynotes
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-09-20 17:19:00 +0300
committermonsta <[email protected]>2017-09-20 17:19:52 +0300
commit6404251c9b44fb9eb2c139597c277a7a89ed9be5 (patch)
treec7d5ef59ad99e10e8e2a9e324b223b1cd6a634bb /stickynotes
parent083132844b262e0fabfd3c734fe5d90521995c2d (diff)
downloadmate-applets-6404251c9b44fb9eb2c139597c277a7a89ed9be5.tar.bz2
mate-applets-6404251c9b44fb9eb2c139597c277a7a89ed9be5.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')
-rw-r--r--stickynotes/stickynotes.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c
index 19ff0abb..6b07b9fe 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);