Window icon
The main window sets the image images/ocarina.png as the window manager icon on startup.
This commit is contained in:
parent
356244e3be
commit
2861e3d3b9
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
|
@ -31,6 +31,7 @@ def init(size):
|
||||||
mask = gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_HIGHLIGHT | gtk.DEST_DEFAULT_DROP
|
mask = gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_HIGHLIGHT | gtk.DEST_DEFAULT_DROP
|
||||||
dnd_list = [("text/uri-list", 0, TARGET_TYPE_URI_LIST)]
|
dnd_list = [("text/uri-list", 0, TARGET_TYPE_URI_LIST)]
|
||||||
window.drag_dest_set(mask, dnd_list, gtk.gdk.ACTION_COPY)
|
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.resize(size[0], size[1])
|
||||||
window.show()
|
window.show()
|
||||||
|
|
Loading…
Reference in New Issue