projects
/
drlaunch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change defaults to 'no longpress' and 'rotate icons individually'.
[drlaunch]
/
src
/
config.py
diff --git
a/src/config.py
b/src/config.py
index
0ed4157
..
5bc5f23
100755
(executable)
--- a/
src/config.py
+++ b/
src/config.py
@@
-25,7
+25,7
@@
__version__ = "$Id: 0.py 2265 2010-02-21 19:16:26Z v13 $"
import os
import pickle
import os
import pickle
-version = "0.6"
+version = "0.7"
try:
from glib import get_user_config_dir
try:
from glib import get_user_config_dir
@@
-63,8
+63,8
@@
class Config:
# self.iconspace = 42 # For 4 icons (height)
self.iconspace = 36 # For 8 icons (width)
self.apps=None
# self.iconspace = 42 # For 4 icons (height)
self.iconspace = 36 # For 8 icons (width)
self.apps=None
- self.indiv=False
- self.longpress=True
+ self.indiv=True
+ self.longpress=False
self.animate=True
self.maxsz=(8,4)
self.animate=True
self.maxsz=(8,4)
@@
-122,7
+122,7
@@
class Config:
if dt==None:
dt={
if dt==None:
dt={
- 'version': 3,
+ 'version': 4,
'data': {},
}
'data': {},
}
@@
-167,6
+167,14
@@
class Config:
return(dt)
return(dt)
+ def parse_v3(self, dt):
+ dt['version']=4
+
+ for i in dt['data']:
+ dt['data'][i]['animate']=True
+
+ return(dt)
+
def load_all(self):
fn=get_config_fn()
def load_all(self):
fn=get_config_fn()
@@
-184,6
+192,9
@@
class Config:
if ret['version']==2:
ret=parse_v2(ret)
if ret['version']==2:
ret=parse_v2(ret)
+
+ if ret['version']==3:
+ ret=parse_v3(ret)
except:
ret=None
except:
ret=None
@@
-205,6
+216,7
@@
class Config:
self.setApps(dt['apps'])
self.setIndiv(dt['indiv'])
self.setLongpress(dt['longpress'])
self.setApps(dt['apps'])
self.setIndiv(dt['indiv'])
self.setLongpress(dt['longpress'])
+ self.setAnimate(dt['animate'])
def check_init(self):
if self.id==None:
def check_init(self):
if self.id==None: