Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/playlist.py
Commit message (Collapse)AuthorAgeFilesLines
* Set the right playing item when click over one item in the playlistGonzalo Odiard2013-04-091-0/+14
| | | | | | | | | | | As the treeview trigger 'row-activated' on double-click (a property to activate on single click was added in Gtk 3.8, but we don't have it yet), and all in Sugar is selected on single click, added the code to set the playing item on 'cursor-changed' signal too. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> https://developer.gnome.org/gtk3/3.8/GtkTreeView.html#GtkTreeView--activate-on-single-click
* Update order in the playlist when delete one item - SL #4435Gonzalo Odiard2013-04-091-0/+6
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Show the first item in the treeview selected at startGonzalo Odiard2013-03-271-0/+3
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Syncronize element been playerd with selection in the treeviewGonzalo Odiard2013-03-271-4/+9
| | | | | | | | | | | In PlayList class code, two properties were used to track the item been playes, _current_playing and the method set_cursor to set the position in the treeview. As _current_playing was modified outside of the class, they lost sync. Methods set_curren_playing() and get_current_playing are added and the private prop is not used anymore outside of the class. The method set_cursor is now private. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix: 'Add stream from the Journal (datastore)'Manuel Kaufmann2013-03-271-7/+30
| | | | | | | | | | | We need to save the 'object_id' for those streams that are inside the datastore because the path is removed every time that Sugar is restarted. So, we need the 'object_id' value to get the real path every time that we are about to play the stream. This bug was introduced in 8f2924e8857cdce725b8c2b2cd64dfb618a28210 Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Keep the Gio.VolumeMonitor instance in memoryManuel Kaufmann2013-01-291-1/+2
| | | | | | | | | | We need to keep a reference to Gio.VolumeMonitor from JukeboxActivity class (we use 'self' for this) to be able to listen to the signals emitted. This bug was introduced in 874cae39902b8bfb02c115772b95535519aeb253 Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Show an Alert when there are missing tracks at startupManuel Kaufmann2013-01-291-6/+8
| | | | | | | | | | | | If we open an existent playlist from the Journal or we resume an old instance of Jukebox, it is possible to have some tracks missing. So, in this case Jukebox shows an Alert. This feautre was accidentally removed in: 874cae39902b8bfb02c115772b95535519aeb253 Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Check availability of streamManuel Kaufmann2013-01-291-4/+5
| | | | | | | | | | | It's possible to have some streams in the playlist that are not available at the moment the user double-clicks the row or presses the Play button, for example because they are in a Pen Drive. So, this patch checks for the availability of the stream before start playing it and avoiding gstreamer to fail. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Proper sensitive on control buttonsManuel Kaufmann2013-01-251-1/+1
| | | | | | | | | | When there is no streams in the playlist we set the sensitive to False for all the control buttons on the toolbar. If one stream is added Play button is enabled and will play the first stream of the playlist. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Better control over the playlistManuel Kaufmann2013-01-251-28/+109
| | | | | | | | | | | Use signals ('play-index' for example) to communicate between the main window and the playlist. Save and Load playlists and Add track methods are reduced in complexity. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
* Modularization of classesManuel Kaufmann2013-01-251-0/+137
- Put each class in a different .py file - Rename jukeboxactivity.py to activity.py to make this more standard Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>