[Gambas-user] Dbus mpris setting volume needs type d, but how?

Fabien Bodard gambas.fr at gmail.com
Sun Jan 29 08:47:12 CET 2023


Le dim. 29 janv. 2023 à 00:23, Bruce Steers <bsteers4 at gmail.com> a écrit :

> the command is ...
>
>   DBus["session://" & cp.Address]["/org/mpris/MediaPlayer2",
> "org.mpris.MediaPlayer2.Player"].Volume = 0.5
>
> I've tried to make the 0.5 be a float , use CFloat, tried all sorts, it
> always says i'm using type v and need to use type d :-\ !?
>

In this case it look like a bug in gb.dbus


Another question ... Why are you using your own themed icon routine ? (I'm
curious) as Stock class do the job...or maybe not as you want ...


BruceS
>
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>


-- 
Fabien Bodard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230129/d2c7fa71/attachment.htm>


More information about the User mailing list