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/event-editor.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui/dialogs/event-editor.c') diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c index 1f266325bf..8b4c74da0f 100644 --- a/calendar/gui/dialogs/event-editor.c +++ b/calendar/gui/dialogs/event-editor.c @@ -121,6 +121,8 @@ event_editor_init (EventEditor *ee) priv->meeting_shown = TRUE; priv->updating = FALSE; priv->is_meeting = FALSE; + + comp_editor_set_help_section (COMP_EDITOR (ee), "usage-calendar-apts"); } EventEditor * -- cgit v1.2.3