I want to add a shortcut key for the "Mark all as Read" command. I used to have a shortcut but after upgrading to 1.4.6 it got wiped and now I dont remember which file to change. I tried changing the file in /usr/share/evolution/ui/ by adding the accel= value but it never works. Can somebody help me.
The attached patch does this. The chosen shortcut probably isn't the best, but others where already in use. Anyway, should be trivial to even change the shortcut inside the patch file... # patch -d /usr/share/evolution/1.4/ui/ < MarkAllAsRead-shortcut.patch ...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; }}}
Attachment:
MarkAllAsRead-shortcut.patch
Description: Text Data