/* aboutdialog.vala * * Copyright (C) 2008 Nicolas Joseph * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * Author: * Nicolas Joseph */ using Gtk; public class Valide.AboutDialog : Gtk.AboutDialog { private const string[] _authors = { "Nicolas Joseph ", null }; private const string _program_name = "Valide"; private const string _version = "0.1"; construct { string contents; try { /** * @todo Change URI */ GLib.FileUtils.get_contents ("COPYING", out contents); this.license = contents; } catch (GLib.Error e) { } try { /** * @todo Change URI */ var pixbuf = new Gdk.Pixbuf.from_file ("./pixmaps/logo.png"); this.logo = pixbuf; } catch (GLib.Error e) { } this.authors = this._authors; this.program_name = this._program_name; this.version = this._version; } }