X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/a98fd5717e59e245fbf543872cfe417b863fd6e1..d62c03cd64926d4d120f36e3ca3d2b7518c6e075:/disobedience/choose.h diff --git a/disobedience/choose.h b/disobedience/choose.h index 16414a8..51c8b81 100644 --- a/disobedience/choose.h +++ b/disobedience/choose.h @@ -30,10 +30,24 @@ enum { ISFILE_COLUMN, /* TRUE for a track, FALSE for a directory */ TRACK_COLUMN, /* Full track name, "" for placeholder */ SORT_COLUMN, /* Sort key */ + BG_COLUMN, /* Background color */ + FG_COLUMN, /* Foreground color */ CHOOSE_COLUMNS /* column count */ }; +#ifndef SEARCH_RESULT_BG +/** @brief Background color for search results */ +# define SEARCH_RESULT_BG "#ffffc0" +/** @brief Foreground color for search results */ +# define SEARCH_RESULT_FG "black" +#endif + +#ifndef SEARCH_DELAY_MS +/** @brief Delay between last keypress in search entry and start of search */ +# define SEARCH_DELAY_MS 500 /* milliseconds */ +#endif + extern GtkTreeStore *choose_store; extern GtkWidget *choose_view; extern GtkTreeSelection *choose_selection; @@ -48,9 +62,12 @@ void choose_play_completed(void attribute((unused)) *v, const char *error); char *choose_get_track(GtkTreeIter *iter); char *choose_get_sort(GtkTreeIter *iter); +char *choose_get_display(GtkTreeIter *iter); int choose_is_file(GtkTreeIter *iter); int choose_is_dir(GtkTreeIter *iter); int choose_is_placeholder(GtkTreeIter *iter); +GtkWidget *choose_search_widget(void); +int choose_is_search_result(const char *track); #endif /* CHOOSE_H */