///////////////////////////////////////////////////////////////////////// // Copyright 2011-2018 Simon Schneegans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ///////////////////////////////////////////////////////////////////////// namespace GnomePie { ///////////////////////////////////////////////////////////////////////// /// A simple about dialog. ///////////////////////////////////////////////////////////////////////// public class AboutWindow: Gtk.AboutDialog { ///////////////////////////////////////////////////////////////////// /// C'tor, creates a new about dialog. The entries are sorted alpha- /// betically. ///////////////////////////////////////////////////////////////////// public AboutWindow () { string[] devs = { "Simon Schneegans ", "Gabriel Dubatti ", "Francesco Piccinno ", "György Balló ", "Tiago de Oliveira Corrêa " }; string[] artists = { "Simon Schneegans " }; string[] translators = { "Simon Schneegans (DE, EN)", "Riccardo Traverso (IT)", "Magnun Leno (PT-BR)", "Kim Boram (KO)", "Eduardo Anabalon (ES)", "Moo (LT)", "Gabriel Dubatti (ES)", "Grégoire Bellon-Gervais (FR)", "Raphaël Rochet (FR)", "Alex Maxime (FR)", "Eugene Roskin (RU)", "Ashed (RU)", "Ting Zhou (ZH-CN)", "Martin Dinov (BG)", "Heimen Stoffels (NL-NL)" }; // sort translators GLib.List translator_list = new GLib.List(); foreach (var translator in translators) translator_list.append(translator); translator_list.sort((a, b) => { return a.ascii_casecmp(b); }); string translator_string = ""; foreach (var translator in translator_list) translator_string += translator + "\n"; GLib.Object ( artists : artists, authors : devs, translator_credits : translator_string, copyright : "Copyright 2011-2018 Simon Schneegans ", program_name: "Gnome-Pie", logo_icon_name: "gnome-pie", website: "http://simmesimme.github.io/gnome-pie.html", website_label: "Homepage", version: Daemon.version ); } } }