// play menu
win->playRepeatTrackButton = createToggleMenuItem(playMenu, "playRepeatTrack", "Repeat", 'R', False, NULL, NULL, PlayRepeatCB, win);
win->playRepeatListButton = createToggleMenuItem(playMenu, "playRepeatList", "Repeat List", 'L', False, NULL, NULL, PlayRepeatListCB, win);
+ win->playRandom = createToggleMenuItem(playMenu, "playRandom", "Random Playback", 'P', False, NULL, NULL, PlayRandomCB, win);
win->playAutoPlayButton = createToggleMenuItem(playMenu, "playAutoNext", "Autoplay Folder", 'A', False, NULL, NULL, PlayAutoPlayCB, win);
XtVaSetValues(win->playRepeatTrackButton, XmNindicatorType, XmONE_OF_MANY, NULL);
XtVaSetValues(win->playRepeatListButton, XmNindicatorType, XmONE_OF_MANY, NULL);
XtVaSetValues(win->playAutoPlayButton, XmNindicatorType, XmONE_OF_MANY, NULL);
-
- createMenuSeparator(playMenu);
-
- win->playRandom = createToggleMenuItem(playMenu, "playRandom", "Random Playback", 'P', False, NULL, NULL, PlayRandomCB, win);
+ XtVaSetValues(win->playRandom, XmNindicatorType, XmONE_OF_MANY, NULL);
// view menu
win->playlist.repeatTrack = XmToggleButtonGadgetGetState(w);
win->playlist.repeatList = 0;
win->playlist.autoplayFolder = 0;
+ win->playlist.random = 0;
XtVaSetValues(win->playRepeatListButton, XmNset, 0, NULL);
XtVaSetValues(win->playAutoPlayButton, XmNset, 0, NULL);
+ XtVaSetValues(win->playRandom, XmNset, 0, NULL);
}
static void PlayRepeatListCB(Widget w, void *udata, void *cdata) {
win->playlist.repeatList = XmToggleButtonGadgetGetState(w);
win->playlist.repeatTrack = 0;
win->playlist.autoplayFolder = 0;
+ win->playlist.random = 0;
XtVaSetValues(win->playRepeatTrackButton, XmNset, 0, NULL);
XtVaSetValues(win->playAutoPlayButton, XmNset, 0, NULL);
+ XtVaSetValues(win->playRandom, XmNset, 0, NULL);
}
static void PlayAutoPlayCB(Widget w, void *udata, void *cdata) {
win->playlist.autoplayFolder = XmToggleButtonGadgetGetState(w);
win->playlist.repeatTrack = 0;
win->playlist.repeatList = 0;
+ win->playlist.random = 0;
XtVaSetValues(win->playRepeatTrackButton, XmNset, 0, NULL);
XtVaSetValues(win->playRepeatListButton, XmNset, 0, NULL);
+ XtVaSetValues(win->playRandom, XmNset, 0, NULL);
}
static void PlayRandomCB(Widget w, void *udata, void *cdata) {
MainWindow *win = udata;
win->playlist.random = XmToggleButtonGadgetGetState(w);
+ win->playlist.repeatTrack = 0;
+ win->playlist.repeatList = 0;
+ win->playlist.autoplayFolder = 0;
+ XtVaSetValues(win->playRepeatTrackButton, XmNset, 0, NULL);
+ XtVaSetValues(win->playRepeatListButton, XmNset, 0, NULL);
+ XtVaSetValues(win->playAutoPlayButton, XmNset, 0, NULL);
}
static void ViewFullscreenCB(Widget w, void *udata, void *cdata) {