From 3f529345a9711a3462525619c024b8344f81e356 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 13 Oct 2010 19:17:32 +0200 Subject: Bug #630490 - Not visible calendar color change immediately --- calendar/gui/dialogs/calendar-setup.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c index 5df14cf368..c03e53fd2f 100644 --- a/calendar/gui/dialogs/calendar-setup.c +++ b/calendar/gui/dialogs/calendar-setup.c @@ -30,6 +30,7 @@ #include #include +#include #include #include #include "calendar-setup.h" @@ -76,6 +77,7 @@ eccp_commit (EConfig *ec, GSList *items, gpointer data) { CalendarSourceDialog *sdialog = data; xmlNodePtr xml; + GtkWindow *window; if (sdialog->original_source) { const gchar *color_spec; @@ -92,6 +94,10 @@ eccp_commit (EConfig *ec, GSList *items, gpointer data) e_source_group_add_source (sdialog->source_group, sdialog->source, -1); e_source_list_sync (sdialog->source_list, NULL); } + + window = e_shell_get_active_window (e_shell_get_default ()); + if (window) + gtk_widget_queue_draw (GTK_WIDGET (window)); } static void -- cgit v1.2.3