From 5d3d5f4f66409b5c87f2ff2bad57fea4d7cf7f2d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 10 Mar 2007 06:58:35 +0000 Subject: [PATCH] Initialize the do_preview field of PrintResponseData. (#396703, Christian 2007-03-10 Matthias Clasen * gtk/gtkprintoperation-unix.c: Initialize the do_preview field of PrintResponseData. (#396703, Christian Persch) svn path=/branches/gtk-2-10/; revision=17454 --- ChangeLog | 5 +++++ gtk/gtkprintoperation-unix.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index e9c89fca0c..dd708ccd15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-03-10 Matthias Clasen + Merge from trunk: + + * gtk/gtkprintoperation-unix.c: Initialize the do_preview + field of PrintResponseData. (#396703, Christian Persch) + * tests/print-editor.c: Plug some leaks. 2007-03-09 Matthias Clasen diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c index 7ad4ee5767..b260cdc058 100644 --- a/gtk/gtkprintoperation-unix.c +++ b/gtk/gtkprintoperation-unix.c @@ -579,6 +579,7 @@ _gtk_print_operation_platform_backend_run_dialog_async (GtkPrintOperation rdata = g_new (PrintResponseData, 1); rdata->op = g_object_ref (op); rdata->do_print = FALSE; + rdata->do_preview = FALSE; rdata->result = GTK_PRINT_OPERATION_RESULT_CANCEL; rdata->print_cb = print_cb; rdata->parent = parent; @@ -715,6 +716,7 @@ _gtk_print_operation_platform_backend_run_dialog (GtkPrintOperation *op, rdata.op = op; rdata.do_print = FALSE; + rdata.do_preview = FALSE; rdata.result = GTK_PRINT_OPERATION_RESULT_CANCEL; rdata.print_cb = NULL; rdata.destroy = NULL;