[evolution] Bug 658460 - alarm-notify issues runtime warning
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 658460 - alarm-notify issues runtime warning
- Date: Wed, 7 Sep 2011 13:18:30 +0000 (UTC)
commit 5e544814c7855527c754c19235b16b028494ca32
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Sep 7 09:17:48 2011 -0400
Bug 658460 - alarm-notify issues runtime warning
Block the default GApplication.activate() method from running.
calendar/gui/alarm-notify/alarm-notify.c | 9 +++++++++
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 8682011..3256e39 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]