From 4c8e92f4d60fab17ab6166c932404d3b51c31141 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 8 Jun 2006 19:16:29 +0000 Subject: [PATCH] Update for api changes. 2006-06-08 Matthias Clasen * tests/print-editor.c: Update for api changes. --- ChangeLog | 2 ++ ChangeLog.pre-2-10 | 2 ++ tests/print-editor.c | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9bac1ad93b..89493775bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2006-06-08 Matthias Clasen + * tests/print-editor.c: Update for api changes. + * gtk/gtk.h: Include gtkprintoperationpreview.h * gtk/gtkprintoperationpreview.c (gtk_print_operation_preview_is_selected): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9bac1ad93b..89493775bf 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,7 @@ 2006-06-08 Matthias Clasen + * tests/print-editor.c: Update for api changes. + * gtk/gtk.h: Include gtkprintoperationpreview.h * gtk/gtkprintoperationpreview.c (gtk_print_operation_preview_is_selected): diff --git a/tests/print-editor.c b/tests/print-editor.c index ee839c1d53..0d4990513c 100644 --- a/tests/print-editor.c +++ b/tests/print-editor.c @@ -608,14 +608,14 @@ print_done (GtkPrintOperation *op, GtkPrintOperationResult res, PrintData *print_data) { - GError *error; + GError *error = NULL; if (res == GTK_PRINT_OPERATION_RESULT_ERROR) { GtkWidget *error_dialog; - error = gtk_print_operation_get_error (op); + gtk_print_operation_get_error (op, &error); error_dialog = gtk_message_dialog_new (GTK_WINDOW (main_window), GTK_DIALOG_DESTROY_WITH_PARENT, @@ -678,7 +678,7 @@ do_print (GtkAction *action) g_signal_connect (print, "done", G_CALLBACK (print_done), print_data); - gtk_print_operation_set_pdf_target (print, "test.pdf"); + gtk_print_operation_set_export_filename (print, "test.pdf"); #if 0 gtk_print_operation_set_allow_async (print, TRUE);