Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Cc: ding@gnus.org
Subject: Re: Sharing mail icons between MH-E and Gnus
Date: Mon, 20 Feb 2006 02:26:55 +0100	[thread overview]
Message-ID: <v9hd6u6crk.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <16231.1140316818@olgas.newt.com> (Bill Wohler's message of "Sat, 18 Feb 2006 18:40:18 -0800")

On Sun, Feb 19 2006, Bill Wohler wrote:

[ I'll only respond to parts of your mail later in a separate mail. ]

> Reiner Steib <reinersteib+gmane@imap.cc> wrote:

> Thanks very much for doing this. I've added the existing non-gnus names
> that MH-E/Emacs would like to use as well. (I dropped the suffixes so
> the table would fit.) Proposed names where icons don't yet exist are in
> square brackets ([]). I've indicated icons used by Gnus but not by MH-E
> or the rest of Emacs with a dash; this means we do not necessarily have
> to move them out of the gnus directory at this time. I agree with your
> observation about mail-preview.xpm (that we should have a specific one.
>
>   g=/usr/local/share/icons/gnome or /usr/share/icons/hicolor/24x24/stock
>   ei=$EMACS/etc/images
>
>   $g/stock_mail-compose            $ei/gnus/compose        $ei/mail/compose

OK.

>   $g/stock_mail-flag-for-followup  $ei/gnus/flag-followup  $ei/highlight ?

Maybe a more generic name such as $ei/flag-red?  I'm not sure.

>   $g/stock_mail-forward            $ei/gnus/forward        [$ei/mail/forward]
>   $g/stock_mail-handling           $ei/gnus/save-draft     -

We should use $ei/mail/save-draft, I think.

>   $g/stock_mail-reply              $ei/gnus/reply-author   $ei/mail/reply
>   $g/stock_mail-reply-to-all       $ei/gnus/reply-all      $ei/mail/reply-all
>   $g/stock_mail-send               $ei/gnus/send           $ei/mail/send
>   $g/stock_attach                  $ei/gnus/attach         $ei/mail/attach
>   $ei/gnus/preview                 $ei/gnus/mail-preview   [$ei/mail/preview]
>
>   $g/stock_connect                 $ei/gnus/connect        -
>   $g/stock_delete                  $ei/gnus/delete         [$ei/delete]
>   $g/stock_dialog-info             $ei/gnus/describe       -
>   $g/stock_disconnect              $ei/gnus/disconnect     -
>   $g/stock_exit                    $ei/gnus/exit-mode      $ei/exit

There is already an icon "exit.xpm" in Emacs (with a smaller door and
arrow compared to $g/stock_exit.  Apparently it's unused.  I'd also
vote for replacing it with stock_exit.

>   $g/stock_refresh                 $ei/gnus/refresh        $ei/refresh

See below (stock_inbox).

>   $g/stock_sort-ascending          $ei/gnus/sort-a-z       [$ei/sort-ascending]
>   $g/stock_sort-column-ascending   $ei/gnus/sort-1-9       [$ei/sort-column-ascending]
[ Re-ordered quoting: ]
> If you're going to move the sort icons, you might as well take this
> opportunity to use the GNOME names to make it easier to see from whence
> they came.

I shortened the names to avoid name collisions for 8.3 systems
(e.g. sort-column-ascending vs. sort-column-descending).  Additionally
the names don't reflect the images' content.  Maybe because the Gnome
icons are intended for spread sheets applications where letters
indicate rows and numbers indicate columns.

>   $g/stock_spam                    $ei/gnus/spam           [$ei/mail/spam]
>   $g/stock_not-spam                $ei/gnus/not-spam       [$ei/mail/not-spam]
>   $g/sep                           $ei/gnus/separator      -
>
> I've added a few more icons to grab from GNOME:
>
>   $g/stock_contact                 -                       $ei/mail/alias -> $ei/contact?

$ei/contact seems more suitable.  We don't have a related Gnus command
for this icon, but users might bind it to `bbdb/gnus-show-sender' (or
we could add this tool bar icon by default if `bbdb/gnus-show-sender'
is bound).

>   $g/stock_mail-copy               -                       [$ei/mail/copy]
>   $g/stock_mail-move               -                       $ei/mail/refile -> $ei/mail/move?

I don't know about MH-E, but for Gnus I'd not have these functions on
the tool bar, because the user has to choose the target via the
mini-buffer prompt (keyboard) after a mouse click.  (Not a good UI, I
think.)

>   $g/stock_inbox                   -                       $ei/mail -> $ei/inbox ?

In the meantime, I also use stock_inbox (for
`gnus-summary-insert-new-articles' in the summary and
`gnus-group-get-new-news' in the group buffer) instead of
stock_refresh.

>   $g/stock_compile                 -		           $ei/mail/repack?

[In Gnus, somehow similar commands would be
`gnus-group-expire-all-groups' and `gnus-summary-expire-articles'.]
But the image stock_compile probably is supposed to visualize batch
processing, isn't it?

>   $g/stock_zoom-out                -                       $ei/mail/widen

Maybe we should add stock_zoom{,-in,out,prev,next,shift} as $ei/zoom*?
The zoom images aren't mail-specific.  In Gnus, they could be used for
some of the limiting commands, (info "(gnus)Limiting").

> I'd like to update $ei/show, but there doesn't seem to be an equivalent
> GNOME icon for this. I could take stock_new and add a bit of "text" to
> it. Another idea that occurred to me was using stock_mail-open, but then
> we'd have to move it to $ei/mail/open (and could probably delete
> $ei/show). Peter?
[ A MH-E issue, AFAIU. ]

> Fortunately, it looks like most of the other Emacs icons have already
> been updated.

Yes.

>> As you can see from the above web page and the list above, we'd have
>> name collisions for reply-all.xpm (if we use mail/reply-all instead of
>> gnus/reply-all).
>
> Not if we go with the GNOME icons.

:-)

> In case you find it useful, I got the following tip for creating
> Emacs-compatible .pbm images from jan.h.d@swipnet.se.
>
>   1. Edit .xpm image in GIMP.
>   2. Image > Mode > Indexed. Check Use Black/White Palette and No
>      Color Dithering.
>   3. File > Save As file.xbm.
>   4. Run xbmtopbm < file.xbm > file.pbm.

Should be scriptable.  Below is my first Gimp script.  I used to
convert the Gnome PNG icons to XPM; convert(1) didn't work well for
this.  Any volunteers?

--8<---------------cut here---------------start------------->8---
;; -*- scheme -*-
;; Put this file in ~/.gimp-*/scripts/ (e.g. as rs-convert.scm).

;; gimp -i -b '(rs-save-as-xpm "foo.png" "foo.xpm" 127)'  '(gimp-quit 0)'

;; Maybe someone could add the steps described in
;; http://article.gmane.org/gmane.emacs.devel/35176 here?
;; | Gimp, I don't remember the details, but convert to indexed, and reduce 
;; | colors and choose palette when doing that.  Then save as xpm, setting 
;; | alpha to 255.  I don't think it was any more steps.

(define (rs-save-as-xpm filename filename2 threshold)
  (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
         (drawable (car (gimp-image-get-active-layer image))))
    ;; (unless threshold (setq threshold 127))
    (file-xpm-save RUN-NONINTERACTIVE image drawable
                   filename2 filename2 threshold)
    (gimp-image-delete image)))
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

  reply	other threads:[~2006-02-20  1:26 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1EQxwu-00028T-D0@mail.sourceforge.net>
     [not found] ` <28928.1129483226@olgas.newt.com>
2005-10-17 13:27   ` Sharing mail icons between MH-E and Gnus (was: debian changelog,1.39,1.40 control,1.29,1.30 dirs,1.2,1.3 emacsen-install,1.5,1.6 emacsen-startup,1.12,1.13 rules,1.12,1.13) Reiner Steib
2005-10-17 15:32     ` Sharing mail icons between MH-E and Gnus Bill Wohler
2006-01-19 21:37       ` Reiner Steib
2006-01-23 17:46         ` Bill Wohler
2006-02-19  2:40         ` Bill Wohler
2006-02-20  1:26           ` Reiner Steib [this message]
2006-02-20 19:57             ` Bill Wohler
2006-02-20 22:04               ` Reiner Steib
2006-02-21  0:30                 ` Bill Wohler
2006-02-21 11:37                   ` Icons for frequently used sort commands (was: Sharing mail icons between MH-E and Gnus) Reiner Steib
2006-02-21 22:22                     ` Bill Wohler
2006-02-22  0:30                       ` Icons for frequently used sort commands Reiner Steib
2006-02-20 15:58           ` Sharing mail icons between MH-E and Gnus Reiner Steib
2006-02-20 21:23             ` Adam Sjøgren
2006-02-21 11:30               ` Reiner Steib
2006-02-21 22:11                 ` Bill Wohler
2006-02-22  0:30                   ` Reiner Steib
2006-02-22  5:09                     ` Bill Wohler
2006-02-22  6:43                     ` Adam Sjøgren
2006-03-06 16:46                     ` Bill Wohler
2006-03-06 19:15                       ` Reiner Steib
2006-03-06 21:40                         ` Bill Wohler
2006-03-06 23:21                           ` Reiner Steib
2006-03-07  0:06                             ` Bill Wohler
2006-02-20 21:19           ` Reiner Steib
2006-02-20 22:53             ` Bill Wohler
2006-02-21 21:22               ` Reiner Steib
2006-02-21 22:29                 ` Bill Wohler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9hd6u6crk.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).