Re: [code] [textadept] Menu questions

From: Mitchell <m.att.foicica.com>
Date: Fri, 1 Nov 2013 23:19:08 -0400 (EDT)

Hi Robert,

On Thu, 31 Oct 2013, Robert Gieseke wrote:

> Hi Mitchell,
>
> nothing urgent, but I noticed that on OS X (10.9 Mavericks) the short cuts
> for Escape and Delete (Backspace) are no longer shown. This appears to have
> changed after 6.5, so 6.6 beta does not show them anymore. There were lots of
> changes related to OS X, so this is probably related. There appears to have
> been a switch to a new GTK-OSX version before 6.6 beta so maybe this is a
> GTK-OSX issue.

Thanks for the report. I'll look into it, but it is not a priority for me.

> Around the same time[1] menu.menubar was made 'private'. Maybe this could be
> reversed?
>
> I was trying to create an additional menu, which would then be possible like:
>
> local menu = require 'textadept.menu'
>
> local extramenu = {
> title = '_Extras',
> {'_Extra menu',
> {ui.dialogs.msgbox, {title = 'Extra menu'}}},
> }
>
> table.insert(menu.menubar, #menu.menubar, extramenu)
> menu.set_menubar(menu.menubar)

I am a little reluctant to restore low-level access to menus, but I'll
think about it. Thanks for the suggestion.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 01 Nov 2013 - 23:19:08 EDT

This archive was generated by hypermail 2.2.0 : Sat 02 Nov 2013 - 06:46:49 EDT