aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-02-19 11:40:14 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-02-19 11:40:14 +0800
commit15b9f361f625d741794afc119724838a5beff89d (patch)
tree0702a7ee5e54dad4f46e3a714c7a817bdfe76900
parent658c9e0c8fdbab3a3f6f2b98213c752332a4cfa5 (diff)
downloadgsoc2013-evolution-15b9f361f625d741794afc119724838a5beff89d.tar
gsoc2013-evolution-15b9f361f625d741794afc119724838a5beff89d.tar.gz
gsoc2013-evolution-15b9f361f625d741794afc119724838a5beff89d.tar.bz2
gsoc2013-evolution-15b9f361f625d741794afc119724838a5beff89d.tar.lz
gsoc2013-evolution-15b9f361f625d741794afc119724838a5beff89d.tar.xz
gsoc2013-evolution-15b9f361f625d741794afc119724838a5beff89d.tar.zst
gsoc2013-evolution-15b9f361f625d741794afc119724838a5beff89d.zip
Rats. gtk_status_icon_set_tooltip_text() is only in 2.16.
Define some temporary macros to work around it. svn path=/trunk/; revision=37292
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c4
-rw-r--r--plugins/mail-notification/mail-notification.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index e644e8a66c..6aefeecf9f 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -55,7 +55,9 @@
#include "e-util/e-popup.h"
#include "e-util/e-error.h"
-
+#if !GTK_CHECK_VERSION(2,16,0)
+#define gtk_status_icon_set_tooltip_text gtk_status_icon_set_tooltip
+#endif
#define d(x)
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c
index e7d0f2f898..89f9daaccb 100644
--- a/plugins/mail-notification/mail-notification.c
+++ b/plugins/mail-notification/mail-notification.c
@@ -54,6 +54,10 @@
#define GCONF_KEY_ENABLED_STATUS GCONF_KEY_ROOT "status-enabled"
#define GCONF_KEY_ENABLED_SOUND GCONF_KEY_ROOT "sound-enabled"
+#if !GTK_CHECK_VERSION(2,16,0)
+#define gtk_status_icon_set_tooltip_text gtk_status_icon_set_tooltip
+#endif
+
static gboolean enabled = FALSE;
static GtkWidget *get_cfg_widget (void);
static GStaticMutex mlock = G_STATIC_MUTEX_INIT;