Window icon

The main window sets the image images/ocarina.png as the window manager
icon on startup.
This commit is contained in:
Bryan Schumaker 2010-10-30 12:17:54 -04:00
parent 356244e3be
commit 2861e3d3b9
2 changed files with 1 additions and 0 deletions

BIN
images/ocarina.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -31,6 +31,7 @@ def init(size):
mask = gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_HIGHLIGHT | gtk.DEST_DEFAULT_DROP
dnd_list = [("text/uri-list", 0, TARGET_TYPE_URI_LIST)]
window.drag_dest_set(mask, dnd_list, gtk.gdk.ACTION_COPY)
window.set_icon_from_file("images/ocarina.png")
window.resize(size[0], size[1])
window.show()