summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-06-08 19:16:29 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-06-08 19:16:29 +0000
commit4c8e92f4d60fab17ab6166c932404d3b51c31141 (patch)
tree8c7ee185da07313a4b4cb2b96c0d59397ff35f8f
parent0e36f1b5d10d918f0c78bff98614c3e19814211a (diff)
downloadgdk-pixbuf-4c8e92f4d60fab17ab6166c932404d3b51c31141.tar.gz
Update for api changes.
2006-06-08 Matthias Clasen <mclasen@redhat.com> * tests/print-editor.c: Update for api changes.
-rw-r--r--ChangeLog2
-rw-r--r--ChangeLog.pre-2-102
-rw-r--r--tests/print-editor.c6
3 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 9bac1ad93..89493775b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2006-06-08 Matthias Clasen <mclasen@redhat.com>
+ * 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 <mclasen@redhat.com>
+ * 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);