Re: evolution question

guenther <[email protected]>
Newsgroups gmane.comp.gnome.ximian.user
Message-ID <1087413766.5219.9.camel@delta>
> i want to set up a keyboard shortcut to empty the trash. is that
> possible?

Sure it is. ;-)

The attached patch will remove the keyboard shortcut Ctrl-E
(accelerator) from Expunge and reuse it for Empty Trash.

You can apply the patch as root with this command: 

# patch -d /usr/share/evolution/1.4/ui.orig/ < EmptyTrash-accel.patch

Restart Evolution after that. This will affect all users of this
machine.

The $prefix /usr/share may be different for you, as it depends on the
distribution.


I decided to do it this way, as you did not mention any accelerator you
would like to have and all the best keys for Empty Trash are already in
use...

You should be able to change this yourself or just hack the XML files
yourself -- it should be clear from the patch what's needed to assign
accelerators.

For some more hints on hacking Evolution XML UI files you can search the
list archive. This isn't the first custom hack... ;)

HTH

...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; }}}
EmptyTrash-accel.patch (text/x-patch, 1.1 KB)
diff -u ui.orig/evolution-mail-global.xml ui/evolution-mail-global.xml
--- ui.orig/evolution-mail-global.xml	2004-06-16 21:03:31.000000000 +0200
+++ ui/evolution-mail-global.xml	2004-06-16 21:05:21.000000000 +0200
@@ -3,7 +3,8 @@
   <commands>   <!-- Alphabetical by name, yo -->
 
     <cmd name="EmptyTrash"
-     _tip="Permanently remove all deleted messages from all folders"/>
+     _tip="Permanently remove all deleted messages from all folders"
+     accel="*Control*e"/>
 
     <cmd name="ForgetPasswords"
      _tip="Forget remembered passwords so you will be prompted for them again"/>
diff -u ui.orig/evolution-mail-list.xml ui/evolution-mail-list.xml
--- ui.orig/evolution-mail-list.xml	2004-06-16 21:03:31.000000000 +0200
+++ ui/evolution-mail-list.xml	2004-06-16 21:05:11.000000000 +0200
@@ -31,8 +31,7 @@
      pixtype="pixbuf"/>
 
     <cmd name="FolderExpunge"
-     _tip="Permanently remove all deleted messages from this folder"
-     accel="*Control*e"/>
+     _tip="Permanently remove all deleted messages from this folder"/>
 
     <cmd name="HideDeleted"
      _tip="Hide deleted messages rather than displaying them with a line through them"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.