Changeset 1609

Show
Ignore:
Timestamp:
2005-11-07 00:14:42 (3 years ago)
Author:
jkivlighn
Message:

Highlight the current chapter after expanding the playlist

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • annoamp/trunk/annoamp.py

    r1608 r1609  
    108108    #print "updated chapter: "+str(chapter) 
    109109     
     110def playlist_expanded(treeview,iter,path): 
     111    #TODO: only update if expanding the playlist of what is currently playing 
     112    update_chapter(player.current,player.chapter_at(xml.get_widget("slider").get_value())[0]) 
     113     
     114def playlist_collapsed(treeview,iter,path): 
     115    #TODO: when collapsed, highlight the currently playing file 
     116    pass 
     117     
    110118def update_gui_time(time, duration): 
    111119    xml.get_widget("time").set_text(format_time(time) + "/" + format_time(duration)) 
     
    173181        'open_playlist' : open_playlist, 
    174182        'add_file' : add_file, 
    175         'save_playlist' : save_playlist 
     183        'save_playlist' : save_playlist, 
     184    'playlist_expanded' : playlist_expanded 
    176185        }) 
    177186playlist_view = xml.get_widget("playlist") 
  • annoamp/trunk/annocast.glade

    r1604 r1609  
    267267              <property name="hover_expand">False</property> 
    268268              <signal name="row_activated" handler="seek_clip" last_modification_time="Sun, 30 Oct 2005 00:32:34 GMT"/> 
     269              <signal name="row_expanded" handler="playlist_expanded" last_modification_time="Mon, 07 Nov 2005 07:45:36 GMT"/> 
    269270            </widget> 
    270271          </child>