aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/GeckoPrintSession.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2007-06-14 20:17:29 +0800
committerChristian Persch <chpe@src.gnome.org>2007-06-14 20:17:29 +0800
commit9155e8cd98bc489df8a2093d1769b0b1c46981d7 (patch)
tree7305d00dc5d98d62f1b76902d4d6f66512ccf04e /embed/mozilla/GeckoPrintSession.cpp
parenta6a2cd926bc435e0dfbaf1c3d3535c0f2ba47410 (diff)
downloadgsoc2013-epiphany-9155e8cd98bc489df8a2093d1769b0b1c46981d7.tar
gsoc2013-epiphany-9155e8cd98bc489df8a2093d1769b0b1c46981d7.tar.gz
gsoc2013-epiphany-9155e8cd98bc489df8a2093d1769b0b1c46981d7.tar.bz2
gsoc2013-epiphany-9155e8cd98bc489df8a2093d1769b0b1c46981d7.tar.lz
gsoc2013-epiphany-9155e8cd98bc489df8a2093d1769b0b1c46981d7.tar.xz
gsoc2013-epiphany-9155e8cd98bc489df8a2093d1769b0b1c46981d7.tar.zst
gsoc2013-epiphany-9155e8cd98bc489df8a2093d1769b0b1c46981d7.zip
Set the print as cancelled in the print settings too, see
2007-06-14 Christian Persch <chpe@gnome.org> * embed/mozilla/GeckoPrintService.cpp: * embed/mozilla/GeckoPrintSession.cpp: * embed/mozilla/GeckoPrintSession.h: Set the print as cancelled in the print settings too, see https://bugzilla.mozilla.org/show_bug.cgi?id=253926. svn path=/trunk/; revision=7081
Diffstat (limited to 'embed/mozilla/GeckoPrintSession.cpp')
-rw-r--r--embed/mozilla/GeckoPrintSession.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/embed/mozilla/GeckoPrintSession.cpp b/embed/mozilla/GeckoPrintSession.cpp
index 67f2d3819..edfd64d9c 100644
--- a/embed/mozilla/GeckoPrintSession.cpp
+++ b/embed/mozilla/GeckoPrintSession.cpp
@@ -98,13 +98,17 @@ GeckoPrintSession::GetSourceFile (nsACString &aSource)
}
nsresult
-GeckoPrintSession::SetSettings (GtkPrintSettings *aSettings,
+GeckoPrintSession::SetSettings (nsIPrintSettings *aPrintSettings,
+ GtkPrintSettings *aSettings,
GtkPageSetup *aPageSetup,
GtkPrinter *aPrinter)
{
- NS_ASSERTION (!mSettings && !mPageSetup && !mPrinter, "Already have settings!");
+ NS_ASSERTION (!mPrintSettings && !mSettings && !mPageSetup && !mPrinter, "Already have settings!");
+ NS_ENSURE_ARG (aPrintSettings);
NS_ENSURE_ARG (aSettings);
+
+ mPrintSettings = aPrintSettings;
mSettings = (GtkPrintSettings *) g_object_ref (aSettings);
NS_ENSURE_ARG (aPageSetup);
@@ -562,10 +566,15 @@ GeckoPrintSession::GetProcessCanceledByUser (PRBool *aProcessCanceledByUser)
*aProcessCanceledByUser = mCancelled;
return NS_OK;
}
+
NS_IMETHODIMP
GeckoPrintSession::SetProcessCanceledByUser (PRBool aProcessCanceledByUser)
{
mCancelled = aProcessCanceledByUser;
+ if (mPrintSettings) {
+ mPrintSettings->SetIsCancelled (aProcessCanceledByUser);
+ }
+
return NS_OK;
}