Log Message:
-----------
Turns out that wxMac actually supports a macish behaviour of
the "Quit" MenuItem. It works similar to the About and Help menu
handling - you just set s_macEditMenuItemId to the id of
the Exit-Menuitem, and wx takes care of the rest.

Here is is patch (3-liner, including the compiler conditionals)
for this.
[Florian Pflug]

Modified Files:
--------------
    pgadmin3/src/ui:
        frmMain.cpp (r1.128 -> r1.129)

Index: frmMain.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/frmMain.cpp,v
retrieving revision 1.128
retrieving revision 1.129
diff -Lsrc/ui/frmMain.cpp -Lsrc/ui/frmMain.cpp -u -w -r1.128 -r1.129
--- src/ui/frmMain.cpp
+++ src/ui/frmMain.cpp
@@ -178,6 +178,9 @@
     fileMenu->Append(MNU_HBAFILECONFIG, _("Open pg_hba.conf"),    _("Open 
configuration editor with pg_hba.conf."));
     fileMenu->AppendSeparator();
     fileMenu->Append(MNU_EXIT, _("E&xit\tAlt-F4"),                _("Quit this 
program."));
+#ifdef __WXMAC__
+    wxApp::s_macExitMenuItemId = MNU_EXIT;
+#endif
     menuBar->Append(fileMenu, _("&File"));
 
     // Edit Menu
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply via email to