play menu item updates+bugfix
git-svn-id: svn://svn.berlios.de/gpodder/trunk@277 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
parent
8c7db91f8c
commit
dbbf854ec7
3 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Sun, 18 Mar 2007 16:42:32 +0100 <thp@perli.net>
|
||||
* src/gpodder/gpodder.py: Bugfix - only play a podcast episode when it
|
||||
has been downloaded and the download filename exists
|
||||
* data/gpodder.glade: Add Shift+Return accelerator to the "Play selected
|
||||
episode" menu item and add a separator to the menu
|
||||
|
||||
Sun, 18 Mar 2007 15:04:03 +0100 <thp@perli.net>
|
||||
* bin/gpodder: Use "/usr/bin/env python" instead of "/usr/bin/python"
|
||||
to fix problems with FreeBSD's default Python location of
|
||||
|
|
|
@ -505,12 +505,19 @@
|
|||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkSeparatorMenuItem" id="separator8">
|
||||
<property name="visible">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImageMenuItem" id="itemPlaySelected">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Play selected episode</property>
|
||||
<property name="use_underline">True</property>
|
||||
<signal name="activate" handler="on_btnDownloadedExecute_clicked" last_modification_time="Fri, 08 Dec 2006 23:50:54 GMT"/>
|
||||
<signal name="activate" handler="on_btnDownloadedExecute_clicked" last_modification_time="Fri, 08 Dec 2006 23:50:54 GMT"/>
|
||||
<accelerator key="Return" modifiers="GDK_SHIFT_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2325">
|
||||
|
|
|
@ -483,7 +483,7 @@ class Gpodder(SimpleGladeApp):
|
|||
filename = current_channel.getPodcastFilename( current_podcast.url)
|
||||
|
||||
if widget:
|
||||
if widget.get_name() == 'itemPlaySelected' or widget.get_name() == 'btnPlay':
|
||||
if (widget.get_name() == 'itemPlaySelected' or widget.get_name() == 'btnPlay') and os.path.exists( filename):
|
||||
# addDownloadedItem just to make sure the episode is marked correctly in localdb
|
||||
if current_channel.addDownloadedItem( current_podcast):
|
||||
self.ldb.clear_cache()
|
||||
|
|
Loading…
Reference in a new issue