summaryrefslogtreecommitdiff
path: root/plugins/media-keys/msd-media-keys-manager.c
diff options
context:
space:
mode:
authorFriedrich Herbst <[email protected]>2016-01-08 17:33:51 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-10 15:29:41 +0100
commit509d3708f1c0c35956e214e8ba3d04f8408cd69c (patch)
treec0a2b423cf1d1d3a17abd71aa502e5f36ad5a037 /plugins/media-keys/msd-media-keys-manager.c
parentc8ed12f53165e5091cb065642fcb53d8b7513c91 (diff)
downloadmate-settings-daemon-509d3708f1c0c35956e214e8ba3d04f8408cd69c.tar.bz2
mate-settings-daemon-509d3708f1c0c35956e214e8ba3d04f8408cd69c.tar.xz
Add setting to enable/disable the osd
Diffstat (limited to 'plugins/media-keys/msd-media-keys-manager.c')
-rw-r--r--plugins/media-keys/msd-media-keys-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c
index 77fb8c3..c6236c8 100644
--- a/plugins/media-keys/msd-media-keys-manager.c
+++ b/plugins/media-keys/msd-media-keys-manager.c
@@ -410,6 +410,10 @@ dialog_show (MsdMediaKeysManager *manager)
gtk_window_set_screen (GTK_WINDOW (manager->priv->dialog),
manager->priv->current_screen);
+ /* Return if OSD notifications are disabled */
+ if (!g_settings_get_boolean (manager->priv->settings, "enable-osd"))
+ return;
+
/*
* get the window size
* if the window hasn't been mapped, it doesn't necessarily