From 5e544814c7855527c754c19235b16b028494ca32 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 7 Sep 2011 09:17:48 -0400 Subject: Bug 658460 - alarm-notify issues runtime warning Block the default GApplication.activate() method from running. --- calendar/gui/alarm-notify/alarm-notify.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'calendar/gui') 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 @@ -256,6 +256,14 @@ alarm_notify_startup (GApplication *application) gtk_icon_theme_append_search_path (icon_theme, EVOLUTION_ICONDIR); } +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) { @@ -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 -- cgit