summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gui.py19
1 files changed, 7 insertions, 12 deletions
diff --git a/gui.py b/gui.py
index 2236168..c95697b 100644
--- a/gui.py
+++ b/gui.py
@@ -38,9 +38,9 @@ class ListStoreApp:
38 ''' 38 '''
39 def __init__(self): 39 def __init__(self):
40 # Preferences 40 # Preferences
41 self.add2archive = True
42 self.backup = True
43 self.force = False 41 self.force = False
42 self.backup = True
43 self.add2archive = True
44 44
45 self.window = gtk.Window() 45 self.window = gtk.Window()
46 self.window.set_title('Metadata Anonymisation Toolkit %s' % 46 self.window.set_title('Metadata Anonymisation Toolkit %s' %
@@ -303,23 +303,23 @@ loss')
303 hbox.pack_start(table, True, True, 0) 303 hbox.pack_start(table, True, True, 0)
304 304
305 force = gtk.CheckButton('Force Clean', False) 305 force = gtk.CheckButton('Force Clean', False)
306 force.set_active(self.force)
306 force.connect('toggled', self.invert, 'force') 307 force.connect('toggled', self.invert, 'force')
307 force.set_tooltip_text('Do not check if already clean before cleaning') 308 force.set_tooltip_text('Do not check if already clean before cleaning')
308 force.set_active(not self.force)
309 table.attach(force, 0, 1, 0, 1) 309 table.attach(force, 0, 1, 0, 1)
310 310
311 backup = gtk.CheckButton('Backup', False) 311 backup = gtk.CheckButton('Backup', False)
312 backup.set_active(self.backup)
312 backup.connect('toggled', self.invert, 'backup') 313 backup.connect('toggled', self.invert, 'backup')
313 backup.set_tooltip_text('Keep a backup copy') 314 backup.set_tooltip_text('Keep a backup copy')
314 backup.set_active(not self.backup)
315 table.attach(backup, 0, 1, 1, 2) 315 table.attach(backup, 0, 1, 1, 2)
316 316
317 add2archive = gtk.CheckButton('Add unsupported file to archives', 317 add2archive = gtk.CheckButton('Add unsupported file to archives',
318 False) 318 False)
319 add2archive.set_active(self.add2archive)
319 add2archive.connect('toggled', self.invert, 'add2archive') 320 add2archive.connect('toggled', self.invert, 'add2archive')
320 add2archive.set_tooltip_text('Add non-supported (and so \ 321 add2archive.set_tooltip_text('Add non-supported (and so \
321non-anonymised) file to outputed archive') 322non-anonymised) file to outputed archive')
322 add2archive.set_active(not self.add2archive)
323 table.attach(add2archive, 0, 1, 2, 3) 323 table.attach(add2archive, 0, 1, 2, 3)
324 324
325 hbox.show_all() 325 hbox.show_all()
@@ -331,17 +331,12 @@ non-anonymised) file to outputed archive')
331 ''' 331 '''
332 Invert a preference state 332 Invert a preference state
333 ''' 333 '''
334 print self.force
335 print self.backup
336 print self.add2archive
337 print name
338 print '\n'
339 if name == 'force': 334 if name == 'force':
340 self.force = not self.force 335 self.force = not self.force
341 elif name == 'add2archive':
342 self.add2archive = not self.add2archive
343 elif name == 'backup': 336 elif name == 'backup':
344 self.backup = not self.backup 337 self.backup = not self.backup
338 elif name == 'add2archive':
339 self.add2archive = not self.add2archive
345 340
346 def clear_model(self, _): 341 def clear_model(self, _):
347 ''' 342 '''