Re: Support for Mac-compatible keybindings

Tristan Van Berkom <[email protected]> Tue, 7 May 2013 13:59:43 +0900
Newsgroups gmane.comp.gnome.glade.user
Message-ID <CAGUy9W+L7Z=MRHiTO2jVqUP_7D8+2=zQ5NN2Uq6Rc_NeDMFQyA@mail.gmail.com>
On Tue, May 7, 2013 at 7:02 AM, Eric Gregory <[email protected]> wrote:
> A while back I started looking at Mac support and found that Glade was
> causing some keybinding issues.  On Mac, keybindings typically use Command
> instead of Control. Gtk has a built-in method for handling this, but that
> doesn't seem to be exposed through Glade.
>
> I filed a ticket about this a while back but haven't heard anything:
> https://bugzilla.gnome.org/show_bug.cgi?id=697687
>
> Perhaps the larger question is whether or not this is even strictly a Glade
> bug, or a shortcoming in GtkBuilder?  Should I file this ticket with Gtk
> instead?
>

Yes, you can file one for GTK+ but you can leave the bug for Glade (and
making it 'block on' the GTK+ bug would be helpful).

Specifically, I guess it would be possible to support some symbolic values
in the <accelerator> descriptions outlined here:

https://developer.gnome.org/gtk3/unstable/GtkWidget.html#GtkWidget-BUILDER-UI
https://developer.gnome.org/gtk3/unstable/GtkActionGroup.html#GtkActionGroup-BUILDER-UI

I guess at least an exception can be made for the "primary" modifier,
perhaps even
by adding a value to GdkModifierType.

Cheers,
      -Tristan
_______________________________________________
Glade-users maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-users