Changeset 164303a799af7adefaf2c395bb80722016888ffe
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r512b8d8
|
r164303a
|
|
| 31 | 31 | _ = gettext.gettext |
| 32 | 32 | |
| | 33 | __all__ = ['_', 'ShowableError', 'test_dbus', 'test_gconf', |
| | 34 | 'pixmapfile', 'gladefile', 'hexify_color'] |
| | 35 | |
| 33 | 36 | class ShowableError(Exception): |
| 34 | 37 | def __init__(self, title, msg, exit_code=1): |
| … |
… |
|
| 52 | 55 | return c.dir_exists('/apps/guake') |
| 53 | 56 | |
| 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 | | |
| 62 | 57 | def pixmapfile(x): |
| 63 | 58 | f = os.path.join(guake_globals.image_dir, x) |
| … |
… |
|
| 75 | 70 | h = lambda x: hex(x).replace('0x', '').zfill(4) |
| 76 | 71 | 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() |