[Xfce4-commits] <thunar-volman:master> Fix compilation without libnotify (bug #6607).
Nick Schermer
noreply at xfce.org
Wed Aug 11 13:28:01 CEST 2010
Updating branch refs/heads/master
to 96904ed21861e1c8c7ca99a51741d032c7365db1 (commit)
from e99147e6b89f5d53b963eb4ed3880af4378eed6e (commit)
commit 96904ed21861e1c8c7ca99a51741d032c7365db1
Author: Samuli Suominen <ssuominen at gentoo.org>
Date: Wed Aug 11 13:27:04 2010 +0200
Fix compilation without libnotify (bug #6607).
thunar-volman/tvm-input-device.c | 2 ++
thunar-volman/tvm-usb-device.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/thunar-volman/tvm-input-device.c b/thunar-volman/tvm-input-device.c
index 1305374..6280b6b 100644
--- a/thunar-volman/tvm-input-device.c
+++ b/thunar-volman/tvm-input-device.c
@@ -120,8 +120,10 @@ tvm_input_device_added (TvmContext *context)
enabled = xfconf_channel_get_bool (context->channel, enabled_property, FALSE);
if (enabled)
{
+#ifdef HAVE_LIBNOTIFY
/* display a detection notification */
tvm_notify (icon, summary, message);
+#endif
/* fetch the command for the input device type and try to run it */
command = xfconf_channel_get_string (context->channel, command_property, NULL);
diff --git a/thunar-volman/tvm-usb-device.c b/thunar-volman/tvm-usb-device.c
index 8fe8191..c5b3613 100644
--- a/thunar-volman/tvm-usb-device.c
+++ b/thunar-volman/tvm-usb-device.c
@@ -79,8 +79,10 @@ tvm_usb_device_added (TvmContext *context)
enabled = xfconf_channel_get_bool (context->channel, enabled_property, FALSE);
if (enabled)
{
+#ifdef HAVE_LIBNOTIFY
/* display a detection notification */
tvm_notify (icon, summary, message);
+#endif
/* fetch the command for the input device type and try to run it */
command = xfconf_channel_get_string (context->channel, command_property, NULL);
More information about the Xfce4-commits
mailing list