Changeset 220 for trunk


Ignore:
Timestamp:
03/14/07 16:50:19 (17 years ago)
Author:
smasson
Message:

add gv and ggv in ps viewers list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Postscript/printps.pro

    r219 r220  
    105105; call the viewers 
    106106      CASE event.value OF 
    107         'Ghostview':spawn, '\ghostview -'+papsize+' -quiet -'+ori+' '+uval.nameps 
    108         'Ghostscript':spawn, '\gs -sPAPERSIZE='+papsize+' -q '+uval.nameps 
    109         'Kghostview':spawn, '\kghostview '+uval.nameps 
     107        'GNU Ghostview':cmd = '\gv --media='+papsize+' --orientation='+ori+' '+uval.nameps 
     108        'Gnome Ghostview':cmd = '\ggv '+uval.nameps 
     109        'Ghostview':cmd = '\ghostview -'+papsize+' -quiet -'+ori+' '+uval.nameps 
     110        'Ghostscript':cmd = '\gs -sPAPERSIZE='+papsize+' -q '+uval.nameps 
     111        'Kghostview':cmd = '\kghostview '+uval.nameps 
    110112      ENDCASE 
     113      spawn, cmd 
    111114      return 
    112115    END 
     
    276279; ps viewers grouped button 
    277280  psviewers = ['no psviewers found'] 
     281  IF file_which(getenv('PATH'), 'gv') NE '' THEN $ 
     282    psviewers = [psviewers, 'GNU Ghostview'] 
     283  IF file_which(getenv('PATH'), 'ggv') NE '' THEN $ 
     284    psviewers = [psviewers, 'Gnome Ghostview'] 
    278285  IF file_which(getenv('PATH'), 'ghostview') NE '' THEN $ 
    279286    psviewers = [psviewers, 'Ghostview'] 
Note: See TracChangeset for help on using the changeset viewer.