Sha256: 2360c308b44bc628a7dd2900736078409358544f00373307a2ca9ec2d2e84828
Contents?: true
Size: 567 Bytes
Versions: 38
Compression:
Stored size: 567 Bytes
Contents
#!/usr/bin/env ruby =begin loader.rb - Ruby/GdkPixbuf sample script. Copyright (c) 2003-2020: Ruby-GNOME Project Team This program is licenced under the same licence as Ruby-GNOME. $Id: loader.rb,v 1.3 2006/06/17 14:38:08 mutoh Exp $ =end require 'gtk3' loader = GdkPixbuf::PixbufLoader.new File.open(File.join(__dir__, "gnome-foot.png"), "rb") { |f| loader.last_write(f.read) } pixbuf = loader.pixbuf window = Gtk::Window.new window.signal_connect('delete-event') { Gtk.main_quit } window.add(Gtk::Image.new(pixbuf: pixbuf)) window.show_all Gtk.main
Version data entries
38 entries across 38 versions & 1 rubygems