Le 02/04/2013 06:30, Wiratama D.C. a écrit :
> On Tuesday, April 2, 2013 5:04:04 AM UTC+7, Julien Wajsberg wrote:
>> Le 30/03/2013 04:38, Wiratama D.C. a écrit :
>>
>>> Actually I don't want to create another homescreen to start with, I just 
>>> need to modify the existing homescreen to add another one page. Is it not 
>>> possible to modify the current homescreen in gaia to add one extra page? 
>>> Thanks. 
>>
>>
>> see configurator.js, you'll see we "init" the homescreen with either 0
>>
>> or 1. 1 means that we have the first everything.me page. You may try to
>>
>> experiment with calling init with "2".
>>
>>
>>
>> -- 
>>
>> Julien
> Firstly, lets assume the default homescreen has 4 pages, 0 is e.me, 1 is 
> landing-page, 2-3 is the apps.
> After doing some experiment, I found out that when I put the "init" to 0 
> (default is 1, which is the landing page), I cannot move to other page.

I think this is probably expected: the homescreen handles how the swipe
gesture work. If you're on the "0" page and you have the e.me page at
this position, I'd say e.me just calls the homescreen to go to whatever
page it should go, which doesn't work because "0" is configured as the
landing page.
(just guessing here, I haven't looked the actual code)

> Then, when I set "init" to 2, I can only move on page 2-3, when I'm trying to 
> swipe right to page 1, it will stuck and back to page 2.

You should have a look on whatever the e.me code does. I don't know this
part but I believe this is some magic to make the "normal" homescreen
and e.me work together.

-- 
Julien

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to