add icon
This commit is contained in:
parent
d0b3d68fd8
commit
88275321bf
3 changed files with 10 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ MwWidget mainsep;
|
||||||
MwWidget seekbar;
|
MwWidget seekbar;
|
||||||
MwWidget tree, list;
|
MwWidget tree, list;
|
||||||
MwLLPixmap pxalbum, pxskipback, pxplay, pxpause, pxstop, pxskipfwd, pxrepeat, pxrepeatsong, pxshuffle;
|
MwLLPixmap pxalbum, pxskipback, pxplay, pxpause, pxstop, pxskipfwd, pxrepeat, pxrepeatsong, pxshuffle;
|
||||||
MwLLPixmap pxoptical, pxfoldermusic, pxgenre, pxartist;
|
MwLLPixmap pxoptical, pxfoldermusic, pxgenre, pxartist, pxradio;
|
||||||
unsigned char* pxalbumdata;
|
unsigned char* pxalbumdata;
|
||||||
|
|
||||||
static void resize(MwWidget handle, void* user, void* client) {
|
static void resize(MwWidget handle, void* user, void* client) {
|
||||||
|
|
@ -240,6 +240,7 @@ int main() {
|
||||||
pxfoldermusic = MwLoadImage(window, ICON16DIR "/folder-music.png");
|
pxfoldermusic = MwLoadImage(window, ICON16DIR "/folder-music.png");
|
||||||
pxartist = MwLoadImage(window, ICON16DIR "/artist.png");
|
pxartist = MwLoadImage(window, ICON16DIR "/artist.png");
|
||||||
pxgenre = MwLoadImage(window, ICON16DIR "/genre.png");
|
pxgenre = MwLoadImage(window, ICON16DIR "/genre.png");
|
||||||
|
pxradio = MwLoadImage(window, ICON128DIR "/radio.png");
|
||||||
|
|
||||||
MwSetVoid(album, MwNpixmap, pxalbum);
|
MwSetVoid(album, MwNpixmap, pxalbum);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef __MAUPLAY_H__
|
#ifndef __MAUPLAY_H__
|
||||||
#define __MAUPLAY_H__
|
#define __MAUPLAY_H__
|
||||||
|
|
||||||
|
#define VERSION "1.0"
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
/* Milsko */
|
/* Milsko */
|
||||||
|
|
@ -44,7 +46,7 @@ extern MwWidget seekbar;
|
||||||
extern MwWidget tree, list;
|
extern MwWidget tree, list;
|
||||||
extern unsigned char* pxalbumdata;
|
extern unsigned char* pxalbumdata;
|
||||||
extern MwLLPixmap pxalbum, pxrepeat, pxrepeatsong;
|
extern MwLLPixmap pxalbum, pxrepeat, pxrepeatsong;
|
||||||
extern MwLLPixmap pxoptical, pxfoldermusic, pxartist, pxgenre;
|
extern MwLLPixmap pxoptical, pxfoldermusic, pxartist, pxgenre, pxradio;
|
||||||
|
|
||||||
/* db.c */
|
/* db.c */
|
||||||
extern numkv_t* db_musics;
|
extern numkv_t* db_musics;
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@ static void* file_add_file;
|
||||||
static void* file_add_directory;
|
static void* file_add_directory;
|
||||||
static void* file_add_playlist;
|
static void* file_add_playlist;
|
||||||
|
|
||||||
|
static void* help_about;
|
||||||
|
|
||||||
void ui_list_reset(const char* merge) {
|
void ui_list_reset(const char* merge) {
|
||||||
void* p;
|
void* p;
|
||||||
|
|
||||||
|
|
@ -457,6 +459,8 @@ static void menu_menu(MwWidget handle, void* user, void* client) {
|
||||||
} else if(client == file_add_playlist) {
|
} else if(client == file_add_playlist) {
|
||||||
MwWidget fc = MwFileChooser(window, "Choose a playlist to add");
|
MwWidget fc = MwFileChooser(window, "Choose a playlist to add");
|
||||||
MwAddUserHandler(fc, MwNfileChosenHandler, playlist_fc_chosen, NULL);
|
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");
|
file_add_playlist = MwMenuAdd(menu, m, "Add Playlist");
|
||||||
|
|
||||||
m = MwMenuAdd(menu, NULL, "?Help");
|
m = MwMenuAdd(menu, NULL, "?Help");
|
||||||
MwMenuAdd(menu, m, "About");
|
help_about = MwMenuAdd(menu, m, "About");
|
||||||
|
|
||||||
ui_list_reset(NULL);
|
ui_list_reset(NULL);
|
||||||
ui_tree_reset();
|
ui_tree_reset();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue