diff options
author | Rodney Dawes <dobey@ximian.com> | 2004-02-11 07:21:22 +0800 |
---|---|---|
committer | Rodney Dawes <dobey@src.gnome.org> | 2004-02-11 07:21:22 +0800 |
commit | f9d588d588ac2c20ba861c4b9df931029210b659 (patch) | |
tree | f4da7a926c09286e3e9e9e4a19d7ff353671c577 | |
parent | bd6d1b36233615b02a6fc91bca54e0dd36c03dac (diff) | |
download | gsoc2013-evolution-f9d588d588ac2c20ba861c4b9df931029210b659.tar gsoc2013-evolution-f9d588d588ac2c20ba861c4b9df931029210b659.tar.gz gsoc2013-evolution-f9d588d588ac2c20ba861c4b9df931029210b659.tar.bz2 gsoc2013-evolution-f9d588d588ac2c20ba861c4b9df931029210b659.tar.lz gsoc2013-evolution-f9d588d588ac2c20ba861c4b9df931029210b659.tar.xz gsoc2013-evolution-f9d588d588ac2c20ba861c4b9df931029210b659.tar.zst gsoc2013-evolution-f9d588d588ac2c20ba861c4b9df931029210b659.zip |
Add a Help button (impl_response): Handle the Help button and open the
2004-02-10 Rodney Dawes <dobey@ximian.com>
* 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
-rw-r--r-- | widgets/misc/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/misc/e-multi-config-dialog.c | 13 |
2 files changed, 20 insertions, 0 deletions
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 <dobey@ximian.com> + + * 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 <dobey@ximian.com> * 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, |