From d6e3388922276941a4266b743e094dc1bb404373 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 18 Apr 2013 08:48:25 -0400 Subject: alarm-queue: Remove the "mail notifications not supported" dialog This dialog is all kinds of lame, not to mention ugly. It tends to pop up when evolution-alarm-notify starts and often steals input focus from the normal reminder dialog that pops up overtop of it. Let's not apologize for features not implemented. Instead of alerting the user that we'll show a normal reminder dialog in lieu of sending an email reminder, just show a normal reminder dialog. (cherry picked from commit 2f47b719dd129eb5821c2b186455c979e043f585) --- calendar/alarm-notify/alarm-queue.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/calendar/alarm-notify/alarm-queue.c b/calendar/alarm-notify/alarm-queue.c index 2270879646..7e4961b786 100644 --- a/calendar/alarm-notify/alarm-queue.c +++ b/calendar/alarm-notify/alarm-queue.c @@ -1867,35 +1867,12 @@ mail_notification (time_t trigger, CompQueuedAlarms *cqa, gpointer alarm_id) { - GtkWidget *container; - GtkWidget *dialog; - GtkWidget *label; - - /* FIXME */ - - debug (("...")); - if (!e_client_check_capability ( E_CLIENT (cqa->parent_client->cal_client), CAL_STATIC_CAPABILITY_NO_EMAIL_ALARMS)) return; - dialog = gtk_dialog_new_with_buttons ( - _("Warning"), NULL, 0, - GTK_STOCK_OK, GTK_RESPONSE_CANCEL, - NULL); - label = gtk_label_new ( - _("Evolution does not support calendar reminders with\n" - "email notifications yet, but this reminder was\n" - "configured to send an email. Evolution will display\n" - "a normal reminder dialog box instead.")); - gtk_widget_show (label); - - container = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); - gtk_box_pack_start (GTK_BOX (container), label, TRUE, TRUE, 4); - - gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); + /* FIXME Implement this. */ } /* Performs notification of a procedure alarm */ -- cgit v1.2.3