2016-01-01 19:58:30 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2016 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#ifndef OCARINA_GUI_PLAYLIST_H
|
|
|
|
#define OCARINA_GUI_PLAYLIST_H
|
2016-01-04 08:15:55 -05:00
|
|
|
#include <core/playlist.h>
|
2016-09-03 12:49:15 -04:00
|
|
|
#include <gui/builder.h>
|
2016-09-01 08:19:31 -04:00
|
|
|
#include <gui/playlists/artist.h>
|
2016-08-31 08:08:26 -04:00
|
|
|
#include <gui/playlists/library.h>
|
2016-09-02 09:22:14 -04:00
|
|
|
#include <gui/playlists/system.h>
|
2016-09-01 09:22:59 -04:00
|
|
|
#include <gui/playlists/user.h>
|
2016-01-04 08:15:55 -05:00
|
|
|
|
2016-01-01 19:58:30 -05:00
|
|
|
/* Called to initialize the GUI playlist code. */
|
|
|
|
void gui_playlist_init();
|
|
|
|
|
2016-09-03 12:49:15 -04:00
|
|
|
/* Called to access the right-click menu. */
|
|
|
|
static inline GtkMenu *gui_rc_menu()
|
|
|
|
{
|
|
|
|
return GTK_MENU(gui_builder_widget("rc_menu"));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Called to acces the "Add to Other Playlist" menu item. */
|
|
|
|
static inline GtkMenuItem *gui_rc_add_to_other()
|
|
|
|
{
|
|
|
|
return GTK_MENU_ITEM(gui_builder_widget("rc_add_to_other"));
|
|
|
|
}
|
|
|
|
|
2016-09-17 09:30:11 -04:00
|
|
|
/* Playlist callbacks passed to core_init() */
|
|
|
|
extern struct playlist_callbacks playlist_cb;
|
2016-09-03 12:49:15 -04:00
|
|
|
|
2016-01-01 19:58:30 -05:00
|
|
|
#endif /* OCARINA_GUI_PLAYLIST_H */
|