Thread overview | |||||
---|---|---|---|---|---|
|
May 07, 2019 Blog Post #0033 - Faking an ImageMenuItem with an AccelKey | ||||
---|---|---|---|---|
| ||||
While browsing the GTK source, I came across a comment showing how to fake the deprecated ImageMenuItem and add an AccelKey. I'm not sure why this was considered useful enough to write about in the source comments, but it sounded like an interesting exercise. So I ported the code from C to D which turned out to be more challenging than I thought it would be. But the result is today's post: how to produce a MenuItem with an image AND and AccelKey. Here's the link: http://gtkdcoding.com/2019/05/07/0033-fake_image_menu_and_accel.html |
May 07, 2019 Re: Blog Post #0033 - Faking an ImageMenuItem with an AccelKey | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ron Tarrant | On Tuesday, 7 May 2019 at 09:39:55 UTC, Ron Tarrant wrote: > But the result is today's post: how to produce a MenuItem with an image AND and AccelKey. > > Here's the link: http://gtkdcoding.com/2019/05/07/0033-fake_image_menu_and_accel.html Thanks! the github link links to file .._16_.. from 0032 instead of .._17_.. some end block comments need update: >> class FileMenuHeader >> ... >> } // class FileMenu >> void reportStuff >> } // exit() >> void doSomething(MenuItem mi) >> } // exit() |
May 07, 2019 Re: Blog Post #0033 - Faking an ImageMenuItem with an AccelKey | ||||
---|---|---|---|---|
| ||||
Posted in reply to number | On Tuesday, 7 May 2019 at 11:46:01 UTC, number wrote: > On Tuesday, 7 May 2019 at 09:39:55 UTC, Ron Tarrant wrote: > the github link links to file .._16_.. from 0032 instead of .._17_.. > > > some end block comments need update: > >>> class FileMenuHeader >>> ... >>> } // class FileMenu > >>> void reportStuff >>> } // exit() > >>> void doSomething(MenuItem mi) >>> } // exit() All fixed. As always, I'm eternally grateful for the proofreading, number. |
Copyright © 1999-2021 by the D Language Foundation