Class: Alexandria::UI::AboutDialog
- Inherits:
-
Object
- Object
- Alexandria::UI::AboutDialog
- Defined in:
- lib/alexandria/ui/about_dialog.rb
Constant Summary collapse
- GPL =
rubocop:disable I18n/GetText/DecorateString
<<~EOL # rubocop:disable I18n/GetText/DecorateString 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, Fif
Instance Method Summary collapse
-
#initialize(parent) ⇒ AboutDialog
constructor
A new instance of AboutDialog.
- #show ⇒ Object
Constructor Details
#initialize(parent) ⇒ AboutDialog
Returns a new instance of AboutDialog.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/alexandria/ui/about_dialog.rb', line 27 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. = 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 |
Instance Method Details
#show ⇒ Object
44 45 46 |
# File 'lib/alexandria/ui/about_dialog.rb', line 44 def show @dialog.show end |