aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-09-07 21:17:48 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-14 20:09:02 +0800
commitd427dce278c5df85b9bd6119b7582254f12c3a09 (patch)
tree9a58644005d46626e3af69cf094dbf41d464ce84
parent1bd7f3ed5cc08714b0251caf61344be328a01ea4 (diff)
downloadgsoc2013-evolution-d427dce278c5df85b9bd6119b7582254f12c3a09.tar
gsoc2013-evolution-d427dce278c5df85b9bd6119b7582254f12c3a09.tar.gz
gsoc2013-evolution-d427dce278c5df85b9bd6119b7582254f12c3a09.tar.bz2
gsoc2013-evolution-d427dce278c5df85b9bd6119b7582254f12c3a09.tar.lz
gsoc2013-evolution-d427dce278c5df85b9bd6119b7582254f12c3a09.tar.xz
gsoc2013-evolution-d427dce278c5df85b9bd6119b7582254f12c3a09.tar.zst
gsoc2013-evolution-d427dce278c5df85b9bd6119b7582254f12c3a09.zip
Bug 658460 - alarm-notify issues runtime warning
Block the default GApplication.activate() method from running.
-rw-r--r--calendar/gui/alarm-notify/alarm-notify.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/calendar/gui/alarm-notify/alarm-notify.c b/calendar/gui/alarm-notify/alarm-notify.c
index 8682011e21..3256e39780 100644
--- a/calendar/gui/alarm-notify/alarm-notify.c
+++ b/calendar/gui/alarm-notify/alarm-notify.c
@@ -257,6 +257,14 @@ alarm_notify_startup (GApplication *application)
}
static void
+alarm_notify_activate (GApplication *application)
+{
+ /* Disregard. This is just here to prevent the default
+ * activate method from running, which issues a warning
+ * if there are no handlers connected to this signal. */
+}
+
+static void
alarm_notify_class_init (AlarmNotifyClass *class)
{
GObjectClass *object_class;
@@ -269,6 +277,7 @@ alarm_notify_class_init (AlarmNotifyClass *class)
application_class = G_APPLICATION_CLASS (class);
application_class->startup = alarm_notify_startup;
+ application_class->activate = alarm_notify_activate;
}
static void