mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
Update for api changes.
2006-06-08 Matthias Clasen <mclasen@redhat.com> * tests/print-editor.c: Update for api changes.
This commit is contained in:
parent
0e36f1b5d1
commit
4c8e92f4d6
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user