From ef0d06b1cca990d13d0f1e3e051248e795c4d79b Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 10 Oct 2004 16:03:53 +0000 Subject: reviewed by: Christian Persch 2004-10-10 Marco Pesenti Gritti reviewed by: Christian Persch * data/glade/print.glade: * embed/ephy-embed-single.c: (ephy_embed_single_get_printer_list): * embed/ephy-embed-single.h: * embed/mozilla/ContentHandler.cpp: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EphyUtils.h: * embed/mozilla/FilePicker.cpp: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/MozillaPrivate.cpp: * embed/mozilla/MozillaPrivate.h: * embed/mozilla/PrintingPromptService.cpp: * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-embed.cpp: * embed/print-dialog.c: (ephy_print_dialog_new): * lib/ephy-dialog.c: (set_combo_box_from_value): Move current MozillaPrivate helpers to EphyUtils. Use MozillaPrivate for stuff that needs mozilla internal strings. Support multiple printers in the print dialog. This is actually a bug fix because on several distributions using hardcoded Poscript/default will simply not work at all. --- embed/ephy-embed-single.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'embed/ephy-embed-single.h') diff --git a/embed/ephy-embed-single.h b/embed/ephy-embed-single.h index 1b8894592..f37460a82 100644 --- a/embed/ephy-embed-single.h +++ b/embed/ephy-embed-single.h @@ -50,18 +50,19 @@ struct _EphyEmbedSingleIface /* Methods */ - GtkWidget * (* open_window) (EphyEmbedSingle *single, + GtkWidget * (* open_window) (EphyEmbedSingle *single, EphyEmbed *parent, const char *address, const char *name, const char *features); - void (* clear_cache) (EphyEmbedSingle *shell); - void (* clear_auth_cache) (EphyEmbedSingle *shell); - void (* set_offline_mode) (EphyEmbedSingle *shell, + void (* clear_cache) (EphyEmbedSingle *shell); + void (* clear_auth_cache) (EphyEmbedSingle *shell); + void (* set_offline_mode) (EphyEmbedSingle *shell, gboolean offline); - gboolean (* get_offline_mode) (EphyEmbedSingle *single); - GList * (* get_font_list) (EphyEmbedSingle *shell, + gboolean (* get_offline_mode) (EphyEmbedSingle *single); + GList * (* get_font_list) (EphyEmbedSingle *shell, const char *langGroup); + GList * (* get_printer_list) (EphyEmbedSingle *shell); }; GType ephy_embed_single_get_type (void); @@ -84,6 +85,8 @@ gboolean ephy_embed_single_get_offline_mode (EphyEmbedSingle *single); GList *ephy_embed_single_get_font_list (EphyEmbedSingle *single, const char *lang_group); +GList *ephy_embed_single_get_printer_list (EphyEmbedSingle *single); + G_END_DECLS #endif -- cgit v1.2.3