diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-08-11 13:27:04 +0200 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2010-08-11 13:27:04 +0200 |
commit | 96904ed21861e1c8c7ca99a51741d032c7365db1 (patch) | |
tree | 89da38a9be48cabecdda341cbf244872039052ed /thunar-volman | |
parent | e99147e6b89f5d53b963eb4ed3880af4378eed6e (diff) | |
download | thunar-volman-96904ed21861e1c8c7ca99a51741d032c7365db1.tar.gz |
Fix compilation without libnotify (bug #6607).
Diffstat (limited to 'thunar-volman')
-rw-r--r-- | thunar-volman/tvm-input-device.c | 2 | ||||
-rw-r--r-- | 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); |