From 58233ff65b03cfe81eedb0cb1c5f1bf9322b4a27 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 01 Feb 2010 22:03:51 +0000 Subject: fixed bug in running_sugar logic --- (limited to 'tagplay.py') diff --git a/tagplay.py b/tagplay.py index b58a123..dff272d 100644 --- a/tagplay.py +++ b/tagplay.py @@ -66,7 +66,7 @@ class Gplay: return True def setFile(self, path): - uri = "file://" + str( path ) + uri = "file://" + str(path) if (self.player.get_property('uri') == uri): self.seek(gst.SECOND*0) return @@ -167,14 +167,14 @@ def play_movie_from_file(lc, filepath, x, y, w, h): if lc.gplay.window == None: gplayWin = PlayVideoWindow() lc.gplay.window = gplayWin - gplayWin.set_type_hint( gtk.gdk.WINDOW_TYPE_HINT_DIALOG ) - gplayWin.set_decorated( False ) - if lc.tw.running_sugar(): - gplayWin.set_transient_for( lc.tw.activity ) + gplayWin.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG) + gplayWin.set_decorated(False) + if lc.tw.running_sugar: + gplayWin.set_transient_for(lc.tw.activity) # y position is too high for some reason (toolbox?) adding offset - gplayWin.move( x, y+108 ) - gplayWin.resize( w, h ) - gplayWin.show_all( ) + gplayWin.move(x, y+108) + gplayWin.resize(w, h) + gplayWin.show_all() def stop_media(lc): -- cgit v0.9.1