Unix Technical Forum

Re: [PATCH] Improve Cmd-Q / Exit-Menu-Item on OSX

This is a discussion on Re: [PATCH] Improve Cmd-Q / Exit-Menu-Item on OSX within the pgsql Interfaces Pgadmin Hackers forums, part of the PostgreSQL category; --> Thanks Florian, patch applied. Regards, Dave > -----Original Message----- > From: pgadmin-hackers-owner@postgresql.org > [mailto gadmin-hackers-owner@postgresql.org] On Behalf Of > ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 05:38 PM
Dave Page
 
Posts: n/a
Default Re: [PATCH] Improve Cmd-Q / Exit-Menu-Item on OSX

Thanks Florian, patch applied.

Regards, Dave

> -----Original Message-----
> From: pgadmin-hackers-owner@postgresql.org
> [mailtogadmin-hackers-owner@postgresql.org] On Behalf Of
> Florian G. Pflug
> Sent: 24 April 2005 20:55
> To: pgadmin-hackers
> Subject: [pgadmin-hackers] [PATCH] Improve Cmd-Q /
> Exit-Menu-Item on OSX
>
> Hi
>
> 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.
>
> ---------------- cut here ------------------------------------
> Index: src/ui/frmMain.cpp
> ================================================== =================
> RCS file: /projects/pgadmin3/src/ui/frmMain.cpp,v
> retrieving revision 1.128
> diff -a -u -r1.128 frmMain.cpp
> --- src/ui/frmMain.cpp 24 Apr 2005 12:19:50 -0000 1.128
> +++ src/ui/frmMain.cpp 24 Apr 2005 19:38:02 -0000
> @@ -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
> ------------------------ cut here -----------------------------
>
> Please apply. (This is not sent as an attachment, because
> I had trouble getting attachments through to the list...)
>
> Greetings, Florian Pflug
>


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com