#include <Xm/XmAll.h>
#include <stdbool.h>
#include <unistd.h>
-#include <ucx/list.h>
+#include <cx/list.h>
+#include <cx/linked_list.h>
#ifdef __cplusplus
extern "C" {
} Player;
typedef struct {
- UcxList *tracks;
+ CxList *tracks;
int current_track;
Boolean repeatTrack;
Boolean repeatList;
Boolean autoplayFolder;
+ Boolean random;
} PlayList;
typedef struct MainWindow {
Widget window;
Widget menubar;
Widget player_widget;
+ Widget sidebar_scrolledwindow;
Widget sidebar;
char *file;
Player *player;
Widget playRepeatTrackButton;
Widget playRepeatListButton;
Widget playAutoPlayButton;
+ Widget playRandom;
Widget viewSidebarButton;
+ Widget viewAdjustWindowSize;
PlayList playlist;
+ bool adjustWindowSize;
+
Time player_event_time;
Time button_press_time;
double motion_playback_time;
void WindowHandlePlayerEvent(MainWindow *win, XEvent *event);
-void WindowHideSidebar(MainWindow *win);
-void WindowShowSidebar(MainWindow *win);
+void WindowShowSidebar(MainWindow *win, bool visible);
void WindowUpdate(MainWindow *win);