summaryrefslogtreecommitdiff
path: root/mat-gui
diff options
context:
space:
mode:
authorjvoisin2013-01-07 22:37:54 +0100
committerjvoisin2013-01-07 22:37:54 +0100
commit5027bba6c2c1c7546cfc0eb953de38181b7e4e7b (patch)
tree094928d07c06070c59fa10132fb67a07386a6405 /mat-gui
parent27189a6f322f720803759daf2061b503e0148963 (diff)
Refactor the get_sharedir function, and move datas to a proper data folder
Diffstat (limited to 'mat-gui')
-rwxr-xr-xmat-gui4
1 files changed, 2 insertions, 2 deletions
diff --git a/mat-gui b/mat-gui
index 121db56..be966b0 100755
--- a/mat-gui
+++ b/mat-gui
@@ -53,7 +53,7 @@ class GUI:
53 self.window.set_title('Metadata Anonymisation Toolkit') 53 self.window.set_title('Metadata Anonymisation Toolkit')
54 self.window.connect('destroy', gtk.main_quit) 54 self.window.connect('destroy', gtk.main_quit)
55 self.window.set_default_size(800, 600) 55 self.window.set_default_size(800, 600)
56 self.logo = mat.get_sharedir('mat.png') 56 self.logo = mat.get_logo()
57 icon = gtk.gdk.pixbuf_new_from_file_at_size(self.logo, 50, 50) 57 icon = gtk.gdk.pixbuf_new_from_file_at_size(self.logo, 50, 50)
58 self.window.set_icon(icon) 58 self.window.set_icon(icon)
59 59
@@ -405,7 +405,7 @@ class GUI:
405 handler = mat.XMLParser() 405 handler = mat.XMLParser()
406 parser = xml.sax.make_parser() 406 parser = xml.sax.make_parser()
407 parser.setContentHandler(handler) 407 parser.setContentHandler(handler)
408 path = mat.get_sharedir('FORMATS') 408 path = mat.get_formats()
409 with open(path, 'r') as xmlfile: 409 with open(path, 'r') as xmlfile:
410 parser.parse(xmlfile) 410 parser.parse(xmlfile)
411 411