Implement explicit functions for setting track repeat and shuffling in KotoPlaybackEngine.
Use these new functions as well as new signals to simplify toggle state in playerbar, as well as ensure changes over MPRIS allow for the updating of our UX. Implement method handlers and relevant setters for MPRIS support, as well as a koto_update_mpris_playback_state used to notify on state changes. Clean up some debugging.
This commit is contained in:
parent
07c3c00f1e
commit
43ebe6d041
7 changed files with 201 additions and 60 deletions
|
@ -70,19 +70,10 @@ int main (int argc, char *argv[]) {
|
|||
supported_mimes = NULL; // Ensure our mimes GList is initialized
|
||||
koto_playback_engine_get_supported_mimetypes(supported_mimes);
|
||||
|
||||
g_message("Length: %d", g_list_length(supported_mimes));
|
||||
|
||||
koto_maps = koto_cartographer_new(); // Create our new cartographer and their collection of maps
|
||||
open_db(); // Open our database
|
||||
setup_mpris_interfaces(); // Set up our MPRIS interfaces
|
||||
|
||||
GList *md;
|
||||
md = NULL;
|
||||
for (md = supported_mimes; md != NULL; md = md->next) {
|
||||
g_message("Mimetype: %s", (gchar*) md->data);
|
||||
}
|
||||
g_list_free(md);
|
||||
|
||||
app = gtk_application_new ("com.github.joshstrobl.koto", G_APPLICATION_FLAGS_NONE);
|
||||
g_signal_connect (app, "activate", G_CALLBACK (on_activate), NULL);
|
||||
g_signal_connect(app, "shutdown", G_CALLBACK(on_shutdown), NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue