Sha256: 679262916875cba74ba8e90c1b5ce9ade6050d5a4ea7e8c98af93d7f248b91eb

Contents?: true

Size: 522 Bytes

Versions: 151

Compression:

Stored size: 522 Bytes

Contents

=begin
  colorchooser.rb - Gtk::ColorChooserWidget sample script.

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

require "gtk3"

color_selection = Gtk::ColorChooserWidget.new
color_selection.use_alpha = true
color_selection.signal_connect "color-activated" do |widget, color|
  p color.to_s
end

window = Gtk::Window.new
window.border_width = 10
window.add(color_selection)
window.show_all
window.signal_connect("destroy") {Gtk.main_quit}

Gtk.main

Version data entries

151 entries across 143 versions & 2 rubygems

Version Path
savant-echo-0.1.4 bin/packaging/vendor/ruby/2.2.0/gems/gtk3-3.1.0/sample/misc/colorchooser.rb
savant-echo-0.1.4 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/gtk3-3.1.0/sample/misc/colorchooser.rb
savant-echo-0.1.3 bin/packaging/vendor/ruby/2.2.0/gems/gtk3-3.1.0/sample/misc/colorchooser.rb
savant-echo-0.1.3 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/gtk3-3.1.0/sample/misc/colorchooser.rb
gtk3-3.1.0-x64-mingw32 sample/misc/colorchooser.rb
gtk3-3.1.0-x86-mingw32 sample/misc/colorchooser.rb
gtk3-3.1.0 sample/misc/colorchooser.rb
gtk3-3.0.9-x64-mingw32 sample/misc/colorchooser.rb
gtk3-3.0.9-x86-mingw32 sample/misc/colorchooser.rb
gtk3-3.0.9 sample/misc/colorchooser.rb
gtk3-3.0.8-x86-mingw32 sample/misc/colorchooser.rb
gtk3-3.0.8-x64-mingw32 sample/misc/colorchooser.rb
gtk3-3.0.8 sample/misc/colorchooser.rb
gtk3-3.0.7-x86-mingw32 sample/misc/colorchooser.rb
gtk3-3.0.7-x64-mingw32 sample/misc/colorchooser.rb
gtk3-3.0.7 sample/misc/colorchooser.rb
gtk3-3.0.6-x86-mingw32 sample/misc/colorchooser.rb
gtk3-3.0.6-x64-mingw32 sample/misc/colorchooser.rb
gtk3-3.0.6 sample/misc/colorchooser.rb
gtk3-3.0.5-x64-mingw32 sample/misc/colorchooser.rb