Sha256: 56863cfa26b722b995fbe56842d4bf9ae5a3ad0444395fa494d6298c20733a99

Contents?: true

Size: 561 Bytes

Versions: 38

Compression:

Stored size: 561 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 'gtk3'

window = Gtk::Window.new
window.add(scale = Gtk::ScaleButton.new(Gtk::IconSize::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

38 entries across 38 versions & 1 rubygems

Version Path
gtk3-2.2.5-x64-mingw32 sample/misc/scalebutton.rb
gtk3-2.2.5-x86-mingw32 sample/misc/scalebutton.rb
gtk3-2.2.5 sample/misc/scalebutton.rb
gtk3-2.2.4-x64-mingw32 sample/misc/scalebutton.rb
gtk3-2.2.4-x86-mingw32 sample/misc/scalebutton.rb
gtk3-2.2.4 sample/misc/scalebutton.rb
gtk3-2.2.3-x86-mingw32 sample/misc/scalebutton.rb
gtk3-2.2.3 sample/misc/scalebutton.rb
gtk3-2.2.2-x86-mingw32 sample/misc/scalebutton.rb
gtk3-2.2.2 sample/misc/scalebutton.rb
gtk3-2.2.1-x86-mingw32 sample/misc/scalebutton.rb
gtk3-2.2.1 sample/misc/scalebutton.rb
gtk3-2.2.0-x86-mingw32 sample/misc/scalebutton.rb
gtk3-2.2.0 sample/misc/scalebutton.rb
gtk3-2.1.0-x86-mingw32 sample/misc/scalebutton.rb
gtk3-2.1.0 sample/misc/scalebutton.rb
gtk3-2.0.3-x86-mingw32 sample/misc/scalebutton.rb
gtk3-2.0.3 sample/misc/scalebutton.rb
gtk3-2.0.2-x86-mingw32 sample/misc/scalebutton.rb
gtk3-2.0.2 sample/misc/scalebutton.rb