aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/alarm.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-02-23 18:28:19 +0800
committerMilan Crha <mcrha@redhat.com>2010-02-23 18:28:19 +0800
commitb168fcbe1b705ba710d1e7b1b3e4feeb32c13276 (patch)
tree4f27a2994e37c913fb754ba58319c1bfc5ec0554 /calendar/gui/alarm-notify/alarm.c
parentab643c3dfccd2b72c5dbd7c10856459b634ba6a2 (diff)
downloadgsoc2013-evolution-b168fcbe1b705ba710d1e7b1b3e4feeb32c13276.tar
gsoc2013-evolution-b168fcbe1b705ba710d1e7b1b3e4feeb32c13276.tar.gz
gsoc2013-evolution-b168fcbe1b705ba710d1e7b1b3e4feeb32c13276.tar.bz2
gsoc2013-evolution-b168fcbe1b705ba710d1e7b1b3e4feeb32c13276.tar.lz
gsoc2013-evolution-b168fcbe1b705ba710d1e7b1b3e4feeb32c13276.tar.xz
gsoc2013-evolution-b168fcbe1b705ba710d1e7b1b3e4feeb32c13276.tar.zst
gsoc2013-evolution-b168fcbe1b705ba710d1e7b1b3e4feeb32c13276.zip
Do less output on an evolution-alarm-notify console
Diffstat (limited to 'calendar/gui/alarm-notify/alarm.c')
-rw-r--r--calendar/gui/alarm-notify/alarm.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/calendar/gui/alarm-notify/alarm.c b/calendar/gui/alarm-notify/alarm.c
index 9b37501ffc..14f66a68fb 100644
--- a/calendar/gui/alarm-notify/alarm.c
+++ b/calendar/gui/alarm-notify/alarm.c
@@ -32,6 +32,8 @@
#include <gdk/gdk.h>
#include "alarm.h"
+#define d(x)
+
/* Our glib timeout */
@@ -87,7 +89,7 @@ alarm_ready_cb (gpointer data)
now = time (NULL);
- g_message ("Alarm callback!");
+ d(g_message ("Alarm callback!"));
while (alarms) {
AlarmRecord *notify_id, *ar;
AlarmRecord ar_copy;
@@ -97,7 +99,7 @@ alarm_ready_cb (gpointer data)
if (ar->trigger > now)
break;
- g_message ("Process alarm with trigger %lu", ar->trigger);
+ d(g_message ("Process alarm with trigger %lu", ar->trigger));
notify_id = ar;
ar_copy = *ar;
@@ -150,9 +152,9 @@ setup_timeout (void)
now = time (NULL);
/* Add the time out */
- g_message ("Setting timeout for %d %lu %lu", diff, ar->trigger, now);
- g_message (" %s", ctime (&ar->trigger));
- g_message (" %s", ctime (&now));
+ d(g_message ("Setting timeout for %d %lu %lu", diff, ar->trigger, now));
+ d(g_message (" %s", ctime (&ar->trigger)));
+ d(g_message (" %s", ctime (&now)));
timeout_id = g_timeout_add_seconds (diff, alarm_ready_cb, NULL);
}
@@ -247,7 +249,7 @@ alarm_remove (gpointer alarm)
l = g_list_find (alarms, ar);
if (!l) {
- g_message (G_STRLOC ": Requested removal of nonexistent alarm!");
+ g_warning (G_STRLOC ": Requested removal of nonexistent alarm!");
return;
}