Sha256: 9c090da388983721cdfe89423b051ee25b3cad515627b971adf8ec12807ea6da

Contents?: true

Size: 489 Bytes

Versions: 12

Compression:

Stored size: 489 Bytes

Contents

=begin
  colorselection.rb - Gtk::ColorSelection sample script.

  Copyright (C) 2005,2006  Masao Mutoh
  This program is licenced under the same licence as Ruby-GNOME2.

  $Id: colorselection.rb,v 1.3 2006/06/17 13:18:12 mutoh Exp $
=end

require "gtk3"

a = Gtk::ColorSelection.new
a.has_palette = true
a.signal_connect("color_changed") do |w|
  unless w.adjusting?
    p w.current_rgba.to_s
  end
end

Gtk::Window.new.add(a).show_all.signal_connect("destroy") {Gtk.main_quit}

Gtk.main

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gtk3-2.2.5-x64-mingw32 sample/misc/colorselection.rb
gtk3-2.2.5-x86-mingw32 sample/misc/colorselection.rb
gtk3-2.2.5 sample/misc/colorselection.rb
gtk3-2.2.4-x64-mingw32 sample/misc/colorselection.rb
gtk3-2.2.4-x86-mingw32 sample/misc/colorselection.rb
gtk3-2.2.4 sample/misc/colorselection.rb
gtk3-2.2.3-x86-mingw32 sample/misc/colorselection.rb
gtk3-2.2.3 sample/misc/colorselection.rb
gtk3-2.2.2-x86-mingw32 sample/misc/colorselection.rb
gtk3-2.2.2 sample/misc/colorselection.rb
gtk3-2.2.1-x86-mingw32 sample/misc/colorselection.rb
gtk3-2.2.1 sample/misc/colorselection.rb