Re: feature request

Bob Schmertz <rschmertz-/[email protected]> Wed, 4 Aug 2004 22:24:08 -0700 (PDT)
Newsgroups gmane.comp.gnome.apps.gqview.user
Message-ID <[email protected]>
--- Ernes Tito <timiancito-/[email protected]> wrote:

> Hi!
> 
[snip]
> 
> As usual, when one gets to use a program very often, I
> have a feature request. My problem is that there are
> only 10 fields possible in the External Editors. I
> like this feature very much but I've run out of
> fields. There are only 10 fields possible (I'm using
> version 1.5.1, which I belive is the latest) and I
> would like to add some more (I'm aware that there will
> be a problem with the shortcut for these extra
> fields).

Though I can't speak for John, this may be a bit of an unusual scenario,
and might be better handled by an external program to cover the N other
options.

You could use a script like the following:

#!/bin/bash
                                                                         
      
jpt () {
    if jpegtran -rotate 90 -copy all -outfile ${1}_tmp $1; then
        mv ${1}_tmp $1
    else rm ${1}_tmp
    fi
}
                                                                         
      
numels=0
for x in gimp jpt ee #add as many as you like here
do
  numels=$((numels + 1))
  util[$numels]=$x
  button=${x}:$numels
  if [ "x$buttons" = x ]; then
      buttons=$button
  else
      buttons=$buttons,$button
  fi
done
xmessage -buttons "$buttons" "Pick your poison"
retval=$?
${util[$retval]} $1


=====
Cheers,
Bob Schmertz


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com