diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-11-16 19:26:47 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-11-16 19:26:47 +0000 |
commit | ab1a24bb90d2a16338950c03f693ecaaa29d34d2 (patch) | |
tree | 946c355cdd2860d79e809557b46a622afe541445 /gtk-recordmydesktop | |
parent | 38e5f710d89a05afd414bab2a84d47a7573317a4 (diff) |
default values moved in configuration module
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@175 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'gtk-recordmydesktop')
-rw-r--r-- | gtk-recordmydesktop/src/rmdConfig.py.in | 26 | ||||
-rw-r--r-- | gtk-recordmydesktop/src/rmdSimple.py | 3 |
2 files changed, 27 insertions, 2 deletions
diff --git a/gtk-recordmydesktop/src/rmdConfig.py.in b/gtk-recordmydesktop/src/rmdConfig.py.in index b6a70e9..2c5d873 100644 --- a/gtk-recordmydesktop/src/rmdConfig.py.in +++ b/gtk-recordmydesktop/src/rmdConfig.py.in @@ -3,3 +3,29 @@ VERSION='@VERSION@' PREFIX='@PREFIX@' locale_install_dir=os.path.join('@DATADIR@'.replace("${prefix}",PREFIX), 'locale') +#binary values expressed with 1 and zero instead of True and False +#are upside down. That means 0 is enabled and 1 disabled + +default_values=[15, #framerate + 0, #cursor + True, #sound + 1, #full shots,0 on 1 off + os.path.join(os.getenv('HOME'),'out.ogg'), #filename + [-1,-1,-1,-1], #recording area(<0 means auto) + 0, #delay ,unused on 0.3 + 1, #no of channels + 22050, #frequency + 'hw:0,0', #device + 63, #video quality + 10, #audio quality + "$DISPLAY", #display, this is not interpreted as an env variable + #but when the value is set to this the argument is omitted + 0, #shared memory,0 on 1 off + 1, #drop frames,unused in 0.3,0 on 1 off + 75, #shared threshold + 1, #quick subsampling,0 on 1 off + os.path.join(os.getenv('HOME')), #working directory + 1, #on the fly encoding,0 on 1 off + 1, #zero compression,0 on 1 off + False #overwrite existing files + ]
\ No newline at end of file diff --git a/gtk-recordmydesktop/src/rmdSimple.py b/gtk-recordmydesktop/src/rmdSimple.py index 50f60d6..6164647 100644 --- a/gtk-recordmydesktop/src/rmdSimple.py +++ b/gtk-recordmydesktop/src/rmdSimple.py @@ -253,8 +253,7 @@ class simpleWidget(object): self.values[11]=int(self.v_quality.get_value()/10) def __init__(self): - self.values= [15,0,True,1,os.path.join(os.getenv('HOME'),'out.ogg'),[-1,-1,-1,-1],0, - 1,22050,'hw:0,0',63,10,"$DISPLAY",0,1,75,1,os.path.join(os.getenv('HOME')),1,1,False] + self.values= rmdConfig.default_values self.optionsOpen=[0] self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.window.connect("destroy", self.__exit__) |