Re: View / Preview Pane accelerator (was: Re: [Evolution] I type a single-quote and get an acute accent)



On Mon, 2005-01-10 at 12:53 -0400, Patrick O'Callaghan wrote:
On Fri, 2005-01-07 at 17:23 +0100, guenther wrote:
The View / Preview Pane accelerator is defined in your
$prefix/share/evolution/2.0/ui/evolution-mail-global.xml file. It's
this
chunk:

    <cmd name="ViewPreview"
     _tip="Show message preview window"
     accel="*Control*grave"
     type="toggle"/>

Change the accel attribute to suite your needs and keyboard.

OK, I got this to work after several tries.

Great. :)


The syntax for the accel
value is not entirely obvious: I finally settled on Ctrl+Alt+P but when
I tried setting *Control*Alt*p (by analogy with *Control*Alt*s which is
used for "Save As ...") it didn't work. However it did work with
*Control**Alt*p. Is this a feature?

No, a bug. :-/

$ grep Control *.xml | grep Alt | tail -2
evolution-comp-editor.xml:        accel="*Control*Alt*s"
evolution-mail-message.xml:     accel="*Control**Alt*s"

$ egrep "\*Control\*\*(Alt|Shift)\*" *.xml | wc -l
17
$ egrep "\*Control\*(Alt|Shift)\*" *.xml | wc -l
1

Unlucky you used the only buggy accelerator setting as sample. That
particular one doesn't even work. Each modifier needs to be surrounded
by asterisks, so *Control**Alt*p is correct.

...guenther


-- 
char *t="\10pse\0r\0dtu\0  ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}




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