aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/alarm-queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/alarm-notify/alarm-queue.c')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index bb7508fbcd..531cc115cd 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)
@@ -1530,10 +1532,10 @@ display_notification (time_t trigger, CompQueuedAlarms *cqa,
char *tip;
tip = g_strdup_printf (_("You have %d alarms"), g_list_length (tray_icons_list));
- gtk_status_icon_set_tooltip (tray_icon, tip);
+ gtk_status_icon_set_tooltip_text (tray_icon, tip);
}
else {
- gtk_status_icon_set_tooltip (tray_icon, str);
+ gtk_status_icon_set_tooltip_text (tray_icon, str);
}
g_free (start_str);