Commit a6cc9e4d authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Do not use status notifier on Windows and Mac OS X.

parent 66eb174a
......@@ -24,7 +24,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <gtkosxapplication.h>
#endif
#define STATUS_NOTIFIER_IS_USABLE GLIB_CHECK_VERSION(2, 26, 0)
#if !defined(WIN32) && !defined(__APPLE__) && GLIB_CHECK_VERSION(2, 26, 0)
#define STATUS_NOTIFIER_IS_USABLE 1
#endif
#include "status_notifier.h"
......@@ -225,7 +227,7 @@ void _linphone_status_icon_init_cb(const _LinphoneStatusIconDesc *desc, void *us
g_free(ctx);
}
#if STATUS_NOTIFIER_IS_USABLE
#ifdef STATUS_NOTIFIER_IS_USABLE
static const _LinphoneStatusIconDesc _linphone_status_icon_impl_status_notifier;
#endif
#ifdef HAVE_GTK_OSX
......@@ -235,7 +237,7 @@ static const _LinphoneStatusIconDesc _linphone_status_icon_impl_gtk_desc;
#endif
void _linphone_status_icon_create_implementations_list(void) {
#if STATUS_NOTIFIER_IS_USABLE
#ifdef STATUS_NOTIFIER_IS_USABLE
_linphone_status_icon_impls = g_slist_append(_linphone_status_icon_impls, (void *)&_linphone_status_icon_impl_status_notifier);
#endif
#if HAVE_GTK_OSX
......@@ -398,7 +400,7 @@ static const _LinphoneStatusIconDesc _linphone_status_icon_impl_gtkosx_app_desc
/* Implementation based on the StatusNotifier Freedesktop standard */
#if STATUS_NOTIFIER_IS_USABLE
#ifdef STATUS_NOTIFIER_IS_USABLE
typedef struct {
int x;
int y;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment