Re: Adding icons to task bar
guenther <[email protected]>
| Newsgroups | gmane.comp.gnome.ximian.user |
|---|---|
| Message-ID | <1083364467.7165.30.camel@localhost> |
> > > Is it possible to modify the task bar at the top of Evolution by
> > > adding or deleting icons? I am using version 1.4.
> >
> > Yep, this is possible in most cases.
> >
> > Unless you want to learn that black art, you could tell me what you
> > want. There is no GUI available for this, but it needs only hacking some
> > XML files. An example will make learnig about this stuff easier, if you
> > are interested.
>
> I wanted to add the "reply to list" option ...
So here we go. Attached are 2 patches that add the desired button and
assign a Ctrl-L accelerator shortcut for Replying to List [1].
Most parts of the toolbar and menus (including shortcuts) are defined by
the XML files in /usr/share/evolution/1.4/ui/ -- YMMV, the actual path
depends on the distribution [2].
To apply the accelerator patch for instance, run the following command
as root (adjust the path if needed):
# patch -d /usr/share/evolution/1.4/ui/ < MessageReplyList-accel.patch
The button patch can be applied just like this.
If you wanna start hacking on your own, be careful and backup those
files. If they are invalid, Evo won't start up. Best approach to start
would be having a close look at those XML files.
Some notes:
1) The priority defines, if the text will be displayed always or
depending on the context. Priority 0 should disable the text in "Text
beside Icons" context [1] just like the Trash button.
2) Assigning real custom icons is the darkest part of this black magic,
which I coincidentally found out just some weeks ago. Yes! :-)
Hope this solves your request...
...guenther
[1] This patch actually went in into official Evolution 1.4.7.
[2] SuSE definitely uses another path, but I forgot. Anyone else?
[3] run gnome-ui-properties
--
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; }}}
MessageReplyList-accel.patch
(text/x-patch, 488 B)
diff -u ORIG/evolution-mail-message.xml ./evolution-mail-message.xml
--- ORIG/evolution-mail-message.xml 2003-10-14 23:52:54.000000000 +0200
+++ ./evolution-mail-message.xml 2003-10-14 23:54:10.000000000 +0200
@@ -105,7 +105,7 @@
<cmd name="MessageReplyList"
_tip="Compose a reply to the mailing list of the selected message"
- accel=""/>
+ accel="*Control*l"/>
<cmd name="MessageReplySender"
_tip="Compose a reply to the sender of the selected message"
MessageReplyList-button.patch
(text/x-patch, 527 B)
--- evolution-mail-message.xml.src 2004-04-30 23:36:56.000000000 +0200
+++ evolution-mail-message.xml 2004-04-30 23:58:06.679557740 +0200
@@ -359,6 +359,10 @@
_label="Reply to All" priority="1"
pixtype="pixbuf"/>
+ <toolitem name="MessageReplyList" verb=""
+ _label="Reply to List" priority="1"
+ pixtype="filename" pixname="/usr/share/evolution/1.4/images/buttons/reply.png"/>
+
<toolitem name="MessageForward" verb=""
_label="Forward" priority="1"
pixtype="pixbuf"/>