Sha256: cb2b00bae8cf267479bfeb848ad9e8012ec2de487f07650f87c064d27e030ab8

Contents?: true

Size: 645 Bytes

Versions: 184

Compression:

Stored size: 645 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 'gtk2'

settings = Gtk::Settings.default

# You can save the palette to use right click on the palette.
Gtk::ColorSelection.set_change_palette_hook{|screen, colors|
  puts strs = Gtk::ColorSelection.palette_to_string(colors)
  settings.gtk_color_palette = strs
}

a = Gtk::ColorSelection.new
a.has_palette = true

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

Gtk.main

Version data entries

184 entries across 184 versions & 1 rubygems

Version Path
gtk2-3.1.4 sample/misc/colorselection.rb
gtk2-3.1.3-x64-mingw32 sample/misc/colorselection.rb
gtk2-3.1.3-x86-mingw32 sample/misc/colorselection.rb
gtk2-3.1.3 sample/misc/colorselection.rb
gtk2-3.1.2-x64-mingw32 sample/misc/colorselection.rb
gtk2-3.1.2-x86-mingw32 sample/misc/colorselection.rb
gtk2-3.1.2 sample/misc/colorselection.rb
gtk2-3.1.1-x64-mingw32 sample/misc/colorselection.rb
gtk2-3.1.1-x86-mingw32 sample/misc/colorselection.rb
gtk2-3.1.1 sample/misc/colorselection.rb
gtk2-3.1.0-x64-mingw32 sample/misc/colorselection.rb
gtk2-3.1.0-x86-mingw32 sample/misc/colorselection.rb
gtk2-3.1.0 sample/misc/colorselection.rb
gtk2-3.0.9-x64-mingw32 sample/misc/colorselection.rb
gtk2-3.0.9-x86-mingw32 sample/misc/colorselection.rb
gtk2-3.0.9 sample/misc/colorselection.rb
gtk2-3.0.8-x86-mingw32 sample/misc/colorselection.rb
gtk2-3.0.8-x64-mingw32 sample/misc/colorselection.rb
gtk2-3.0.8 sample/misc/colorselection.rb
gtk2-3.0.7-x86-mingw32 sample/misc/colorselection.rb