diff options
author | James Booth <boothj5@gmail.com> | 2014-03-04 22:59:09 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-03-04 22:59:09 +0000 |
commit | b5171cb054c9d9f4efb2ddb69c41a922b14f0aab (patch) | |
tree | 433eeae5b505256fef63436145749f6b6069ec1d /src | |
parent | 3f73a55cb0e1f25b1052bff9a0c769244dbb830e (diff) | |
download | profani-tty-b5171cb054c9d9f4efb2ddb69c41a922b14f0aab.tar.gz |
Added configure checks to enable desktop notifications on OSX
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/notifier.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/notifier.c b/src/ui/notifier.c index 7c366434..16fd814f 100644 --- a/src/ui/notifier.c +++ b/src/ui/notifier.c @@ -206,6 +206,7 @@ _notify(const char * const message, int timeout, Shell_NotifyIcon(NIM_MODIFY, &nid); #endif +#ifdef HAVE_OSXNOTIFY GString *notify_command = g_string_new("terminal-notifier -title 'Profanity' -message '"); g_string_append(notify_command, message); g_string_append(notify_command, "'"); @@ -229,6 +230,7 @@ _notify(const char * const message, int timeout, } g_string_free(notify_command, TRUE); +#endif } void |