From 4dd3ca40e89ad2ce3ad67b8732691766d862587a Mon Sep 17 00:00:00 2001 From: Piers Cornwell Date: Sun, 4 Jan 2004 22:12:11 +0000 Subject: Add help buttons to Certificate Viewer, PDM, print and print setup 2004-01-04 Piers Cornwell * data/glade/certificate-dialogs.glade: * data/glade/epiphany.glade: * data/glade/print.glade: * embed/mozilla/GtkNSSDialogs.cpp: * embed/print-dialog.c: (ephy_print_dialog_response_cb), (ephy_print_setup_dialog_help_button_cb): * src/pdm-dialog.c: (pdm_dialog_show_help): * src/prefs-dialog.c: (prefs_dialog_show_help): Add help buttons to Certificate Viewer, PDM, print and print setup dialogues. --- embed/mozilla/GtkNSSDialogs.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'embed/mozilla/GtkNSSDialogs.cpp') diff --git a/embed/mozilla/GtkNSSDialogs.cpp b/embed/mozilla/GtkNSSDialogs.cpp index 94d8e9527..809ad9fd9 100644 --- a/embed/mozilla/GtkNSSDialogs.cpp +++ b/embed/mozilla/GtkNSSDialogs.cpp @@ -72,6 +72,7 @@ #include "GtkNSSDialogs.h" #include "ephy-glade.h" +#include "ephy-gui.h" #include @@ -1390,7 +1391,19 @@ GtkNSSDialogs::ViewCert(nsIInterfaceRequestor *ctx, g_object_unref (gxml); gtk_widget_show_all (dialog); - gtk_dialog_run (GTK_DIALOG (dialog)); + + int res; + while (1) + { + res = gtk_dialog_run (GTK_DIALOG (dialog)); + if (res == GTK_RESPONSE_HELP) + { + ephy_gui_help (GTK_WINDOW (dialog), "epiphany", "using-certificate-viewer"); + continue; + } + break; + } + gtk_widget_destroy (dialog); return NS_OK; } -- cgit