aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-06-25 19:31:22 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-06-25 19:31:22 +0800
commit36ad80414746a470d3f64849266817c58fef2344 (patch)
treef7360d1212f4dbc10e0606b4e78852ebbb3463a2 /embed/ephy-embed.c
parentb6b7539092921b12790435b10e6bfb68ec9339f5 (diff)
downloadgsoc2013-epiphany-36ad80414746a470d3f64849266817c58fef2344.tar
gsoc2013-epiphany-36ad80414746a470d3f64849266817c58fef2344.tar.gz
gsoc2013-epiphany-36ad80414746a470d3f64849266817c58fef2344.tar.bz2
gsoc2013-epiphany-36ad80414746a470d3f64849266817c58fef2344.tar.lz
gsoc2013-epiphany-36ad80414746a470d3f64849266817c58fef2344.tar.xz
gsoc2013-epiphany-36ad80414746a470d3f64849266817c58fef2344.tar.zst
gsoc2013-epiphany-36ad80414746a470d3f64849266817c58fef2344.zip
Simplify print code. Now there is only one case to deal with, the mozilla
2004-06-25 Marco Pesenti Gritti <marco@gnome.org> * embed/ephy-embed.c: (ephy_embed_print), (ephy_embed_set_print_preview_mode): * embed/ephy-embed.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/PrintingPromptService.cpp: * embed/mozilla/mozilla-embed.cpp: * embed/print-dialog.c: (ephy_print_dialog_response_cb), (ephy_print_dialog_new): * embed/print-dialog.h: * src/ephy-window.c: (ephy_window_delete_event_cb), (ephy_window_finalize), (update_embed_dialogs), (ephy_window_find): * src/ppview-toolbar.c: (toolbar_cmd_ppv_close): * src/window-commands.c: (window_cmd_file_print_preview), (window_cmd_file_print): Simplify print code. Now there is only one case to deal with, the mozilla prompt dialog. This should help with xprint.
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r--embed/ephy-embed.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 9893c1ac0..76e8ea0c8 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -736,32 +736,30 @@ ephy_embed_has_automatic_encoding (EphyEmbed *embed)
/**
* ephy_embed_print:
* @embed: an #EphyEmbed
- * @info: an #EmbedPrintInfo with all printing settings
*
* Sends a document to the printer.
*
- * Normally one would use ephy_window_print() to display the print dialog, which
- * will build its own #EmbedPrintInfo and then call this function.
**/
void
-ephy_embed_print (EphyEmbed *embed,
- EmbedPrintInfo *info)
+ephy_embed_print (EphyEmbed *embed)
{
EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
- iface->print (embed, info);
+ iface->print (embed);
}
/**
- * ephy_embed_print_preview_close:
+ * ephy_embed_set_print_preview_mode:
* @embed: an #EphyEmbed
+ * @preview_mode: Whether the print preview mode is enabled.
*
- * Closes @embed's print preview dialog.
+ * Enable and disable the print preview mode.
**/
void
-ephy_embed_print_preview_close (EphyEmbed *embed)
+ephy_embed_set_print_preview_mode (EphyEmbed *embed,
+ gboolean preview_mode)
{
EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
- iface->print_preview_close (embed);
+ iface->set_print_preview_mode (embed, preview_mode);
}
/**