From: Matthias Clasen Date: Thu, 8 Jun 2006 19:16:29 +0000 (+0000) Subject: Update for api changes. X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=4c8e92f4d60fab17ab6166c932404d3b51c31141;p=~andy%2Fgtk Update for api changes. 2006-06-08 Matthias Clasen * tests/print-editor.c: Update for api changes. --- diff --git a/ChangeLog b/ChangeLog index 9bac1ad93..89493775b 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 9bac1ad93..89493775b 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 ee839c1d5..0d4990513 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);