#include "wx/dynlib.h"
#include "wx/paper.h"
#include "wx/dcprint.h"
+#include "wx/testing.h"
#include <libgnomeprint/gnome-print.h>
#include <libgnomeprint/gnome-print-pango.h>
int wxGnomePrintDialog::ShowModal()
{
+ WX_TESTING_SHOW_MODAL_HOOK();
+
int response = gtk_dialog_run (GTK_DIALOG (m_widget));
if (response == GNOME_PRINT_DIALOG_RESPONSE_CANCEL)
m_printDialogData.SetNoCopies( copies );
m_printDialogData.SetCollate( collate );
- switch (gs_libGnomePrint->gnome_print_dialog_get_range( (GnomePrintDialog*) m_widget ))
+ // Cast needed to avoid warnings because the gnome_print_dialog_get_range()
+ // is declared as returning a wrong enum type.
+ switch ( static_cast<int>( gs_libGnomePrint->gnome_print_dialog_get_range( (GnomePrintDialog*) m_widget )))
{
case GNOME_PRINT_RANGE_SELECTION:
m_printDialogData.SetSelection( true );
int wxGnomePageSetupDialog::ShowModal()
{
+ WX_TESTING_SHOW_MODAL_HOOK();
+
wxGnomePrintNativeData *native =
(wxGnomePrintNativeData*) m_pageDialogData.GetPrintData().GetNativeData();