8fd4e4c637
gui/audio: Add a test for the volume button
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
96e5749e7f
gui/audio: Add a test for seeking
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
2a845feb38
gui/audio: Move audio_ops struct towards the top
...
This keeps all the audio operations together, and matches how we define
operations structs throughout the rest of Ocarina.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
f8c0668e5e
gui/audio: Add an accessor function for the pause_after combo box
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
07d735eeee
gui/audio: Add accessor functions for control buttons
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
943ab02aa5
gui/audio: Add position and duration label accessor functions
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
869e83b7bd
gui/audio: Add accessor functions for audio tags
...
And begin working on new, cleaner unit test code.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
88bf71ac22
Remove gui/view.c
...
This code is obsolete now that gui/playlist.c handles keypress and
right-click events on the main treeview.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
3bf99b12eb
gui/playlist: Respond to right-clicking the main treeview
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
e660e3f0b2
gui/treeview: Add a "select path at pos" function
...
This function isn't easy to test without knowledge of screen
coordinates, so I didn't include a unit test this time.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
3ae5e0f535
gui/playlist: Handle key press events on the main treeview
...
Setting up a unit test for this is almost impossible, so we don't do
that here.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
39bc7492d4
gui/playlist: Clean up file and rewrite unit test
...
The unit test now checks how we respond to the row-activated signal.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
e7d2fa5c4d
gui/treeview: Add a function for listing selected tracks
...
This will be used by higher layers to add tracks to playlists.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
155b9c3ee6
gui/treeview: Add a test for the row-activated signal
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
7fbef057bf
core: Add a field to initdata for enabling async idle tasks
...
I'll use this when testing gui album art to enable fetching the artwork.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
d373c55320
core/queue: Add a queue_erase_track() function
...
Used to trigger the erase callback on tracks, rather than indexes.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:58:05 -04:00
f147c30c30
Ocarina 6.5.2
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-14 13:56:39 -04:00
1e6ab2e23c
gui/playlist: Unbold the previous playlist
...
Looks like this wasn't happening automatically, so let's be sure to
update the previous playlist's row after selecting a new playlist.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-04 11:27:47 -04:00
83a21863b9
gui/sidebar: Select the current playlist on startup
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-04 11:27:45 -04:00
e876f8125f
gui/sidebar: Restore expanded rows on startup
...
Fixes #94 : Playlist heading not open by default
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-04 11:27:24 -04:00
dc53ae271b
gui/sidebar: Store the row expanded setting for later use
...
I want to use this to track if the user has expanded or collapsed any of
the sidebar rows.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-04 10:04:33 -04:00
c9e9e3a340
Ocarina 6.5.2-rc
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00
d818688bfd
gui/playlist: Update playlist sizes with a function pointer array
...
This lets us select the appropriate update function directly.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00
cebf2069cb
gui/playlists/system: Respond to favorite and hide buttons
...
I also take this opportunity to rename these widgets and add accessor
functions.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00
36f399ecb7
gui/playlists/system: Split into a new file and add a unit test
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00
83db8e4ae7
gui/playlists/user: Add a function for getting a list of playlists
...
This is used to build a right-click menu with the names of each
playlist.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00
ad3e56250e
gui/playlists/user: Split into a new file and add a unit test
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00
bb673ddb62
gui/playlists/artist: Split into a new file and add a unit test
...
Putting this code in a new file helps make gui/playlist.c less complex,
and better matches the organization of files in core/
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00
4fee5f85f0
gui/playlists/library: Add a function for updating library paths
...
Finding the header first makes a lot of sense, and avoids iterating
through every playlist while trying to find the library playlist to
update.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00
ab47a7ac88
gui/playlists/library: Add new library paths to the sidebar
...
... without passing through gui/playlist.c first.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00
e550638823
gui/playlists/library: Write unit test for adding file paths
...
This functionality needs to be tested better. I can't really test the
dialog, since it runs in the main thread, but I can test adding library
paths with the selected directory.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00
3e17b7bc1f
Rename gui/collection.c -> gui/playlists/library.c
...
This is to match how files are named and organized in core/
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00
b4e2770223
Remove gui/queue.c
...
This code is obsolete now that the sidebar handles setting the random
button when playlists are changed.
Implements #76 : Remove struct gui_queue
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:05 -04:00
df2236db9f
gui/sidebar: Add a function for selecting the default playlist
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
1291a0d139
gui/sidebar: Add a function for updating playlist text
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
b3efd9d84d
gui/sidebar: Respond to the Delete key
...
Gtk doesn't have a simple way to manually trigger this, so I didn't
write a unit test for this feature.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
828f861d9a
gui/sidebar: Handle random button clicks
...
This makes the most sense here, and lets us remove gui/queue.c at some
point in the future.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
3562e164b0
gui/sidebar: Implement selection-changed handlers
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
a152ed689f
gui/sidebar: Move the visible function into sidebar.c
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
a2113dc378
gui/sidebar: Add a function for inserting a playlist in sorted order
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
9885c60bff
gui/sidebar: Add functions for appending child playlists
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
831a5379e5
gui/sidebar: Add a function for finding playlists
...
This function scans through the treestore at the current level, without
descending into children. This is because we frequently know what
category playlists are under when searching for a child, so it makes
sense to find that first.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
f3f8ad91c6
gui/sidebar: Add a function for adding playlists
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
4fc8c72ea8
gui/sidebar: Initialize the sidebar with default headers
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
18e76a7dca
gui/sidebar: Add useful iterator functions
...
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
bbac5e23be
gui/sidebar: Add a function for getting the sidebar treeview
...
And rename the treeview from "o_playlist_view" to "sidebar_treeview"
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
c1c197acb5
gui/sidebar: Add a function for getting the sidebar filter model
...
And rename the model from "o_playlist_filter" to "sidebar_filter"
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
4c3405e874
gui/sidebar: Add a function for getting the sidebar treestore
...
And rename the treestore from "o_playlist_store" to "sidebar_store"
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
b3074979f7
gui/sidebar: Add a gui_sidebar() function
...
Called to access the GtkPaned widget. I also rename the widget
"sidebar" to match the new convention.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00
fd84222c2b
core/playlist: Add a function for getting the current playlist
...
This is useful to keep playlist settings variables hidden to the GUI.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-03-31 13:45:55 -04:00