Thread: frmMain.cpp patch

frmMain.cpp patch

From
"Adam H. Pendleton"
Date:
Attached is a patch against the CVS tree to put the About menu item in
the standard place on the mac.

ahp
diff -urN pgadmin3/src/ui/frmMain.cpp pgadmin3.new/src/ui/frmMain.cpp
--- pgadmin3/src/ui/frmMain.cpp    2003-05-20 05:53:05.000000000 -0400
+++ pgadmin3.new/src/ui/frmMain.cpp    2003-05-20 11:45:17.000000000 -0400
@@ -152,6 +152,9 @@
     helpMenu->Append(MNU_TIPOFTHEDAY, wxT("&Tip of the day..."),    wxT("Show a tip of the day."));
     helpMenu->AppendSeparator();
     helpMenu->Append(MNU_ABOUT, wxT("&About..."),                   wxT("Show about dialog."));
+#ifdef __WXMAC__
+    wxApp::s_macAboutMenuItemId = MNU_ABOUT;
+#endif
     menuBar->Append(helpMenu, wxT("&Help"));

     // Tree Context Menu

Re: frmMain.cpp patch

From
"Dave Page"
Date:
Thanks, applied.

Does this mean you can see tha main form on the Mac now?

Regards, Dave.

> -----Original Message-----
> From: Adam H. Pendleton [mailto:fmonkey@fmonkey.net]
> Sent: 20 May 2003 16:49
> To: pgadmin-hackers@postgresql.org
> Subject: [pgadmin-hackers] frmMain.cpp patch
>
>
> Attached is a patch against the CVS tree to put the About
> menu item in
> the standard place on the mac.
>
> ahp
>

Re: frmMain.cpp patch

From
"Adam H. Pendleton"
Date:
Dave Page wrote:

>Thanks, applied.
>
>Does this mean you can see tha main form on the Mac now?
>
>
>
Yes.  :-)  Actually the misc.cpp patch contained the fix for the main
form problem.  This just linked the pgadmin3 about box to the about link
that a part of the standard Mac menu.

ahp