cboxdoerfer / ddb_musical_spectrum

Musical spectrum for the DeaDBeeF audio player
GNU General Public License v2.0
58 stars 7 forks source link

[Feature request] Multiple widgets of same type #15

Open LisandraBrave opened 4 years ago

LisandraBrave commented 4 years ago

It'd be very useful to be able to put multiple copies in so that you could have one for each audio channel.

cboxdoerfer commented 4 years ago

I agree this would be great, but for this to work the configuration of the spectrum needs to be stored for each spectrum widget individually, which is quite cumbersome to do with the current GTKUI plugin API. That's why I'm probably not going to implement that anytime soon.

LisandraBrave commented 4 years ago

Taking a peek at the plugin API, wouldn't it be possible to read in if there's another instance of the same plugin, and if so, load in configuration from the same file, but in a different subsection?

cboxdoerfer commented 4 years ago

Maybe, but there are a few things to consider:

I'm not sure if this can be done nicely.