Changeset 198

Show
Ignore:
Timestamp:
Wed Dec 26 09:02:05 2007
Author:
manatlan
Message:

- win32 bug : gdk.color don't have methods to_string() on win32 gtk
runtime. It was stopping the launch of jbrout since jstyle object

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/jbrout.py

    r196 r198  
    115 115     del(w)              # it's the only trick i've found  
    116 116      
    117       # Normal text  
    118       TEXT= style.text[gtk.STATE_NORMAL].to_string()  
    119        
    120       # grey text (folder without jpg, category, ...)  
    121       TEXT_LOLIGHT = style.fg[gtk.STATE_INSENSITIVE].to_string()  
    122        
    123       # colored text (basket color ...)  
    124       TEXT_HILIGHT = "#FF0000" #style.bg[gtk.STATE_PRELIGHT].to_string()  
    125        
    126       # input background  
    127       BACKGROUND = style.base[gtk.STATE_NORMAL].to_string()  
    128    
      117     try:  
      118         # Normal text  
      119         TEXT= style.text[gtk.STATE_NORMAL].to_string()  
      120          
      121         # grey text (folder without jpg, category, ...)  
      122         TEXT_LOLIGHT = style.fg[gtk.STATE_INSENSITIVE].to_string()  
      123          
      124         # colored text (basket color ...)  
      125         TEXT_HILIGHT = "#FF0000" #style.bg[gtk.STATE_PRELIGHT].to_string()  
      126          
      127         # input background  
      128         BACKGROUND = style.base[gtk.STATE_NORMAL].to_string()  
      129     except: # on win32 : gdk.Color don't have methods to_string() ?!?  
      130          
      131         TEXT= "#000000"  
      132         TEXT_LOLIGHT = "#666666"  
      133         TEXT_HILIGHT = "#FF0000"  
      134         BACKGROUND = "#FFFFFF"  
    129 135  
    130 136