Added configure checks to enable desktop notifications on OSX

This commit is contained in:
James Booth
2014-03-04 22:59:09 +00:00
parent 3f73a55cb0
commit b5171cb054
2 changed files with 32 additions and 7 deletions

View File

@@ -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