From afbb1fd44d098899205335e45267979c8681ed4a Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Fri, 4 Feb 2005 15:49:15 +0000 Subject: Add a string to CompEditorPrivate to store the name of the help section we 2005-02-04 Rodney Dawes * gui/dialogs/comp-editor.[ch]: Add a string to CompEditorPrivate to store the name of the help section we need to refer for derived dialogs (response_cb): Handle the GTK_RESPONSE_HELP response and show help (setup_widgets): Add a button to the dialog for Help (comp_editor_init): Default to the "usage-calendar" help section (comp_editor_finalize): Free the help_section variable (comp_editor_show_help): Add a new method to actually open the help (comp_editor_set_help_section): Add a method for derivatives to set the help section they want to open * gui/dialogs/event-editor.c (event_editor_init): Set the help section we want to open for the event editor to "usage-calendar-apts" * gui/dialogs/task-editor.c (task_editor_init): Set the help section we want to open for the event editor to "usage-calendar-todo" svn path=/trunk/; revision=28710 --- calendar/gui/dialogs/comp-editor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui/dialogs/comp-editor.h') diff --git a/calendar/gui/dialogs/comp-editor.h b/calendar/gui/dialogs/comp-editor.h index ea6811e5a3..7203b3e722 100644 --- a/calendar/gui/dialogs/comp-editor.h +++ b/calendar/gui/dialogs/comp-editor.h @@ -81,6 +81,8 @@ void comp_editor_show_page (CompEditor *editor, CompEditorPage *page); void comp_editor_set_e_cal (CompEditor *editor, ECal *client); +void comp_editor_set_help_section (CompEditor *editor, + const char *section); ECal *comp_editor_get_e_cal (CompEditor *editor); void comp_editor_edit_comp (CompEditor *ee, ECalComponent *comp); -- cgit v1.2.3