summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes_applet_callbacks.c
diff options
context:
space:
mode:
authormate <[email protected]>2022-05-05 14:08:24 +0800
committerraveit65 <[email protected]>2023-05-16 18:49:07 +0200
commitefc5f4f7a286ead1ee6f0957cd884077b4d8db0b (patch)
tree11a29971d950d2de72176723947c9d7b28609aa0 /stickynotes/stickynotes_applet_callbacks.c
parentaf7a84176c33f3eb22cea5f94c45caa6bfb408b6 (diff)
downloadmate-applets-efc5f4f7a286ead1ee6f0957cd884077b4d8db0b.tar.bz2
mate-applets-efc5f4f7a286ead1ee6f0957cd884077b4d8db0b.tar.xz
Add click-hide key to the stickynotes GSettings
Diffstat (limited to 'stickynotes/stickynotes_applet_callbacks.c')
-rw-r--r--stickynotes/stickynotes_applet_callbacks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c
index 6481bb82..d3061a17 100644
--- a/stickynotes/stickynotes_applet_callbacks.c
+++ b/stickynotes/stickynotes_applet_callbacks.c
@@ -67,6 +67,10 @@ stickynote_show_notes (gboolean visible)
GList *l;
if (stickynotes->visible == visible) return;
+
+ if (g_settings_get_boolean (stickynotes->settings, "click-hide") && !visible)
+ return;
+
stickynotes->visible = visible;
for (l = stickynotes->notes; l; l = l->next) {