Check for available X DISPLAY when creating window
commitee63003048ac062b47d39088c58aca7a989dce45
authorUlrik Sverdrup <ulrik.sverdrup@gmail.com>
Fri, 25 Apr 2008 09:58:07 +0000 (25 11:58 +0200)
committerUlrik Sverdrup <ulrik.sverdrup@gmail.com>
Fri, 25 Apr 2008 09:58:07 +0000 (25 11:58 +0200)
tree6682dbb7084c9deedee0ba00913dc56c527d3d31
parentac08d8219df88f4f878959789e9c79fbfaf7bfae
Check for available X DISPLAY when creating window

Make sure we error out and exit when the X display is not available,
if we try to create a window.  Also modify utils.quit_dragbox() to
handle the case where we are outside the gtk main loop.
Dragbox/utils.py
Dragbox/window.py