From f9d588d588ac2c20ba861c4b9df931029210b659 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Tue, 10 Feb 2004 23:21:22 +0000 Subject: Add a Help button (impl_response): Handle the Help button and open the 2004-02-10 Rodney Dawes * e-multi-config-dialog.c (init): Add a Help button (impl_response): Handle the Help button and open the documentation Fixes #30681 svn path=/trunk/; revision=24694 --- widgets/misc/ChangeLog | 7 +++++++ widgets/misc/e-multi-config-dialog.c | 13 +++++++++++++ 2 files changed, 20 insertions(+) (limited to 'widgets') diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 2b4c1c21b9..e4654af02f 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,10 @@ +2004-02-10 Rodney Dawes + + * e-multi-config-dialog.c (init): Add a Help button + (impl_response): Handle the Help button and open the documentation + + Fixes #30681 + 2004-02-05 Rodney Dawes * e-task-bar.c: Don't show the task label by default diff --git a/widgets/misc/e-multi-config-dialog.c b/widgets/misc/e-multi-config-dialog.c index 19792eed22..f2b8cbcfcd 100644 --- a/widgets/misc/e-multi-config-dialog.c +++ b/widgets/misc/e-multi-config-dialog.c @@ -260,11 +260,23 @@ impl_response (GtkDialog *dialog, { EMultiConfigDialog *multi_config_dialog; EMultiConfigDialogPrivate *priv; + GError *error; multi_config_dialog = E_MULTI_CONFIG_DIALOG (dialog); priv = multi_config_dialog->priv; + error = NULL; + switch (response_id) { + case GTK_RESPONSE_HELP: + gnome_help_display_desktop (NULL, + "evolution-" BASE_VERSION, + "config-prefs.xml", + "config-prefs", + &error); + if (error != NULL) + g_warning ("%s", error->message); + break; case GTK_RESPONSE_OK: do_ok (multi_config_dialog); break; @@ -414,6 +426,7 @@ init (EMultiConfigDialog *multi_config_dialog) gtk_widget_show (list_e_table); gtk_dialog_add_buttons (GTK_DIALOG (multi_config_dialog), + GTK_STOCK_HELP, GTK_RESPONSE_HELP, GTK_STOCK_APPLY, GTK_RESPONSE_APPLY, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, GTK_STOCK_OK, GTK_RESPONSE_OK, -- cgit v1.2.3