]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/printing/printing.cpp
Committing menubar changes again after CVS trashed them.
[wxWidgets.git] / samples / printing / printing.cpp
index 04d721a4af9ca8c54915ef8b1f1ff6bb738013e2..bdc779878e15de472b8a2eba5245cabd64b2a57e 100644 (file)
@@ -104,12 +104,14 @@ bool MyApp::OnInit(void)
     file_menu->Append(WXPRINT_PAGE_SETUP, "Page Set&up...",              "Page setup");
     file_menu->Append(WXPRINT_PREVIEW, "Print Pre&view",              "Preview");
     
+#if wxUSE_ACCEL
     // Accelerators
     wxAcceleratorEntry entries[1];
     entries[0].Set(wxACCEL_CTRL, (int) 'V', WXPRINT_PREVIEW);
     wxAcceleratorTable accel(1, entries);
     frame->SetAcceleratorTable(accel);
-    
+#endif
+
 #if defined(__WXMSW__) && wxTEST_POSTSCRIPT_IN_MSW
     file_menu->AppendSeparator();
     file_menu->Append(WXPRINT_PRINT_PS, "Print PostScript...",              "Print (PostScript)");