wm_tweaks fixes
I need to update wm_tweaks to make use of the new ocarina.window functions.
This commit is contained in:
parent
cacf9a4b89
commit
dc776ac267
|
@ -1,6 +1,7 @@
|
|||
# Bryan Schumaker (10/30/2010)
|
||||
|
||||
import ocarina
|
||||
from ocarina import window
|
||||
gdk = ocarina.gdk
|
||||
libsaria = ocarina.libsaria
|
||||
file_to_id = libsaria.sources.file_to_id
|
||||
|
@ -12,7 +13,7 @@ def tweak_icon(file):
|
|||
if file == None:
|
||||
file = "images/ocarina.png"
|
||||
gdk.threads_enter()
|
||||
ocarina.set_window_icon(file)
|
||||
window.set_icon(file)
|
||||
gdk.threads_leave()
|
||||
|
||||
def tweak_title(filepath):
|
||||
|
@ -21,7 +22,7 @@ def tweak_title(filepath):
|
|||
title = get_attrs(id, "title")[0]
|
||||
else:
|
||||
title = ocarina.__vers__
|
||||
ocarina.set_window_title(title)
|
||||
window.set_title(title)
|
||||
|
||||
def start():
|
||||
invite("POSTLOAD", tweak_title)
|
||||
|
|
Loading…
Reference in New Issue