aboutsummaryrefslogtreecommitdiffstats
path: root/embed/print-dialog.c
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/print-dialog.c
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/print-dialog.c')
-rwxr-xr-xembed/print-dialog.c30
1 files changed, 24 insertions, 6 deletions
diff --git a/embed/print-dialog.c b/embed/print-dialog.c
index 600e7a968..11c80ab1b 100755
--- a/embed/print-dialog.c
+++ b/embed/print-dialog.c
@@ -25,6 +25,7 @@
#include "ephy-stock-icons.h"
#include "eel-gconf-extensions.h"
#include "ephy-debug.h"
+#include "ephy-gui.h"
#include <gtk/gtkwindow.h>
#include <gtk/gtkdialog.h>
@@ -131,6 +132,8 @@ void ephy_print_dialog_browse_button_cb (GtkWidget *widget,
EphyDialog *dialog);
void ephy_print_setup_dialog_close_button_cb (GtkWidget *widget,
EphyDialog *dialog);
+void ephy_print_setup_dialog_help_button_cb (GtkWidget *widget,
+ EphyDialog *dialog);
void
ephy_print_info_free (EmbedPrintInfo *info)
@@ -222,16 +225,24 @@ ephy_print_dialog_response_cb (GtkWidget *widget,
return;
}
- if (response == GTK_RESPONSE_OK)
+ switch (response)
{
- info = ephy_print_get_print_info ();
+ case GTK_RESPONSE_OK:
+ info = ephy_print_get_print_info ();
- embed = ephy_embed_dialog_get_embed (EPHY_EMBED_DIALOG (dialog));
- g_return_if_fail (EPHY_IS_EMBED (embed));
+ embed = ephy_embed_dialog_get_embed (EPHY_EMBED_DIALOG (dialog));
+ g_return_if_fail (EPHY_IS_EMBED (embed));
- ephy_embed_print (embed, info);
+ ephy_embed_print (embed, info);
- ephy_print_info_free (info);
+ ephy_print_info_free (info);
+
+ break;
+ case GTK_RESPONSE_HELP:
+ ephy_gui_help (GTK_WINDOW (dialog), "epiphany", "to-print-page");
+ return;
+ default:
+ break;
}
g_object_unref (dialog);
@@ -293,6 +304,13 @@ ephy_print_setup_dialog_close_button_cb (GtkWidget *widget,
g_object_unref (dialog);
}
+void
+ephy_print_setup_dialog_help_button_cb (GtkWidget *widget,
+ EphyDialog *dialog)
+{
+ ephy_gui_help (GTK_WINDOW (dialog), "epiphany", "using-print-setup");
+}
+
EphyDialog *
ephy_print_dialog_new (GtkWidget *parent,
EphyEmbed *embed,