diff --git a/mauplay/main.c b/mauplay/main.c index 3e6fd64..fa57419 100644 --- a/mauplay/main.c +++ b/mauplay/main.c @@ -16,7 +16,7 @@ MwWidget mainsep; MwWidget seekbar; MwWidget tree, list; MwLLPixmap pxalbum, pxskipback, pxplay, pxpause, pxstop, pxskipfwd, pxrepeat, pxrepeatsong, pxshuffle; -MwLLPixmap pxoptical, pxfoldermusic, pxgenre, pxartist; +MwLLPixmap pxoptical, pxfoldermusic, pxgenre, pxartist, pxradio; unsigned char* pxalbumdata; static void resize(MwWidget handle, void* user, void* client) { @@ -240,6 +240,7 @@ int main() { pxfoldermusic = MwLoadImage(window, ICON16DIR "/folder-music.png"); pxartist = MwLoadImage(window, ICON16DIR "/artist.png"); pxgenre = MwLoadImage(window, ICON16DIR "/genre.png"); + pxradio = MwLoadImage(window, ICON128DIR "/radio.png"); MwSetVoid(album, MwNpixmap, pxalbum); diff --git a/mauplay/mauplay.h b/mauplay/mauplay.h index bad3b25..a9cc73a 100644 --- a/mauplay/mauplay.h +++ b/mauplay/mauplay.h @@ -1,6 +1,8 @@ #ifndef __MAUPLAY_H__ #define __MAUPLAY_H__ +#define VERSION "1.0" + #include "config.h" /* Milsko */ @@ -44,7 +46,7 @@ extern MwWidget seekbar; extern MwWidget tree, list; extern unsigned char* pxalbumdata; extern MwLLPixmap pxalbum, pxrepeat, pxrepeatsong; -extern MwLLPixmap pxoptical, pxfoldermusic, pxartist, pxgenre; +extern MwLLPixmap pxoptical, pxfoldermusic, pxartist, pxgenre, pxradio; /* db.c */ extern numkv_t* db_musics; diff --git a/mauplay/ui.c b/mauplay/ui.c index e83aeb0..29e9624 100644 --- a/mauplay/ui.c +++ b/mauplay/ui.c @@ -15,6 +15,8 @@ static void* file_add_file; static void* file_add_directory; static void* file_add_playlist; +static void* help_about; + void ui_list_reset(const char* merge) { void* p; @@ -457,6 +459,8 @@ static void menu_menu(MwWidget handle, void* user, void* client) { } else if(client == file_add_playlist) { MwWidget fc = MwFileChooser(window, "Choose a playlist to add"); MwAddUserHandler(fc, MwNfileChosenHandler, playlist_fc_chosen, NULL); + }else if(client == help_about){ + MDEAboutDialog(window, "mauplay", VERSION, pxradio); } } @@ -495,7 +499,7 @@ void ui_init(void) { file_add_playlist = MwMenuAdd(menu, m, "Add Playlist"); m = MwMenuAdd(menu, NULL, "?Help"); - MwMenuAdd(menu, m, "About"); + help_about = MwMenuAdd(menu, m, "About"); ui_list_reset(NULL); ui_tree_reset();