- x=0
- y=0
- fn=["maegirls", "wifieye", 'battery-eye', 'image-viewer',
- 'tecnoballz', 'ncalc', 'rtcom-call-ui', 'rtcom-messaging-ui',
- 'extcalllog', 'browser', 'modest', 'osso-addressbook']
- for f in fn:
- dt=apps.readOne(f)
- dt['icon2']=getIcon(dt['icon'])
- print x, y, dt
- self.get(x,y).setApp(dt)
- x+=1
- if x>=config.size:
- x=0
- y+=1
-# self.icons.append(p)
+# x=0
+# y=0
+# fn=["maegirls", "wifieye", 'battery-eye', 'image-viewer',
+# 'tecnoballz', 'ncalc', 'rtcom-call-ui', 'rtcom-messaging-ui',
+# 'extcalllog', 'browser', 'modest', 'osso-addressbook']
+
+ wapps=config.getApps()
+ sz=config.getSize()
+
+ for k in wapps:
+ x,y=k
+ if x>=sz or y>=sz:
+ continue
+
+ appname=wapps[k]
+ if appname!=None:
+ app=apps.readOne(appname)
+ app['icon2']=getIcon(app['icon'])
+ self.get(x,y).setApp(app)
+
+# for f in fn:
+# dt=apps.readOne(f)
+# dt['icon2']=getIcon(dt['icon'])
+# print x, y, dt
+# self.get(x,y).setApp(dt)
+# x+=1
+# if x>=config.getSize(getSize()):
+# x=0
+# y+=1
+## self.icons.append(p)