From kde-panel-devel Sat Aug 20 08:26:18 2011 From: Weng Xuetian Date: Sat, 20 Aug 2011 08:26:18 +0000 To: kde-panel-devel Subject: Re: ServiceJob binding in javascript not working in KDE 4.7? Message-Id: <1352326.9kJdn9mIVi () saber-chakra> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=131382886404688 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============4397744442650680301==" --===============4397744442650680301== Content-Type: multipart/signed; boundary="nextPart1976920.SkNU4mADJG"; micalg="pgp-sha1"; protocol="application/pgp-signature" Content-Transfer-Encoding: quoted-printable --nextPart1976920.SkNU4mADJG Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" =E5=9C=A8 2011=E5=B9=B48=E6=9C=8820=E6=97=A5 Saturday 10:14:41=EF=BC=8C= Aaron J. Seigo =E5=86=99=E9=81=93=EF=BC=9A > On Saturday, August 20, 2011 13:47:21 Weng Xuetian wrote: > > Hi Plasma World, > > I'm trying to run this >=20 > example:https://projects.kde.org/projects/kde/kdeexamples/repository/= revisio > ns/maste > > r/entry/plasma/javascript/plasmoids/usingServices/ > > In spite of connectSource missing a time interval, >=20 > the time interval is optional, and in this case it would even be inco= rrect > to include a time interval. it is updated when the data in the DataEn= gine > updates, which happens when the state of the media player changes. so= there > is no reason to have a time interval there. >=20 Yes, I know it dataengine can push the value, but as far as I test this= =20 example, without a time interval it will not get date update. When I write my own dataengine and javascript plasmoid, I find the java= script=20 plasmoid get update only if I call checkForUpdates(), should I call thi= s=20 function in data engine after setData()? I'm little confused here, beca= use for=20 the previous QML test one, without checkForUpdates() the data will also= get=20 updated immediately after dataengine updates it, I think setData() alre= ady can=20 trigger the update. Am I wrong or there is another bug in javascript bi= nding? >=20 > yes, this got broken (i think in 4.7). i'm not sure if this breakage = was in > our code or some change in Qt, but it no longer works, indeed. i've j= ust > fixed it for 4.7.1 and 4.8. sorry for the inconvenience :/ >=20 > we really need a comprehensive unit test set for the JS (and QML) bin= dings. Thank you! --nextPart1976920.SkNU4mADJG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAABAgAGBQJOT2+qAAoJEI6LiYy/JBL5B+QH/2aoj7PVebc9ewVEy9uerfZ6 BPemCF6ymYdPwsVgB/gcpRAIqYT1kEeCu1zx0DvdCN1OLUJDSfBDdjZ9GqcmgVGX ZIbwo+D97G0nokTLhfFSWwi1PwvSi166tT71qlIWnRIQLiKfYySSsNFCp5Gapln6 MAi7JLdWeu10gL9XxS3zlmH5yE1edhymO83p+CEY2NZO8OwMJfaG4SbJR6WnEY1y qVfwJHTOHG5FfAeUokLqcOGFg7MsHoS7p9K26v/PBnK7YO9oLs0brkjRjiJFkmhD XfxCUtBEXqVT9w8LwSC3sxrYUFktb/A33LL6hHcT2OUW4ulk33Dw9agfMy1wc7M= =XG17 -----END PGP SIGNATURE----- --nextPart1976920.SkNU4mADJG-- --===============4397744442650680301== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============4397744442650680301==--