Opened 7 years ago

Closed 6 years ago

#16821 closed defect (fixed)

wxPrintDialog creation fails - wxGTK

Reported by: swt2c Owned by: Paul Cornett <paulcor@…>
Priority: normal Milestone:
Component: wxGTK Version: 3.0.2
Keywords: Cc:
Blocked By: Blocking:
Patch: yes


Creating a wxPrintDialog fails under GTK3:

wxPrintDialog printDialog(this, &printDialogData);

[talbert@easel printing]$ ./printing

(printing:6037): Gtk-CRITICAL : gtk_print_operation_set_print_settings: assertion 'GTK_IS_PRINT_OPERATION (op)' failed

(printing:6037): Gtk-CRITICAL : gtk_print_operation_set_default_page_setup: assertion 'GTK_IS_PRINT_OPERATION (op)' failed

(printing:6037): Gtk-CRITICAL : gtk_print_operation_run: assertion 'GTK_IS_PRINT_OPERATION (op)' failed

(printing:6037): GLib-CRITICAL : g_error_free: assertion 'error != NULL' failed

Attachments (1)

0001-Fix-wxGtkPrintDialog-when-created-standalone.patch download (3.0 KB) - added by swt2c 7 years ago.
Proposed patch

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 years ago by pcor

  • Status changed from new to confirmed
  • Summary changed from wxPrintDialog creation fails - wxGTK3 to wxPrintDialog creation fails - wxGTK

Does not work with GTK2 either.

Changed 7 years ago by swt2c

Proposed patch

comment:2 Changed 7 years ago by swt2c

  • Patch set

comment:3 Changed 7 years ago by swt2c

In fixing #14731, the GtkPrintOperation creation was moved from wxGtkNativePrintData to within wxGtkPrinter::Print(). However, wxGtkPrintDialog can also be created directly (ie, not using wxGtkPrinter) so it needs a GtkPrintOperation too. Move the GtkPrintOperation creation into wxGtkPrintDialog.

comment:4 Changed 6 years ago by Paul Cornett <paulcor@…>

In a2f1bc1fdec222f3be7b7c5745ebc52c3c85a51c/git-wxWidgets:

Fix wxPrintDialog when used directly, see #16821

comment:5 Changed 6 years ago by Paul Cornett <paulcor@…>

  • Owner set to Paul Cornett <paulcor@…>
  • Resolution set to fixed
  • Status changed from confirmed to closed

In bc3f5503db3686d3fcb2da5cc4bcd2f1787926b1/git-wxWidgets:

Fix wxPrintDialog when used directly, closes #16821

Note: See TracTickets for help on using tickets.