More indentation fixes.
This commit is contained in:
parent
bb07a6bbe3
commit
7055c1555e
10
bin/ladilog
10
bin/ladilog
|
@ -88,13 +88,13 @@ class ladilog (gtk.glade.XML):
|
|||
self.global_config = laditools.config ()
|
||||
self.param_dict = self.global_config.get_config_section ('ladilog')
|
||||
|
||||
for log in self.log_files:
|
||||
for log in self.log_files:
|
||||
if self.param_dict != None:
|
||||
if log['config_name'] not in self.param_dict:
|
||||
if log['config_name'] not in self.param_dict:
|
||||
self.param_dict[log['config_name']] = log['config_default']
|
||||
else:
|
||||
self.param_dict = {}
|
||||
self.param_dict[log['config_name']] = log['config_default']
|
||||
self.param_dict = {}
|
||||
self.param_dict[log['config_name']] = log['config_default']
|
||||
|
||||
if 'max_lines' not in self.param_dict:
|
||||
self.param_dict['max_lines'] = max_lines_default
|
||||
|
@ -176,7 +176,7 @@ class ladilog (gtk.glade.XML):
|
|||
def run (self):
|
||||
gtk.main ()
|
||||
self.global_config.set_config_section ("ladilog", self.param_dict)
|
||||
self.global_config.save ()
|
||||
self.global_config.save ()
|
||||
return 0
|
||||
|
||||
try:
|
||||
|
|
|
@ -109,11 +109,11 @@ class laditray (gtk.StatusIcon, laditools.manager):
|
|||
|
||||
def run(self):
|
||||
gtk.main ()
|
||||
# Some default config might need to be injected in the config file,
|
||||
# we handle all that before we quit.
|
||||
# Some default config might need to be injected in the config file,
|
||||
# we handle all that before we quit.
|
||||
self.global_config.set_config_section ('ladimenu', self.menu_array)
|
||||
self.global_config.set_config_section ('laditray', self.laditray_param_dict)
|
||||
self.global_config.save ()
|
||||
self.global_config.set_config_section ('laditray', self.laditray_param_dict)
|
||||
self.global_config.save ()
|
||||
return 0
|
||||
|
||||
#try:
|
||||
|
|
14
bin/wmladi
14
bin/wmladi
|
@ -38,12 +38,12 @@ class wmladi (wmoo.Application, laditools.manager):
|
|||
# Handle the configuration
|
||||
self.global_config = laditools.config ()
|
||||
self.param_dict = self.global_config.get_config_section ('wmladi')
|
||||
if self.param_dict != None:
|
||||
if 'autostart' not in self.param_dict:
|
||||
self.param_dict['autostart'] = str (autostart_default)
|
||||
if self.param_dict != None:
|
||||
if 'autostart' not in self.param_dict:
|
||||
self.param_dict['autostart'] = str (autostart_default)
|
||||
else:
|
||||
self.param_dict = {}
|
||||
self.param_dict['autostart'] = str (autostart_default)
|
||||
self.param_dict = {}
|
||||
self.param_dict['autostart'] = str (autostart_default)
|
||||
autostart = self.param_dict['autostart']
|
||||
wmoo.Application.__init__ (
|
||||
self,
|
||||
|
@ -203,7 +203,7 @@ class wmladi (wmoo.Application, laditools.manager):
|
|||
def run (self):
|
||||
self.run_gtk ()
|
||||
self.global_config.set_config_section ('wmladi', self.param_dict)
|
||||
self.global_config.set_config_section ('ladimenu', self.menu_array)
|
||||
self.global_config.save ()
|
||||
self.global_config.set_config_section ('ladimenu', self.menu_array)
|
||||
self.global_config.save ()
|
||||
|
||||
wmladi ().run ()
|
||||
|
|
Loading…
Reference in New Issue