URI:
       tadded close function in tomb lists - gtomb - tomb gtk frontend in zenity
  HTML git clone git://parazyd.org/gtomb.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit cc7244bafd45146556ed34979c8b0f3912ad7f62
   DIR parent 12c69019dc41a416233af27561c3fd35aa017c63
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Fri, 18 Dec 2015 16:54:27 +0100
       
       added close function in tomb lists
       
       Diffstat:
         M README.md                           |       1 +
         M gtomb                               |      28 +++++++++++++++++++++++++++-
       
       2 files changed, 28 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/README.md b/README.md
       t@@ -20,6 +20,7 @@ list and the script will run it for you. Easy-peasy.
        ## TODO
        * Complete error checking
        * Figure out why ps fails sometimes
       +* index and search
        * and more stuff 
        
        ## What you need to do
   DIR diff --git a/gtomb b/gtomb
       t@@ -538,7 +538,33 @@ function _list {
            res=$?
            case $res in
                0)
       -            exec _main
       +            listchoice=`zenity \
       +                --title="Choose action" \
       +                --window-icon="$MONMORT" \
       +                --width=640 --height=200 --list \
       +                --separator=" & " \
       +                --text="What do you want to do with this tomb?" \
       +                --column=Command \
       +                --column=Description \
       +                "close" "Close the selected tomb." \
       +                "resize" "Resize the selected tomb."`
       +
       +            if [[ $? == 1 ]]; then
       +                exec _main
       +            fi
       +
       +            case $listchoice in
       +                close)
       +                    sudoassword=$(ask_password "Insert sudo password for user $USER") 
       +                    echo -e "$sudoassword\n" | sudo -S -v
       +                    _sudowrong
       +
       +                    sudo tomb close $tombname
       +                    _zeninfo "Success" "Tomb closed successfully!"
       +                    exec _main
       +                    ;;
       +                # See what else to add
       +            esac
                    ;;
                1)
                    exec _main