Logo Search packages:      
Sourcecode: viridian version File versions  Download package

def AmpacheTools::AmpacheGUI::AmpacheGUI::on_playlist_drag (   self,
  widget,
  context,
  data = None 
)

Drag and Drop.

When the user changes the order of the playlist.

Definition at line 2251 of file AmpacheGUI.py.

                                                            :
            """When the user changes the order of the playlist."""
            list = []
            i = 0
            cur_song_num = None
            for song in self.playlist_list_store: # iterate the rows
                  song_id = song[2]
                  list.append(song_id)
                  if song[0] is self.images_pixbuf_playing: # this row has a now playing icon
                        cur_song_num = i
                  i += 1
            self.audio_engine.set_playlist(list)
            if cur_song_num != None: # song is playing
                  self.audio_engine.set_current_song(cur_song_num)
                                    

Generated by  Doxygen 1.6.0   Back to index