Ticket #19159: patch-gui-usbprogApp.cc.diff
File patch-gui-usbprogApp.cc.diff, 608 bytes (added by macports@…, 16 years ago) |
---|
-
gui/usbprogApp.cc
old new 20 20 21 21 #include "usbprogApp.h" 22 22 #include "usbprogFrm.h" 23 #ifdef __APPLE__ 24 #include <ApplicationServices/ApplicationServices.h> 25 #endif 23 26 24 27 using std::cerr; 25 28 using std::endl; … … 74 75 usbprogFrm* frame = new usbprogFrm(NULL); 75 76 frame->Show(true); 76 77 SetTopWindow(frame); 78 #ifdef __APPLE__ 79 ProcessSerialNumber PSN; 80 GetCurrentProcess(&PSN); 81 TransformProcessType(&PSN,kProcessTransformToForegroundApplication); 82 #endif 77 83 return true; 78 84 } 79 85