Re: binding keys to actions without gconf



On Fri, 2006-05-12 at 09:30 -0600, Elijah Newren wrote:
> On 5/12/06, Seb James <seb esfnet co uk> wrote:
> > Here's the diff of prefs.c after backporting the patch in bug 326661 to
> > metacity 2.8.13.
> 
> Cool, glad to see you got it working.  I notice you made a few other
> changes (and backported a few other bugfixes -- e.g. fixing the
> titlebar font and double click titlebar action).

Yes, I changed these to suit my tastes and also set a single workspace.

Metacity really is nice and simple and it's great to be able to code all
these preferences into the binary - much cleaner for an embedded system
than having a config file or gconf.

> 
> One quick comment:
> 
> > +  { META_KEYBINDING_COMMAND_SCREENSHOT,     "Print"                      },
> > +  { META_KEYBINDING_COMMAND_WIN_SCREENSHOT, "<Alt>Print"                 },
> > +  { NULL,                                   NULL                         }
> > +};
> > +
> > +/* Name field must occur in the same order as window_bindings, though entries
> > + * can be skipped
> > + */
> > +static MetaSimpleKeyMapping window_string_bindings[] = {
> > +  { META_KEYBINDING_WINDOW_MENU,            "<Alt>Print"                 },
> 
> Surely you didn't mean to bind <Alt>Print to both
> take-screenshot-of-window and show-window-menu did you?  Did I make
> that same error?

Thanks for the heads-up.

I guess you must have done that, as I didn't play with the keybindings
yet - I'm still working on capturing key press events with the linux
kernel event interface - I'll need to set the keybindings when I then
propagate the key press events through to X though.

regards,

Seb

-- 
Embedded Software Foundry Ltd. 'Embedded Linux Development'
Tel: +44 (0)845 4580277   Web: http://www.esfnet.co.uk/
Axiom Tech Open Source Member: http://www.axiomtech.co.uk/
Gpg key: http://www.esfnet.co.uk/ssl/seb.gpg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]