Sha256: 8a4b3d871bc1027d3fcd0f02d579026edd154bb69b288cc4de4968f7a2ac8e83

Contents?: true

Size: 567 Bytes

Versions: 61

Compression:

Stored size: 567 Bytes

Contents

#!/usr/bin/env ruby
# hello_glade2.rb - sample for Ruby/Libglade2
#
# Copyright (C) 2004-2008 Masao Mutoh
# This file is distributed under the same license as gettext.

require 'rubygems'
require 'libglade2'

class HelloLibglade2
  def initialize(path, appname)
    @glade = GladeXML.new(path, nil, appname, "locale") {|handler| method(handler)}
  end
  def on_quit
    puts "Hello world"
    Gtk.main_quit
  end
end

if __FILE__ == $0
  APPNAME = "hello_glade2"
  Gnome::Program.new(APPNAME, "1.0")
  HelloLibglade2.new("hello_glade2.glade", APPNAME)
  Gtk.main
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
gettext-3.1.0 samples/hello_glade2.rb
gettext-3.0.9 samples/hello_glade2.rb
gettext-3.0.8 samples/hello_glade2.rb
gettext-3.0.7 samples/hello_glade2.rb
gettext-3.0.6 samples/hello_glade2.rb
gettext-3.0.5 samples/hello_glade2.rb
gettext-3.0.4 samples/hello_glade2.rb
gettext-3.0.3 samples/hello_glade2.rb
gettext-3.0.2 samples/hello_glade2.rb
gettext-3.0.1 samples/hello_glade2.rb
gettext-3.0.0 samples/hello_glade2.rb
gettext-2.3.9 samples/hello_glade2.rb
gettext-2.3.8 samples/hello_glade2.rb
gettext-2.3.7 samples/hello_glade2.rb
gettext-2.3.6 samples/hello_glade2.rb
gettext-2.3.5 samples/hello_glade2.rb
gettext-2.3.4 samples/hello_glade2.rb
gettext-2.3.3 samples/hello_glade2.rb
gettext-2.3.2 samples/hello_glade2.rb
gettext-2.3.1 samples/hello_glade2.rb