Another frmMain.cpp patch - Mailing list pgadmin-hackers

From Adam H. Pendleton
Subject Another frmMain.cpp patch
Date
Msg-id 3ECA5778.8040000@fmonkey.net
Whole thread Raw
List pgadmin-hackers
The attached patch attaches the Tools->Options Menu to the
Application->Preferences under Mac.  Unfortunately, wxWindows only
supports this feature with the CVS HEAD branch of the wxWindows code, so
it doesn't really do anything (but it doesn't hurt to have it in there
for the future).

ahp
diff -urN pgadmin3/src/ui/frmMain.cpp pgadmin3.new/src/ui/frmMain.cpp
--- pgadmin3/src/ui/frmMain.cpp    2003-05-20 11:51:31.000000000 -0400
+++ pgadmin3.new/src/ui/frmMain.cpp    2003-05-20 12:01:41.000000000 -0400
@@ -137,6 +137,9 @@
     toolsMenu->Append(MNU_STATUS, wxT("Server Status"),             wxT("Displays the current database status."));
     toolsMenu->AppendSeparator();
     toolsMenu->Append(MNU_OPTIONS, wxT("&Options..."),              wxT("Show options dialog."));
+#ifdef __WXMAC__
+    wxApp::s_macPreferencesMenuItemId = MNU_OPTIONS;
+#endif
     menuBar->Append(toolsMenu, wxT("&Tools"));

     // View Menu

pgadmin-hackers by date:

Previous
From: "Adam H. Pendleton"
Date:
Subject: Re: frmMain.cpp patch
Next
From: "Adam H. Pendleton"
Date:
Subject: configure.ac patch