Show
Ignore:
Timestamp:
12/03/06 13:54:34 (2 years ago)
Author:
asterix
Message:

handle correctly strange behaviour of GTK

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gtkgui_helpers.py

    r7482 r7595  
    526526        col = '#' 
    527527        for i in (color.red, color.green, color.blue): 
    528                 h = hex(i)[2:4] 
     528                # GTK sometime return a value > 256 
     529                h = hex(i%256)[2:4] 
    529530                if len(h) == 1: 
    530531                        h = '0' + h