From 8e8fcea05d20217a19285cb7599d1d0b96de4b3b Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 4 Mar 2004 11:17:56 +0000 Subject: Fixes #53137 2004-03-04 Rodrigo Moya Fixes #53137 * gui/dialogs/comp-editor-page.[ch]: made fill_widgets virtual method return a gboolean. (comp_editor_page_fill_widgets): return value from virtual method implementation. * gui/dialogs/event-page.c (event_page_fill_widgets): * gui/dialogs/meeting-page.c (meeting_page_fill_widgets): * gui/dialogs/recurrence-page.c (recurrence_page_fill_widgets): * gui/dialogs/schedule-page.c (schedule_page_fill_widgets): * gui/dialogs/task-details-page.c (task_details_page_fill_widgets): * gui/dialogs/task-page.c (task_page_fill_widgets): * gui/dialogs/alarm-page.c (alarm_page_fill_widgets): return value, as expected from the virtual method signature. * gui/dialogs/comp-editor.c (comp_editor_append_page): dont add the page if there was an error calling the fill_widgets method. svn path=/trunk/; revision=24960 --- calendar/gui/dialogs/recurrence-page.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'calendar/gui/dialogs/recurrence-page.c') diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c index aa42fca322..0868ed5cca 100644 --- a/calendar/gui/dialogs/recurrence-page.c +++ b/calendar/gui/dialogs/recurrence-page.c @@ -207,7 +207,7 @@ static void recurrence_page_finalize (GObject *object); static GtkWidget *recurrence_page_get_widget (CompEditorPage *page); static void recurrence_page_focus_main_widget (CompEditorPage *page); -static void recurrence_page_fill_widgets (CompEditorPage *page, ECalComponent *comp); +static gboolean recurrence_page_fill_widgets (CompEditorPage *page, ECalComponent *comp); static gboolean recurrence_page_fill_component (CompEditorPage *page, ECalComponent *comp); static void recurrence_page_set_summary (CompEditorPage *page, const char *summary); static void recurrence_page_set_dates (CompEditorPage *page, CompEditorPageDates *dates); @@ -1494,7 +1494,7 @@ fill_ending_date (RecurrencePage *rpage, struct icalrecurrencetype *r) * editing and the ones we don't. We only support at most one recurrence rule; * no rdates or exrules (exdates are handled just fine elsewhere). */ -static void +static gboolean recurrence_page_fill_widgets (CompEditorPage *page, ECalComponent *comp) { RecurrencePage *rpage; @@ -1568,7 +1568,7 @@ recurrence_page_fill_widgets (CompEditorPage *page, ECalComponent *comp) preview_recur (rpage); priv->updating = FALSE; - return; + return TRUE; } /* See if it is a custom set we don't support */ @@ -1863,6 +1863,8 @@ recurrence_page_fill_widgets (CompEditorPage *page, ECalComponent *comp) preview_recur (rpage); priv->updating = FALSE; + + return TRUE; } /* fill_component handler for the recurrence page */ -- cgit