aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/GtkNSSDialogs.cpp
diff options
context:
space:
mode:
authorPiers Cornwell <piers@myrealbox.com>2004-01-05 06:12:11 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-05 06:12:11 +0800
commit4dd3ca40e89ad2ce3ad67b8732691766d862587a (patch)
treee922d6369d377eec35615f563be7aa5977aa3b0b /embed/mozilla/GtkNSSDialogs.cpp
parent488df92059bf5fc9aaf70f88d5c4ece00129d3d5 (diff)
downloadgsoc2013-epiphany-4dd3ca40e89ad2ce3ad67b8732691766d862587a.tar
gsoc2013-epiphany-4dd3ca40e89ad2ce3ad67b8732691766d862587a.tar.gz
gsoc2013-epiphany-4dd3ca40e89ad2ce3ad67b8732691766d862587a.tar.bz2
gsoc2013-epiphany-4dd3ca40e89ad2ce3ad67b8732691766d862587a.tar.lz
gsoc2013-epiphany-4dd3ca40e89ad2ce3ad67b8732691766d862587a.tar.xz
gsoc2013-epiphany-4dd3ca40e89ad2ce3ad67b8732691766d862587a.tar.zst
gsoc2013-epiphany-4dd3ca40e89ad2ce3ad67b8732691766d862587a.zip
Add help buttons to Certificate Viewer, PDM, print and print setup
2004-01-04 Piers Cornwell <piers@myrealbox.com> * 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.
Diffstat (limited to 'embed/mozilla/GtkNSSDialogs.cpp')
-rw-r--r--embed/mozilla/GtkNSSDialogs.cpp15
1 files changed, 14 insertions, 1 deletions
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 <time.h>
@@ -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;
}