Add wxTEST_DIALOG for testing of modal dialogs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "wx/dynlib.h"
|
||||
#include "wx/paper.h"
|
||||
#include "wx/scopeguard.h"
|
||||
#include "wx/testing.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
@@ -623,6 +624,8 @@ wxGtkPrintDialog::~wxGtkPrintDialog()
|
||||
// This is called even if we actually don't want the dialog to appear.
|
||||
int wxGtkPrintDialog::ShowModal()
|
||||
{
|
||||
WX_TESTING_SHOW_MODAL_HOOK();
|
||||
|
||||
// We need to restore the settings given in the constructor.
|
||||
wxPrintData data = m_printDialogData.GetPrintData();
|
||||
wxGtkPrintNativeData *native =
|
||||
@@ -747,6 +750,8 @@ wxGtkPageSetupDialog::~wxGtkPageSetupDialog()
|
||||
|
||||
int wxGtkPageSetupDialog::ShowModal()
|
||||
{
|
||||
WX_TESTING_SHOW_MODAL_HOOK();
|
||||
|
||||
// Get the config.
|
||||
m_pageDialogData.GetPrintData().ConvertToNative();
|
||||
wxGtkPrintNativeData *native = (wxGtkPrintNativeData*) m_pageDialogData.GetPrintData().GetNativeData();
|
||||
|
Reference in New Issue
Block a user