From 8a110652634824c83b7c27d89cfc29d7d9435e2c Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 19 Feb 2012 16:04:27 +0100 Subject: Add an (awesome) logo to the MAT --- logo.png | Bin 0 -> 31340 bytes mat-gui | 8 ++++++-- setup.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 logo.png diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..4198c42 Binary files /dev/null and b/logo.png differ diff --git a/mat-gui b/mat-gui index 232e6e0..c1fb98f 100755 --- a/mat-gui +++ b/mat-gui @@ -1,5 +1,6 @@ #!/usr/bin/env python -#charset utf-8 +# -*- coding: utf-8 -* + ''' Metadata anonymisation toolkit - GUI edition @@ -52,6 +53,7 @@ class GUI: self.window.set_title('Metadata Anonymisation Toolkit') self.window.connect('destroy', gtk.main_quit) self.window.set_default_size(800, 600) + self.window.set_icon(gtk.gdk.pixbuf_new_from_file_at_size("logo.png", 50, 50)) self.accelerator = gtk.AccelGroup() self.window.add_accel_group(self.accelerator) @@ -375,13 +377,15 @@ class GUI: ''' w = gtk.AboutDialog() w.set_authors(['Julien (jvoisin) Voisin', ]) + w.set_artists(['Marine BenoƮt', ]) w.set_copyright('GNU Public License v2') w.set_comments(_('This software was coded during the GSoC 2011')) - #w.about.set_logo(gtk.gdk.pixbuf_new_from_file(LOGO)) + w.set_logo(gtk.gdk.pixbuf_new_from_file_at_size('logo.png', 400, 200)) w.set_program_name('Metadata Anonymisation Toolkit') w.set_version(mat.__version__) w.set_website('https://mat.boum.org') w.set_website_label(_('Website')) + w.set_position(gtk.WIN_POS_CENTER) click = w.run() if click: w.destroy() diff --git a/setup.py b/setup.py index 77ba00d..ff9cd50 100755 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ setup( scripts = ['mat', 'mat-gui'], data_files = [ ( 'share/applications', ['mat.desktop'] ), - ( 'share/mat', ['FORMATS'] ), + ( 'share/mat', ['FORMATS', 'logo.png'] ), ( 'share/doc/mat', ['README', 'TODO'] ), ( 'share/mat/locale/', [i for i in l10n()] ), ], -- cgit v1.3