Changeset 164303a799af7adefaf2c395bb80722016888ffe

Show
Ignore:
Timestamp:
12/11/08 17:09:29 (3 years ago)
Author:
Lincoln de Sousa <lincoln@…>
Children:
0ae1f9c55ae47651f6d7bc4803d9aef914318319
Parents:
3eb613198d10628b37985303db0f8dfb2a245b33
git-committer:
Lincoln de Sousa <lincoln@…> (12/11/08 17:09:29)
Message:

removing unused stuff and adding the all var

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/common.py

    r512b8d8 r164303a  
    3131_ = gettext.gettext 
    3232 
     33__all__ = ['_', 'ShowableError', 'test_dbus', 'test_gconf', 
     34           'pixmapfile', 'gladefile', 'hexify_color'] 
     35 
    3336class ShowableError(Exception): 
    3437    def __init__(self, title, msg, exit_code=1): 
     
    5255    return c.dir_exists('/apps/guake') 
    5356 
    54 def std_visible(value): 
    55     if not value: 
    56         sys.stderr = open('/dev/null', 'w') 
    57         sys.stdout = open('/dev/null', 'w') 
    58     else: 
    59         sys.stderr = sys.__stderr__ 
    60         sys.stdout = sys.__stdout__ 
    61  
    6257def pixmapfile(x): 
    6358    f = os.path.join(guake_globals.image_dir, x) 
     
    7570    h = lambda x: hex(x).replace('0x', '').zfill(4) 
    7671    return '#%s%s%s' % (h(c.red), h(c.green), h(c.blue)) 
    77  
    78 def update_ui(): 
    79     time.sleep(1/(10**20)) 
    80     while gtk.events_pending(): 
    81         gtk.main_iteration()