ocarina/include/gui/sidebar.h
Anna Schumaker 16b055f06b gui/sidebar: Add support for removing temporary queues
Either through the delete key or when the queue runs out of tracks.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2016-04-29 13:04:45 -04:00

35 lines
853 B
C

/*
* Copyright 2015 (c) Anna Schumaker.
*/
#ifndef OCARINA_GUI_SIDEBAR_H
#define OCARINA_GUI_SIDEBAR_H
#include <gtk/gtk.h>
enum sidebar_selection_t {
SB_COLLECTION,
SB_PLAYLIST,
SB_SIDEBAR,
};
/* Called to initialize the sidebar. */
void gui_sidebar_init();
/* Called when a row in the sidebar is selected. */
gboolean gui_sidebar_on_select(GtkTreeSelection *, GtkTreeModel *,
GtkTreePath *path, gboolean, gpointer);
/* Called to tell the sidebar that the selection has changed. */
void gui_sidebar_selected(enum sidebar_selection_t);
/* Called to add a queue to the sidebar. */
void gui_sidebar_add(struct queue *);
/* Called to remove a queue from the sidebar. */
void gui_sidebar_remove(struct queue *);
/* Called to set the size of sidebar entries. */
void gui_sidebar_set_size(struct queue *);
#endif /* OCARINA_GUI_SIDEBAR_H */