]> Pileus Git - ~andy/gtk/commitdiff
Update for api changes.
authorMatthias Clasen <mclasen@redhat.com>
Thu, 8 Jun 2006 19:16:29 +0000 (19:16 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 8 Jun 2006 19:16:29 +0000 (19:16 +0000)
2006-06-08  Matthias Clasen  <mclasen@redhat.com>

* tests/print-editor.c: Update for api changes.

ChangeLog
ChangeLog.pre-2-10
tests/print-editor.c

index 9bac1ad93b9e3c787d59d8852ff3a88f6b3edc03..89493775bf61419f8ded19e72b148801881b3d79 100644 (file)
--- 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): 
index 9bac1ad93b9e3c787d59d8852ff3a88f6b3edc03..89493775bf61419f8ded19e72b148801881b3d79 100644 (file)
@@ -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): 
index ee839c1d5396539fb6511711f1d4e8ce8b2aab6f..0d4990513c5e1b1b810de11b42c2d164b99c2334 100644 (file)
@@ -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);