diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-11-03 02:53:36 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-11-03 02:53:36 +0800 |
commit | 3a4e04be99f31b2fbf4515efd5bc369630dc4006 (patch) | |
tree | 716f2315bc6d1bb9bf9948917c41788cece72539 /embed/mozilla | |
parent | 1ea57d5ec0e658a86e5eb61842c34dcbc1f54120 (diff) | |
download | gsoc2013-epiphany-3a4e04be99f31b2fbf4515efd5bc369630dc4006.tar gsoc2013-epiphany-3a4e04be99f31b2fbf4515efd5bc369630dc4006.tar.gz gsoc2013-epiphany-3a4e04be99f31b2fbf4515efd5bc369630dc4006.tar.bz2 gsoc2013-epiphany-3a4e04be99f31b2fbf4515efd5bc369630dc4006.tar.lz gsoc2013-epiphany-3a4e04be99f31b2fbf4515efd5bc369630dc4006.tar.xz gsoc2013-epiphany-3a4e04be99f31b2fbf4515efd5bc369630dc4006.tar.zst gsoc2013-epiphany-3a4e04be99f31b2fbf4515efd5bc369630dc4006.zip |
Don't unref the print dialogue twice when shown from mozilla.
2003-11-02 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/PrintingPromptService.cpp:
* embed/print-dialog.c: (print_dialog_new),
(print_dialog_new_with_parent), (print_dialog_print),
(print_cancel_button_cb), (print_preview_button_cb):
Don't unref the print dialogue twice when shown from
mozilla.
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/PrintingPromptService.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/embed/mozilla/PrintingPromptService.cpp b/embed/mozilla/PrintingPromptService.cpp index 1288e2cc8..2e1783782 100644 --- a/embed/mozilla/PrintingPromptService.cpp +++ b/embed/mozilla/PrintingPromptService.cpp @@ -53,6 +53,7 @@ NS_IMETHODIMP GPrintingPromptService::ShowPrintDialog(nsIDOMWindow *parent, nsIW { EphyDialog *dialog; EmbedPrintInfo *info; + nsresult rv = NS_OK; GtkWidget *gtkParent = MozillaFindGtkParent(parent); EphyEmbed *embed = EPHY_EMBED (MozillaFindEmbed (parent)); @@ -66,10 +67,16 @@ NS_IMETHODIMP GPrintingPromptService::ShowPrintDialog(nsIDOMWindow *parent, nsIW MozillaCollatePrintSettings(info, printSettings); print_free_info(info); - return NS_OK; + rv = NS_OK; } else - return NS_ERROR_FAILURE; + { + rv = NS_ERROR_FAILURE; + } + + g_object_unref (dialog); + + return rv; } /* void showProgress (in nsIDOMWindow parent, in nsIWebBrowserPrint webBrowserPrint, in nsIPrintSettings printSettings, in nsIObserver openDialogObserver, in boolean isForPrinting, out nsIWebProgressListener webProgressListener, out nsIPrintProgressParams printProgressParams, out boolean notifyOnOpen); */ |