summaryrefslogtreecommitdiff
path: root/mat-gui
diff options
context:
space:
mode:
authorjvoisin2012-05-17 14:04:09 +0200
committerjvoisin2012-05-17 14:04:09 +0200
commit0b4e1f2b412ad236c271b8f77cb0007dd091d4c3 (patch)
tree19c61dd907ae59f7ff94c251b6deb7821ffb391a /mat-gui
parentadf403ca6adc1bdbd40e35237c4d75548b3f6c74 (diff)
Fix the "No such file or directory" logo bug
Diffstat (limited to 'mat-gui')
-rwxr-xr-xmat-gui8
1 files changed, 4 insertions, 4 deletions
diff --git a/mat-gui b/mat-gui
index 3942689..18c7467 100755
--- a/mat-gui
+++ b/mat-gui
@@ -52,8 +52,8 @@ class GUI:
52 self.window.set_title('Metadata Anonymisation Toolkit') 52 self.window.set_title('Metadata Anonymisation Toolkit')
53 self.window.connect('destroy', gtk.main_quit) 53 self.window.connect('destroy', gtk.main_quit)
54 self.window.set_default_size(800, 600) 54 self.window.set_default_size(800, 600)
55 path = os.path.join(mat.get_sharedir(), 'logo.png') 55 self.logo = mat.get_sharedir('logo.png')
56 icon = gtk.gdk.pixbuf_new_from_file_at_size(path, 50, 50) 56 icon = gtk.gdk.pixbuf_new_from_file_at_size(self.logo, 50, 50)
57 self.window.set_icon(icon) 57 self.window.set_icon(icon)
58 58
59 self.accelerator = gtk.AccelGroup() 59 self.accelerator = gtk.AccelGroup()
@@ -379,7 +379,7 @@ class GUI:
379 w.set_artists(['Marine Benoît', ]) 379 w.set_artists(['Marine Benoît', ])
380 w.set_copyright('GNU Public License v2') 380 w.set_copyright('GNU Public License v2')
381 w.set_comments(_('This software was coded during the GSoC 2011')) 381 w.set_comments(_('This software was coded during the GSoC 2011'))
382 w.set_logo(gtk.gdk.pixbuf_new_from_file_at_size('logo.png', 400, 200)) 382 w.set_logo(gtk.gdk.pixbuf_new_from_file_at_size(self.logo, 400, 200))
383 w.set_program_name('Metadata Anonymisation Toolkit') 383 w.set_program_name('Metadata Anonymisation Toolkit')
384 w.set_version(mat.__version__) 384 w.set_version(mat.__version__)
385 w.set_website('https://mat.boum.org') 385 w.set_website('https://mat.boum.org')
@@ -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 = os.path.join(mat.get_sharedir(), 'FORMATS') 408 path = mat.get_sharedir('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