openshot.developers team mailing list archive
-
openshot.developers team
-
Mailing list archive
-
Message #05694
[Bug 440802] Re: Video preview button - pause button visualisation missing
I had tried to fix it sometime ago and if I don't remember very well,
but the problem was with the refresh (or redraw? or whatever) that was
necessary after changing the icon in the toolbutton. This is not
necessary when using stocks.
For me it is working fine too (Ubuntu 10.10, OpenShot 1.3.0~alpha1):
def on_tlbPlay_clicked(self, widget, *args):
print "on_tlbPlay_clicked called with self.%s" % widget.get_name()
# get correct gettext method
_ = self._
# Get the current speed
current_speed = self.MyVideo.get_speed()
# Refresh the MLT XML file
self.project.RefreshXML()
# is video stopped?
if current_speed == 0:
# start video
self.MyVideo.play()
# update video preview tab
#self.lblVideoPreview.set_text(_("Video Preview"))
# update stock and tooltip text
self.tlbPlay.set_stock_id("gtk-media-pause")
self.tlbPlay.set_tooltip_text(_("Pause"))
else:
# stop video
self.MyVideo.pause()
# update video preview tab
#self.lblVideoPreview.set_text(_("Video Preview (Paused)"))
# update stock and tooltip text
self.tlbPlay.set_stock_id("gtk-media-play")
self.tlbPlay.set_tooltip_text(_("Play"))
--
You received this bug notification because you are a member of OpenShot
Developers, which is subscribed to OpenShot Video Editor.
https://bugs.launchpad.net/bugs/440802
Title:
Video preview button - pause button visualisation missing
Status in OpenShot Video Editor:
Confirmed
Bug description:
1) OS Name & Version:
Ubuntu 9.04
2) Version of the OpenShot Build Wizard
? updated from official PPA on 2.10.2009
3) Version of OpenShot (displayed in the terminal when you run OpenShot)
0.9.42
Problem description:
- problem is in "Video Preview" panel - play button is affected - all the time tooltip (displayed on mouse over) is "Play" never "Pause", even if video is being played in Video Preview panel, the same is true for icon used for play button - never is pause button displayed, only play
References