Sha256: a81e134bff1c5ea778944dcc2ca8d35e4b88d6a5524b94bc067496d0d19aecab

Contents?: true

Size: 668 Bytes

Versions: 184

Compression:

Stored size: 668 Bytes

Contents

#!/usr/bin/env ruby
=begin
  scalebutton.rb - Very simple Gtk::ScaleButton example.

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

  $Id: scalebutton.rb,v 1.1 2007/07/12 14:04:54 ggc Exp $
=end

require 'gtk2'

if str = Gtk.check_version(2, 12, 0)
    puts "This sample requires GTK+ 2.12.0 or later"
    puts str
    exit
end

window = Gtk::Window.new
window.add(scale = Gtk::ScaleButton.new(Gtk::IconSize::BUTTON))
scale.set_icons(['gtk-goto-bottom', 'gtk-goto-top', 'gtk-execute'])
scale.signal_connect('value-changed') { |widget, value| puts "value changed: #{value}" }
window.show_all

Gtk.main

Version data entries

184 entries across 184 versions & 1 rubygems

Version Path
gtk2-3.4.3 sample/misc/scalebutton.rb
gtk2-3.4.2 sample/misc/scalebutton.rb
gtk2-3.4.1 sample/misc/scalebutton.rb
gtk2-3.4.0 sample/misc/scalebutton.rb
gtk2-3.3.9 sample/misc/scalebutton.rb
gtk2-3.3.8 sample/misc/scalebutton.rb
gtk2-3.3.7 sample/misc/scalebutton.rb
gtk2-3.3.6 sample/misc/scalebutton.rb
gtk2-3.3.5 sample/misc/scalebutton.rb
gtk2-3.3.4 sample/misc/scalebutton.rb
gtk2-3.3.3 sample/misc/scalebutton.rb
gtk2-3.3.2 sample/misc/scalebutton.rb
gtk2-3.3.1 sample/misc/scalebutton.rb
gtk2-3.3.0 sample/misc/scalebutton.rb
gtk2-3.2.9-x64-mingw32 sample/misc/scalebutton.rb
gtk2-3.2.9-x86-mingw32 sample/misc/scalebutton.rb
gtk2-3.2.9 sample/misc/scalebutton.rb
gtk2-3.2.8-x64-mingw32 sample/misc/scalebutton.rb
gtk2-3.2.8-x86-mingw32 sample/misc/scalebutton.rb
gtk2-3.2.8 sample/misc/scalebutton.rb