/srv/irclogs.ubuntu.com/2015/02/27/#ubuntu-app-devel.txt

=== jalcine_ is now known as Guest16861
=== Guest16861 is now known as jalcine
=== jalcine is now known as Guest57006
=== Guest57006 is now known as jalcine
dholbachgood morning07:52
dholbachhey dpm08:03
dpmmorning dholbach08:04
dpmgood morning all08:04
dholbachdpm, did you see my comment on https://bugs.launchpad.net/ubuntu-devices-help/+bug/1425025?08:13
ubot5Launchpad bug 1425025 in Help for Ubuntu for devices "Automatically load translated pages according to the user language" [High,Triaged]08:13
dholbachdpm, it'd basically add a placeholder index.html for now, which could later be filled with more content08:14
dholbach(that's the branch I pushed)08:14
* dpm reads now08:18
dpmdholbach, you're apologizing for fixing someone else's bug?08:19
* dpm hugs dholbach08:19
dpmyou can have all my bugs! :-)08:19
dpmbut yes, now seriously, I think that's what we need to start tackling that bug08:20
dholbachok08:20
dholbachI'll propose the merge08:20
dholbachdpm, https://code.launchpad.net/~dholbach/ubuntu-devices-help/1425025-partial/+merge/251217 - all yours :)08:20
dholbachjust pushed a small change to it08:22
dpmdholbach, reviewed and commented08:23
davidcalleGood morning all08:23
dpmmorning davidcalle o/08:23
dholbachdpm, I don't quite know how this is going to work in the 'web' case08:24
dpmdholbach, we can do the same as we did on help.ubuntu.com, and set up Apache to load the right page according to the browser language08:24
dholbachdpm, pointing your browser to    community.ubuntu.com/devices-help (or some such)    will get you index.de.html in the case of a German user?08:24
dpmyeah, that's the idea08:24
dholbachok08:24
dholbachin that case, I'll revert the last change to it08:25
dpmdholbach, http://www.w3.org/International/questions/qa-apache-lang-neg08:25
dholbachthanks08:25
dholbachdpm, I'll make sure to document that08:25
dpmdavidcalle, is the table on https://developer.ubuntu.com/en/start/ubuntu-for-devices/image-channels/ correct? it seems we're not pointing to any of the rtm channels08:26
dpmnor to any devel-proposed one08:26
davidcalledpm, it's been changed to this version after discussion on a bug report, iirc it has saviq +1.08:28
dpmyeah, I remember some discussion and the change, but I wasn't sure08:28
dpmI'll double-check with pmcgowan too08:29
davidcalledpm, yes please :)08:29
nik90dpm: hi good morning :)08:49
dpmhey morning nik9008:50
nik90dpm: I had a look at https://bugs.launchpad.net/ubuntu-clock-app/+bug/1324636, and I don't the proposed solution would work. I added a comment yesterday night after looking into it.08:50
ubot5Launchpad bug 1324636 in Ubuntu Clock App "Return localized city names" [Medium,Triaged]08:50
nik90dpm: on the other hand, I fixed https://code.launchpad.net/~nik90/ubuntu-clock-app/predefined-world-city-translation-fix/+merge/25118008:50
dpmnik90, cool08:53
dpmnik90, is tr() the same translation method as upstream Qt?08:53
nik90dpm: I believe they use qsTr() if I recall08:54
nik90dpm: but I checked with mzanetti for the c++ translation08:54
dpmnik90, ah, yes. So where does tr() come from?08:54
nik90dpm: it looks like mzanetti is away on irc, I will check with him when he is online in a few hours hopefully08:55
dpmI'll add a comment to the MP08:56
dpmand to the other bug08:56
dholbachdpm, https://code.launchpad.net/~dholbach/ubuntu-devices-help/1426011/+merge/25122208:56
dholbachonce that's landed I'm going to blog about the initiative again08:56
nik90dpm: hmm the official docs suggest using tr() http://qt-project.org/doc/qt-4.8/i18n-source-translation.html08:56
nik90dpm: but yeah I i will check with mzanetti the difference between tr() and qsTr() later08:57
dpmyeah, that won't work08:57
dpmwe're using gettext08:57
nik90ah ok08:58
dpmnik90, ok, commented on both09:04
nik90dpm: thnx09:05
dholbachgracias dpm09:09
dpmyw :)09:13
JamesTaitGood morning all; happy Friday, and happy Strawberry Day! :-D09:53
dholbachdpm, can you maybe check later on if the translations of ubuntu-devices-help are set up correctly?10:18
dholbachjust to make sure that everything's in place if people want to help out10:18
dpmdholbach, I can do it now, give me a min10:19
dholbachyeeeeeehaw!10:19
dholbachI'm sure you can do it 45 seconds!10:19
dpmdholbach, done, all set up :). However, I've noticed one thing: on these type of strings translations will break if they translate "Title:" right? We might need to filter it out somehow -> https://translations.launchpad.net/ubuntu-devices-help/trunk/+pots/help/ca/1/+translate10:22
dholbachdpm, the problem is: we want the title translated too, right?10:23
dpmyeah, but not the word "Title:"10:23
dholbachright10:24
dholbachof course, that'd confuse pelican10:24
dholbachI'll file a bug10:24
dpmanother option would be to add a translator comment to ask not to translate it, but I couldn't find a way to add that to markdown text10:24
dholbachyeah, me neither10:25
dpmso I think the safest option is to filter out the metadata when creating the .pot file and re-adding it to the translated files, which already sounds ugly while I'm saying it10:26
dholbachyes, it's not easy10:27
dholbachanyway, I'll file a bug10:27
=== rmescandon is now known as rmescandon|afk
=== MacSlow is now known as MacSlow|lunch
gventurirpadovani: popey: we have a design update for the calculator ready11:37
nik90pmcgowan: can you add https://bugs.launchpad.net/ubuntu-clock-app/+bug/1354466 to the canonical-devices-system-image project11:37
popeyoh!11:37
ubot5Launchpad bug 1354466 in Ubuntu Clock App "Cities and Countries are not translatable in the timezone selection dialog" [High,In progress]11:37
gventuripopey: rpadovani: we need some time to go through it together11:37
gventuripopey: rpadovani: yeah sorry, it took more time than i thought11:37
gventurias usual11:37
popeygventuri: we had the calculator meeting yesterday. we can certainly find a slot to discus11:37
nik90mzanetti: can you ping me when you got some time, just need a minute or two to clear up a question11:37
gventuripopey: cool11:38
mzanettinik90, hit me11:38
popeygventuri: afternoons are usually better for rpadovani i believe. when's good for you?11:38
gventuripopey: the updates are already online, but I find it useful when we can have some face-to-face time11:38
nik90mzanetti: can you take a look at dpm's comment about tr() not being compatible with gettext() that ubuntu uses at https://code.launchpad.net/~nik90/ubuntu-clock-app/predefined-world-city-translation-fix/+merge/251180/comments/62326511:38
gventuripopey: rpadovani: today is good for me11:39
gventurior next week11:39
popeygventuri: 4pm?11:39
nik90mzanetti: I see that the pot file does indeed grab the strings for translation, so may be it already works.11:39
gventuripopey: we have a meeting 4-5pm today, sorry11:39
nik90mzanetti: but we were not sure if qsTr() or anything else should be used11:39
gventuripopey: mondau?11:39
gventurimonday11:39
mzanettinik90, well, qsTr() is only in qml11:40
popeygventuri: let me mail everyone to see if we can organise it.11:40
mzanettinik90, seeing that the translations are in the po files I guess tr should be working too11:40
mzanettinik90, should be easy to test I guess11:40
popeyI'll do that now. gventuri who (other than you) from design needs inviting?11:40
mzanettinik90, if it doesn't well, change it to 18n.tr()  or gettext()11:40
nik90mzanetti: is i18n.tr() valid in c++?11:41
gventurikerry.malone@canonical.com11:41
mzanettinik90, I don't know...11:41
gventuripopey: kerry.malone@canonical.com11:41
nik90mzanetti: ok11:41
popeygventuri: ok11:41
gventuripopey: she is the visual/interaction designer11:41
nik90dpm: as mzanetti says, the pot file is indeed updated with the citiy and country names and thereby it should appear translated on the device even while using tr()11:42
dpmnik90, the extraction into the .pot file at build time will work, but loading the translations at runtime won't11:42
nik90dpm: ah11:42
mzanettiah, right...11:42
mzanettiyou'd probably need to load the translated file with a QTranslator...11:42
mzanettihowever, I guess using gettext() or whatever the other is, might be easier11:42
dpm+111:43
nik90dpm: I took a look at http://bazaar.launchpad.net/~ubuntuone-control-tower/unity-scope-click/trunk/view/head:/libclickscope/click/highlights.cpp#L127, .. do I so mark strings as __string__ ?11:43
mzanettiand I just figured my latest branch of reminders uses tr() too11:43
nik90adding #define _(value) dgettext(GETTEXT_PACKAGE, value) to the header file shouldn't be an issue11:44
nik90mzanetti: yeah we should gettext to do the translation in other parts of the app, so it would be easier to keep to it11:44
nik90s/should/use11:44
dpmnik90, you can use gettext("I want this to be translated"), but traditionally, the _("I want this to be translated") alias is used, as it's quicker to type11:44
mzanettinik90, ack11:45
mzanettiah nice!11:45
mzanettiimo that helps in this particular case11:45
mzanettithe _()11:45
mzanettimakes it much more readable11:45
nik90dpm: oh...that's simple then...I can just "tr()" with "_()" in qtc11:45
* nik90 tries it out now...will update dpm, mzanetti in a few minutes11:46
dpmessentially, yes, but you have to make sure that _() is indeed an alias to the gettext.gettext() function :)11:46
dpmor dgettext11:46
nik90sure11:46
=== rmescandon|afk is now known as rmescandon
nik90dpm: I imported libintl.h and then used gettext("string"), while it compiles fine, it doesn't seem to update the pot file. I also tried #define _(value) dgettext(GETTEXT_PACKAGE, value) and then used _("string") and set -DGETTEXT_PACKAGE=\"${PROJECT_NAME}\", but that doesn't work either12:00
nik90I set -DGETTEXT_PACKAGE=\"${PROJECT_NAME}\" in the CMakeList file as they did in http://bazaar.launchpad.net/~ubuntuone-control-tower/unity-scope-click/trunk/view/head:/libclickscope/click/CMakeLists.txt12:00
dpmthe .pot file generation is independent from the code12:03
dpmit's just a rule that uses xgettext to scan all files for common i18n patterns. So probably the po/CMakeLists.txt file needs an update12:04
dpmdo you have a link to the branch you're working on?12:04
nik90well do you want me to push it with gettext() calls?12:05
nik901 sec let me upload it12:05
dpmnik90, so essentially, it's this rule that puts the translations into the .pot file: http://bazaar.launchpad.net/~nik90/ubuntu-clock-app/predefined-world-city-translation-fix/view/head:/po/CMakeLists.txt#L1712:06
dpmand the --keywords argument12:06
dpmif you used gettext(), it might not be a recognized argument, whereas I would think _() should be recognized by default12:06
dpmif not, you might need to explicitly add --keyword=_12:07
dpmbut I'm pretty sure that's already taken care of by default12:07
dpmand it's not necessary to add the _ keyword12:07
nik90I pushed it12:07
nik90but yeah I tried _( as well12:08
nik90maybe I should add --keyword=gettext ?12:08
dpmnik90, yeah, you either do that, or uncomment the _() definition and use _() calls instead of gettext()12:09
dpmI'd suggest the second option, and if that still does not work, we can look at it12:10
nik90dpm: hmm gettext() calls + --keyword=gettext option worked...I see the pot file update. When I switched to the other one, it removes the marked strings from the pot file.12:12
nik90dpm: I will switch to _() and push it so that we can debug from the same codebase12:13
dpmnik90, ok, cool. You might want to explicitly add --keyword=_ to try, perhaps I'm wrong and it's not added by default, which could solve the problem12:14
nik90sure, trying now12:15
nik90dpm: yup adding --keyword=_ did the trick12:15
dpmexcellent12:17
dpmoh wow, I'm not sure it's because of the porting guide, but I'm recently seeing more ports than usual12:21
dpmhere's a blast from the past: https://twitter.com/vishne0/status/57116932868869734412:21
nik90:)12:22
nik90popey: hey, does the welcome wizard fall under unity8?12:31
popeyyes12:32
nik90thnx12:32
nik90zsombi: ping12:48
zsombinik90: pong12:49
nik90zsombi: that was a quick fix for the alarms issue, thnx. I need your advice on bug 138721012:49
ubot5bug 1387210 in Ubuntu UX "[Indicators] Deep link to alarm item doesn't work properly" [Medium,Triaged] https://launchpad.net/bugs/138721012:49
nik90zsombi: I am not sure how indicator-datetime will know which alarm id to pass to the clock app to open when a user clicks on it in the indicator12:50
nik90zsombi: is the alarm ID stored along with the other alarm properties like recurrence, name etc ?12:50
zsombinik90: the alarm id is stored in cookie, but that si not exposed to QML12:51
nik90zsombi: what about the alarm Index? since that's what I use to edit/open a particular alarm12:52
zsombinik90: that's not good, as that may change as well, depending on teh alarm times...12:52
zsombinik90: it is valid until you change and save the alarm date12:53
nik90zsombi: I basically need indicator to pass some sort of alarm id so that clock can open the correct alarm12:53
nik90zsombi: well even if the user changes the alarm date, i-dt should receive the updated alarm id? no?12:53
zsombinik90: not the index...12:53
nik90zsombi: ok..any ideas?12:54
zsombinik90: we could expose the cookie, but that woudl mean you must import 1.212:54
zsombiUbuntu.Components I mean12:54
nik90zsombi: well, at some point I need to import 1.2 to get the new list items, so that's not an issue12:55
zsombinik90: or do you plan to fix it still on RTM image?12:55
zsombinik90: ah, ok... it's a variant type, so you might be able to use that12:55
nik90zsombi: well considering that the entire platform will switch to vivid in about 3-4 weeks time (from lucas's email), I don't mind waiting until then12:55
zsombinik90: ok, but submit me a bug, so I can justify the API change12:56
nik90zsombi: but i-dt will also have access to this id, correct? if not then it wont help me12:56
zsombinik90: you can say to charles that the alarm ID he should pass is the QOrganizerItemId12:56
nik90ah ok12:56
nik90perfect thnx. I will report the bug now12:57
zsombikalikiana: t1mp: the last of the ListItem containers is also ready: https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/100-captions/+merge/25124812:58
nik90zsombi: You fixed bug 1195353 ! Woohoo thnx a lot.12:59
ubot5bug 1195353 in ubuntu-ui-toolkit (Ubuntu) "SDK should provide support to rearrange items in a ListView" [Medium,Triaged] https://launchpad.net/bugs/119535312:59
zsombinik90: yep :) in staging right now13:00
nik90zsombi: bug 1426361 as you requeste13:02
ubot5bug 1426361 in ubuntu-ui-toolkit (Ubuntu) "Alarms API should expose a unique permanent alarm ID that clock app can use to open an alarm" [Undecided,New] https://launchpad.net/bugs/142636113:02
nik90s/requeste/requested13:02
zsombinik90: thx!!!13:03
=== _salem is now known as salem_
=== MacSlow|lunch is now known as MacSlow
=== rmescandon is now known as rmescandon|lunch
zsombinik90: question -  what will be the format you will receive teh ID from i-dt? variant?13:57
nik90zsombi: hmm not sure, I still need to discuss that with charles13:58
zsombinik90: asking as comparition with two variants won't work :/13:58
zsombiin QML at least13:58
nik90zsombi: well wouldn't I be just calling alarmmodel.get(alarmID) and then the comparison actually is done by the alarms api in c++?13:59
zsombinik90: the get() function requires an index, but then I need to provide an other version also14:00
nik90zsombi: yeah you would need to expose another function similar to get() that takes the ID instead of the index14:00
nik90that was my understanding from our discussion before14:00
zsombinik90: and the problem is that a simple QVariant might not be good enough... as that one holds the QOrganizerItemId....14:01
zsombiand not the ID itself...14:02
zsombiso a value cast woudl be needed, and you most probably will get a string, not a variant14:02
zsombinik90: ^14:02
nik90zsombi: oh ok14:02
zsombinik90: so let me know what type you need14:03
nik90zsombi: ok. I will discuss with charles and let you know14:03
zsombinik90: you can live the notes in teh bug, I'll check it on Monday14:04
nik90zsombi: ack.14:04
zsombinik90: thx14:04
nik90np14:06
=== rmescandon|lunch is now known as rmescandon
mzanettiIn reminders I'm setting alarms (actually organizer items) so that the phone rings and they show up in the datetime indicator14:58
mzanettihowever, pressing on those entries opens the calendar app instead of reminders14:59
mzanettianyone know how (or if possible at all) to change that?14:59
mzanettizsombi, ^^15:10
mzanettipopey, hey, I see an update of Terminal and FileManager.15:10
mzanettipopey, but they're armhf only :'(15:10
popeyooh, thanks for the reminder15:10
popeyzbenjamin: bzoltan_ when do we get fat package support in the SDK? :)15:11
popeymzanetti: I upload jenkins-made clicks - I'm not going to manually craft fat packages.15:11
bzoltan_popey:  s/do/did/15:11
popeyhahah15:11
popeyhow?15:12
popeyYou're my hero.15:12
bzoltan_popey: Magic :) For qmake project it "just" (tm) works15:12
popeygah15:12
bzoltan_popey:  sadly with cmake it is close to impossible15:12
popeyballs15:13
bzoltan_popey: that happens when you play with non native formats :( Shame .. really is15:13
popeydpm: ^15:13
popeyall core apps are cmake, bzoltan_ tells me we're boned for fat packages in core apps15:13
popeythis makes me a very sad puppy15:13
mzanettibzoltan_, popey: You should note though that the fat package support is not supported on krillin15:14
popey(╯°□°)╯︵ ┻━┻15:14
mzanetticreating fat packages with sdk+qmake will likely not work for krillin15:14
bzoltan_mzanetti:  háähh??? How come?15:18
mzanettibzoltan_, well... 15.04 has Qt 5.4, while RTM has Qt 5.315:19
mzanettiyou can't compile with 5.4 and then run on 5.315:19
mzanettionly the other way round15:19
bzoltan_mzanetti: hmm... it must be possible.15:19
charleszsombi, nik90, looking at scrollback now15:19
mzanettibzoltan_, it is possible, if you avoid the changed symbols15:19
mzanettibzoltan_, like don't use qdebug for example15:20
bzoltan_mzanetti:  Qt must be ABI compatible between minor releases15:20
mzanettibzoltan_, upwards only15:20
mzanettinot downwards15:20
bzoltan_mzanetti: ohhh hack15:20
mzanettiso compiling with 5.1 is still supposed to run on 5.415:20
mzanettibut not the other way round.15:20
mzanettiwhich kinda makes sense I'd say15:20
bzoltan_mzanetti:  RTM will be on 5.4 soon15:21
mzanettiyep, that'll solve this problem15:21
bzoltan_mzanetti:  and ... anyway, I kow loads of sensible things what sucks big time :D15:21
bzoltan_mzanetti:  anyhow.. it is question of weeks and RTM will be on Vivid15:22
mzanettinot sure I get what you're trying to say with that15:22
mzanettiyeah... I don't think it makes much sense backport stuff at this point... rtm will be updated soon enough15:23
mzanettijust saying, if you create a fat package with the SDK *now*, people getting their bq phones in march won't be able to run them15:23
bzoltan_mzanetti: I am affraid that it is not about fat packaging, but in general your app is busted if you use the 15.04 chroots instead of 14.1015:26
mzanettiyeah15:27
bzoltan_mzanetti: for the RTM the official channel is 14.10 what does not support qmake projects at all... so it does not have fat packaging15:27
mzanettiit's about building with a 15.04 chroot15:27
mzanettiyep.15:27
bzoltan_mzanetti:  what is not supported for krillin ab ovo15:27
* bzoltan_ wished so many times to have a RTM bootsrap instead of faking the RTM with Utopic15:28
mzanettibzoltan_, yeah, all makes sense to me. I just wanted to tell popey that at this point in time, he needs to be careful with publishing fat packages15:28
popeyi build in 14.10 kits fwiw15:29
bzoltan_popey:  good, that is a safe land15:31
bzoltan_mzanetti: popey: if people would be more interested about the static Kits instead of the fragile and unstable bootstrapping I could make RTM images with qmake+fat support.15:33
charlesnik90, zsombi, https://bugs.launchpad.net/ubuntu/+source/indicator-datetime/+bug/1426363/comments/115:33
ubot5Launchpad bug 1426363 in indicator-datetime (Ubuntu) "I-dt should send the alarm QOrganizerItemId to the clock app when the user clicks on an alarm shown in the indicator" [Undecided,Incomplete]15:33
popeysverzegnassi: see my comment on that merge?15:53
popeydid I break it? :)15:53
popey\o/ https://swordfishslabs.wordpress.com/2015/02/27/json-profiles-in-ubuntu-terminal-app/16:50
Mirvcool, the terminal really rocks nowadays and that json customization support is an icing on the cake16:59
ogra_i really want a QML widget that i can hand a path to a comman to exec now17:00
ogra_(a terminal widget)17:00
ogra_packaging things like htop or irssi into a click would be trivial if we had that17:00
ogra_or mutt :)17:00
zbenjaminpopey: you can manually create fat packages btw17:08
zbenjaminpopey:     http://pastebin.ubuntu.com/10451877/17:12
zbenjaminogra_: can't you use the component used for the terminal?17:14
zbenjaminogra_: would be awesome to have that avail as a systemwide library17:14
popeyogra_: after we add an option to switch custom keyboards on and off, the next item planned is a terminal component17:27
popeyso devs can package up mutt+terminal and put in the store17:27
popeyit will be a stripped down terminal, probably no tab support17:27
popeyJET - Just Enough Terminal.17:28
zsombimzanetti: I am not surprised to be honest...17:32
zsombimzanetti: about the "alarms" created from Reminders17:32
zsombimzanetti: as long as Alarms uses QtOrganizer, you will see this happening :/17:34
zsombimzanetti: we had one "hack" with charles, but that was just pretending that we've fixed it... so we REALLY need a proper backend for teh alarms...17:35
charlesat one point we talked about adding a crud dbus api to indicator-datetime for manipulating the alarms s.t. we wouldn't have to go through QtOrganizer and EDS17:38
charlesalarms via qtorganizer/eds has been far, far more problematic than it's been worth IMO17:38
charleseven after nik90, renatu, zsombi, and I have worked on different pieces of the toolchain for a long time now, we /still/ get alarms that fail to make it through the pipeline correctly17:39
nik90charles, zsombi: hmm yes the new backend is definitely work looking at this point after all the work that has been done to get it working. TBH I would rather work on that before starting on the clock app timer functionality since the last time I discussed this with bill filler, he said the clock app timer will also require waking up by an external service17:43
nik90using the alarms api. May be with one good simple backend we can achieve both alarms and timer.17:43
nik90s/work/worth17:43
zbenjaminpopey: \o/ a terminal component?17:44
zbenjaminpopey: awesome! i can use one for script output in the SDK :)17:44
zsombicharles: that's why we should reload the brainstorming about the dbus API17:45
zsombinik90: charles: yes, the same backend coudl do the job. From toolkit's point, a separate interface may be required, but that's a different sorry17:47
nik90zsombi: yeah same backend, different interface but indicator-datetime again doing the job of ringing the audio notification in both the cases17:47
zsombiyes17:48
nik90zsombi: btw did you move? Usually its really late now in your place and you're offline by now17:49
zsombicharles: do you have any ideas in mind, or should I pull a set of requirements for the timers/alarms?17:49
zsombinik90: nope, I just turned on my laptop and my IRC client was on :D17:50
zsombicharles: nik90: I will build a blueprint on Monday about some requirements we all can contribute to and I think the next thing to be done will be to work on that17:51
nik90zsombi: +1..I will chip in as well and ensure all requirements that I know of are in there17:52
zsombinik90: I count on you :)17:52
nik90hehe :P17:52
nik90anyways I am off to preparing dinner .. have a nice weekend everyone!17:53
popeyzbenjamin: :)17:54
zsombinik90: same17:56
mzanettizsombi, so what I actually do is to use QtOrganizer directly. and what happens is that it opens the calendar.18:00
zsombimzanetti: we know... we also use qtorganizer :/18:00
zsombimzanetti: and that's the problem18:00
mzanettiso my question was more if you happen to know where the to-be-opened app can be specified18:00
zsombimzanetti: I don't think that is specified anywhere18:01
zsombimzanetti: yet indicator opens the Alarms for QtOrganizerTodo events... i guess charles can help you on that18:01
mzanettiwhy does alarms open the clock app then instead of the calendar app too? Is that the "hack" you mentioned?18:01
mzanettiright18:01
zsombimzanetti: do you see Alarms in your app as well?18:02
mzanettino18:02
zsombimzanetti: that's a pleasant surprise tbh...18:02
mzanettihmm... it's been a while... let me check if I filter them away myself18:03
mzanettijust to be sure18:03
charleszsombi, mzanetti, yeah opening the clock app for calendar events on the phone is a bug, I'm looking at that code and the fix seems straightforward18:04
mzanettierm... works here (on rtm that is)...18:05
mzanettimy issue is that it opens the calendar instead of reminders :)18:05
zsombicharles: the only problem is to identify which alarm you open... I don't have anything else on my disposal than QtOrganizerItemId :/18:05
charlesno wait18:05
charlesyeah, I was jumping to conclusions just now and reading the code wrong :/18:08
charlesso about identifying which alarm to open18:08
charleszsombi, I'm not saying that we can't use that -- I'm saying that, since datetime isn't using the qtorganizer library, it would be faster if you can give me an example of an .ical snippet and point to the id that needs to be used18:10
mzanettizsombi, I just checked. I don't get the calendar entries. so all working fine there18:11
zsombicharles: right, it would be :)18:11
zsombimzanetti: huhh... I am still surprized it does :D18:11
charlesfor opening /calendars/ to the right place, I had a hard time getting this to work with evolution on the desktop18:12
charleswhat it prefers is if you send it a time string as an argument18:12
mzanettizsombi, hmm... well, I do set a filter on the collectionId I create... maybe I would get them without that, but seems like the expected thing to me, no?18:12
charleson desktop, to open the calendar to the right place, datetime uses calendar:///?startdate=%Y%m%dT%H%M%SZ18:13
mzanetticharles, there's maybe a misunderstanding here :)18:13
zsombimzanetti: yes... however the QtOrganizer API allows to get all Todos if you don't specify a collectionId... so others will get the Alarms and reminders in one shot18:13
mzanetticharles, what I'm trying to do is to open the reminders app (not a reminder in the calendar) when you press on an entry in the datetime indicator that I created with the reminders app18:14
charlesmzanetti, ahhh18:15
renatucharles, hi, did you have time to look at my fix? https://code.launchpad.net/~renatofilho/qtorganizer5-eds/fix-1424924/+merge/25112918:16
* charles tries the novel idea of reading scrollback before saying anything else18:18
zsombicharles: :D18:21
charlesokay so (1) zsombi, nik90, I agree we should reload the discussion for alarm create/read/update/delete via dbus, with a mind to eliminating some of the middlemen in the toolchain18:21
zsombicharles: +1000018:21
zsombicharles: I will create a BM on monday so we can log teh ideas18:21
zsombis/BM/BP18:22
charles(2) mzanetti, zsombi, unfortunately there's not currently a way to add in another app, e.g. the reminders app. But yes this does dovetail with the other discussion of pulling up the right alarm in clock-app18:22
charlesin both cases (clock-app and reminders) likely we'll want to pass some url into the ical s.t. the menu can pass it to url_dispatch when clicked18:23
mzanettiyep, that'd be ideal18:23
charlesthat was the original plan, that datetime would just be a blind pass-through, dispatching whatever url was sent to it (at least, after doing basic sanity checks)18:24
charleswe'd probably want calendar-app to be the fallback if that URL was missing, to play nicely with calendars imported from google18:25
charleszsombi, ack, we'll talk on monday18:25
charlesmzanetti, is there a bug yet tracking the reminders support for datetime menu clicks?18:26
charless/reminders/arbitrary app/18:26
mzanetticharles, hmm... seems so... don't know. maybe I'm doing something wrong18:28
charles?18:28
mzanetticharles, but when I click on an entry I created, it opens the calendar app18:28
mzanettiah18:29
mzanettiI misread18:29
mzanettisorr18:29
mzanettisorry18:29
mzanettino, I haven't filed a bug yet18:29
charlesactually it looks like datetime does have residual code for this, we're just not currently using it from the things created by calendar-app or clock-app:18:33
charleshttp://bazaar.launchpad.net/~indicator-applet-developers/indicator-datetime/trunk.15.04/view/head:/src/actions-live.cpp#L13718:33
charlesif we have a URL for the item, we dispatch it... otherwise if it was generated by clock-app, we launch clock-app... otherwise calendar-app18:34
charlesso all we have to do for reminders is to get that URL populated18:34
charlesthat, though, needs some work18:35
charlesright now those are stored in an alarm-specific way in ical for historic reasons18:36
charlesinstead, we might want to re-abuse the 'categories' section of ical because that's a place where we can add arbitrary key/value pairs18:37
charlesthat way reminders wouldn't have to create alarm attachments just to shoehorn in a url18:38
charlesI'm open to suggestions on this, I see using 'categories' as less bad, but still clumsy18:38
charlesrenatu, looking at https://code.launchpad.net/~renatofilho/qtorganizer5-eds/fix-1424924/+merge/251129 now18:40
renatucharles, thanks :D18:40
charlesah, well http://www.kanzaki.com/docs/ical/url.html would be better than either 'categories' or 'alarms' for this :)18:41
=== salem_ is now known as _salem
=== _salem is now known as salem_
=== salem_ is now known as _salem
=== _salem is now known as salem_

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!