Ignore:
Timestamp:
05/12/12 11:19:11 (2 years ago)
Author:
Martin Kolman <martin.kolman@…>
Branches:
master
Children:
2a59b16
Parents:
04cbe44
git-author:
Martin Kolman <martin.kolman@…> (05/12/12 11:19:11)
git-committer:
Martin Kolman <martin.kolman@…> (05/12/12 11:19:11)
Message:

fix point selection icons appearance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/mod_route.py

    r88a4107 rcf7601f  
    715715    y1 = (y-dy)+h 
    716716 
    717     startIcon = "generic_alpha" 
    718     endIcon = "generic_alpha" 
     717    startIcon = "generic:;0.5;;0.5;;" 
     718    endIcon = "generic:;0.5;;0.5;;" 
    719719    if self.expectStart: 
    720       startIcon = "generic_alpha_red" 
     720      startIcon = "generic:red;0.5;red;0.5;;" 
    721721    if self.expectEnd: 
    722       endIcon = "generic_alpha_green" 
     722      endIcon = "generic:green;0.5;green;0.5;;" 
    723723 
    724724    routingAction = 'route:p2pRoute' 
    725     if self.selectOnePoint == True: 
     725    if self.selectOnePoint: 
    726726      routingAction = 'route:p2posRoute' 
    727727 
    728728    menus.drawButton(cr, x1-dx, y1, dx, dy, 'start', startIcon, "route:expectStart") 
    729729    menus.drawButton(cr, x1, y1-dy, dx, dy, 'end', endIcon, "route:expectEnd") 
    730     menus.drawButton(cr, x1, y1, dx, dy, 'route', "generic_alpha", routingAction) 
     730    menus.drawButton(cr, x1, y1, dx, dy, 'route', "generic:;0.5;;0.5;;", routingAction) 
    731731 
    732732    # "flush" cairo operations 
Note: See TracChangeset for help on using the changeset viewer.