Обсуждение: Another frmMain.cpp patch

Поиск
Список
Период
Сортировка

Another frmMain.cpp patch

От
"Adam H. Pendleton"
Дата:
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

Re: Another frmMain.cpp patch

От
"Dave Page"
Дата:
Thanks, patch applied.

> -----Original Message-----
> From: Adam H. Pendleton [mailto:fmonkey@fmonkey.net]
> Sent: 20 May 2003 17:28
> To: pgadmin-hackers@postgresql.org
> Subject: [pgadmin-hackers] Another frmMain.cpp patch
>
>
> 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
>