Sha256: bca20af1d8f265ccc038618daff8cbf23c42aab814508df1786819b4b73fcea8

Contents?: true

Size: 1.15 KB

Versions: 13

Compression:

Stored size: 1.15 KB

Contents

#!/usr/bin/env ruby
=begin
  aboutdialog.rb - Ruby/GTK sample script.

  Copyright (c) 2005-2015 Ruby-GNOME2 Project Team
  This program is licenced under the same licence as Ruby-GNOME2.
=end
require "gtk3"

unless Gtk::Version.or_later?(3, 4, 2)
  puts "This sample requires GTK+ 3.4.2 or later: #{Gtk::Version::STRING}"
  exit
end

a = Gtk::AboutDialog.new
a.artists   = ["Artist 1 <no1@foo.bar.com>", "Artist 2 <no2@foo.bar.com>"]
a.authors = ["Author 1 <no1@foo.bar.com>", "Author 2 <no2@foo.bar.com>"]
a.comments  = "This is a sample script for Gtk::AboutDialog"
a.copyright = "Copyright (C) 2005 Ruby-GNOME2 Project"
a.documenters = ["Documenter 1 <no1@foo.bar.com>", "Documenter 2 <no2@foo.bar.com>"]
a.license   = "This program is licenced under the same licence as Ruby-GNOME2."
a.logo = GdkPixbuf::Pixbuf.new(:file => File.join(__dir__, "gnome-logo-icon.png"))
a.program_name = "Gtk::AboutDialog sample"
a.translator_credits = "Translator 1\nTranslator 2\n"
a.version   = "1.0.0"
a.website   = "https://ruby-gnome2.osdn.jp"
a.website_label = "Ruby-GNOME2 Project Website"

a.signal_connect("activate-link") do |about_dialog, uri|
  p widget.class
  p uri
end

p a.run

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gtk3-3.3.0 sample/misc/aboutdialog.rb
gtk3-3.2.9-x64-mingw32 sample/misc/aboutdialog.rb
gtk3-3.2.9-x86-mingw32 sample/misc/aboutdialog.rb
gtk3-3.2.9 sample/misc/aboutdialog.rb
gtk3-3.2.8-x64-mingw32 sample/misc/aboutdialog.rb
gtk3-3.2.8-x86-mingw32 sample/misc/aboutdialog.rb
gtk3-3.2.8 sample/misc/aboutdialog.rb
gtk3-3.2.7-x86-mingw32 sample/misc/aboutdialog.rb
gtk3-3.2.7-x64-mingw32 sample/misc/aboutdialog.rb
gtk3-3.2.7 sample/misc/aboutdialog.rb
gtk3-3.2.6-x64-mingw32 sample/misc/aboutdialog.rb
gtk3-3.2.6-x86-mingw32 sample/misc/aboutdialog.rb
gtk3-3.2.6 sample/misc/aboutdialog.rb