Created attachment 3289 play/pause symbol example This symbol should be at least (and easy to do) changed to 'play/pause' symbol (see the example image attached). Or (better): blinking image (lite it's done in gmpc): If mpd is playing --- display 'pause' symbol. If mpd is paused or stopped --- display standard 'play' symbol.
I've wanted to do that for quite a long time, it's somewhere on my todolist. patches welcomed of course :)
and now i remember why i didn't do it yet: atm there's no g_timer doing somthing every X seconds, every call to mpd status is done upon an action from the user (mouseover on the plugin). If i want to manually refresh the icon every X seconds, i have to add a g_timer just for that..
What about do the simple and quick thing (rewrite the pictogram)? And I see no need in refresh icon each N seconds. It should be refreshed if: 1. Mouse click on play/pause button; 2. mpd is playing and mouse click on stop button; 3. After mpd stops to play the last track in list (and the loop mode is not set). I'm not familiar with developing for mpd, so I don't know the event, which should be regidtered in this case).
Yeah, and consider the following usecase : i also run gmpc on this computer (or others computers, or other mpd clients), and sometimes i stop/pause/start mpd from there. How does the mpc panel plugin detects that the play status changed and has to update to picture, without resorting to a timer periodically checking the actual status ? of course it's easy to update the icon when the change comes from mpc plugin itself, but that would only be doing half of the work.
It's likely WONTFIX as i dont want to maintain a permanent connection to mpd just to check the status..
(In reply to comment #5) > It's likely WONTFIX as i dont want to maintain a permanent connection to mpd > just to check the status.. Excuse me for reopening. But what about not changing appliction behaviour to change the button pictogram? From current ('pause' only) to standard (in all seen hardware players) '_play_/pause' (like on attached image).
(In reply to comment #6) > (In reply to comment #5) > > It's likely WONTFIX as i dont want to maintain a permanent connection to mpd > > just to check the status.. > > Excuse me for reopening. > But what about not changing appliction behaviour to change the button > pictogram? > From current ('pause' only) to standard (in all seen hardware players) > '_play_/pause' (like on attached image). There's no play/pause icon in the icon naming spec, so i'd have to carry and use my own icon which wouldnt match the user theme....