Sha256: 3679a6f6c453f2ea4dab0cbb09d56fb8d70a741946587c5552890037ed577f28
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
# frozen_string_literal: true # This file is part of Alexandria. # # See the file README.md for authorship and licensing information. module Alexandria module UI class AboutDialog GPL = <<~EOL Alexandria is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Alexandria 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 General Public License for more details. You should have received a copy of the GNU General Public License along with Alexandria; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. EOL def initialize(parent) @dialog = Gtk::AboutDialog.new @dialog.name = Alexandria::TITLE @dialog.version = Alexandria::DISPLAY_VERSION @dialog.copyright = Alexandria::COPYRIGHT @dialog.comments = Alexandria::DESCRIPTION @dialog.authors = Alexandria::AUTHORS @dialog.documenters = Alexandria::DOCUMENTERS @dialog.artists = Alexandria::ARTISTS @dialog.translator_credits = Alexandria::TRANSLATORS.join("\n") @dialog.logo = Icons::ALEXANDRIA @dialog.website = Alexandria::WEBSITE_URL @dialog.license = GPL @dialog.transient_for = parent @dialog.signal_connect('response') { @dialog.destroy } end def show @dialog.show end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alexandria-book-collection-manager-0.7.3 | lib/alexandria/ui/dialogs/about_dialog.rb |