mcs: list as value; dbh: mini-intro, automake
Danny Milosavljevic
danny.milo at gmx.net
Tue Jan 6 13:38:49 CET 2004
Am Die, den 06.01.2004 schrieb Jasper Huijsmans um 13:27:
> Op di 06-01-2004, om 13:07 schreef Danny Milosavljevic:
> > Hi !
> >
> > In my ongoing quest of breaking the mixer, I need some helppp :)
> >
> > Firstly, I want to store a list of "useful controls" per mixer device in
> > mcs. The gui part is already in HEAD, have a look and you will
> > understand.
> > I know how to store single values, but how to store a list ?
>
> Use a string, e.g. "1:2:23:23456".
hehe, thats hacky, what if a vc driver uses ":" in a vcname in the
future ^^
but ok
Any conventions/limitations about the name string?
or is using "Sound/Mixer/Useful/<device-string>" = "1:2:23:23456"
ok ? Note that device-string may contain slashes...
>
> >
> > Then I'd need a very short intro to dbh... any places I can look?
> > The reason is that I want to check for each control I create if it is in
> > the "useful controls" set. i.e. often.
>
> Look at xfcalendar or xffm.
Will do ^^
> >
> > I'd need the automake stuffy to add dbh dependency to xfce4-mixer and
> > use it in the src/ dir too.
>
> If it supports pkg-config it is easy:
>
> BM_DEPEND([DBH],[libdbh-1.0],[1.0.15])
>
> or something similar.
ah? Ok ^^
> >
> > And can I get the mcs manager connection from the panel in a plugin?
> > Like Control *control; control->manager ? ;)
> >
>
> Well, for starters, it's a client connection of course, so
> panel.mcs_client would be more appropriate ;-) And secondly, no, that is
> not currently possible. Why do you want it?
Blah, its early... wait, its the mid of the day... for *me*, its early
:P
I'd want it for one nitpicky thing: if the user unchecks the control
used in the panel plugin as "unneeded" in mcs, then the panel plugin
should switch to another / none.
The other way around, let the user not uncheck the control needed by the
panel plugin in mcs, would be evil, and harder ^^
For the standalone mixer, how do I create a new connection to mcs ?
And wait for notification of change ?
More information about the Xfce4-dev
mailing list