summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file-operations.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-10-23 23:50:34 -0400
committerlukefromdc <[email protected]>2016-10-23 23:50:34 -0400
commit570d6afed8ff62e430f46b3d87870702240ce3e8 (patch)
tree5e88cb203ebe285d1e7552bbb85f640437329d6d /libcaja-private/caja-file-operations.c
parent6404fa33afc5b4961fea47f8eefd07f5b4ff913a (diff)
downloadcaja-570d6afed8ff62e430f46b3d87870702240ce3e8.tar.bz2
caja-570d6afed8ff62e430f46b3d87870702240ce3e8.tar.xz
Add gsettings preference to enable/disable notifications
Defaults to TRUE
Diffstat (limited to 'libcaja-private/caja-file-operations.c')
-rw-r--r--libcaja-private/caja-file-operations.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c
index a1172533..b76ef038 100644
--- a/libcaja-private/caja-file-operations.c
+++ b/libcaja-private/caja-file-operations.c
@@ -200,6 +200,8 @@ caja_application_notify_unmount_show (const gchar *message)
gchar **strings;
strings = g_strsplit (message, "\n", 0);
+ if (!g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_SHOW_NOTIFICATIONS)) return;
+
if (unmount_notify == NULL) {
unmount_notify =
notify_notification_new (strings[0], strings[1],