From 5994fe010ebb2d063a5913eecfc4596a219c3f5b Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Mon, 29 Aug 2005 04:19:42 +0000 Subject: Fixes #313534 Moved the code to display recur check box to cal_opened_cb. 2005-08-29 Chenthill Palanisamy Fixes #313534 * itip-formatter.c: (cal_opened_cb), (find_cal_opened_cb): Moved the code to display recur check box to cal_opened_cb. svn path=/trunk/; revision=30280 --- plugins/itip-formatter/ChangeLog | 6 ++++++ plugins/itip-formatter/itip-formatter.c | 16 ++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog index e79d1f5107..92d78c2365 100644 --- a/plugins/itip-formatter/ChangeLog +++ b/plugins/itip-formatter/ChangeLog @@ -1,3 +1,9 @@ +2005-08-29 Chenthill Palanisamy + + Fixes #313534 + * itip-formatter.c: (cal_opened_cb), (find_cal_opened_cb): + Moved the code to display recur check box to cal_opened_cb. + 2005-08-23 Not Zed * itip-view.c: add missing headers. diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 115078392a..64f8a96267 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -278,6 +278,14 @@ cal_opened_cb (ECal *ecal, ECalendarStatus status, gpointer data) return; } + if (e_cal_get_static_capability (ecal, CAL_STATIC_CAPABILITY_RECURRENCES_NO_MASTER)) { + icalcomponent *icalcomp = e_cal_component_get_icalcomponent (pitip->comp); + + if (check_is_instance (icalcomp)) + itip_view_set_show_recur_check (ITIP_VIEW (pitip->view), TRUE); + else + itip_view_set_show_recur_check (ITIP_VIEW (pitip->view), FALSE); + } zone = calendar_config_get_icaltimezone (); e_cal_set_default_timezone (ecal, zone, NULL); @@ -425,14 +433,6 @@ find_cal_opened_cb (ECal *ecal, ECalendarStatus status, gpointer data) "Found the appointment in the calendar '%s'", e_source_peek_name (source)); set_buttons_sensitive (pitip); - if (e_cal_get_static_capability (ecal, CAL_STATIC_CAPABILITY_RECURRENCES_NO_MASTER)) { - icalcomponent *icalcomp = e_cal_component_get_icalcomponent (pitip->comp); - - if (check_is_instance (icalcomp)) - itip_view_set_show_recur_check (ITIP_VIEW (pitip->view), TRUE); - else - itip_view_set_show_recur_check (ITIP_VIEW (pitip->view), FALSE); - } } zone = calendar_config_get_icaltimezone (); -- cgit v1.2.3