| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
- 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>
|