Sha256: e1177c95d6b879c75afc7823ddd67d334ed32c3dce77cb67231d302f9d0841d3

Contents?: true

Size: 272 Bytes

Versions: 101

Compression:

Stored size: 272 Bytes

Contents

#!/usr/bin/jruby

require "knj/autoload"

pixbuf = Gdk::Pixbuf.new("test_trayicon.png")

icon = Gtk::StatusIcon.new
icon.pixbuf = pixbuf

icon.signal_connect("activate") do
  print "Activate\n"
end

icon.signal_connect("popup-menu") do
  print "Popup-menu\n"
end

Gtk.main

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
knjrbfw-0.0.94 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.93 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.92 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.91 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.90 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.89 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.88 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.87 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.86 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.85 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.84 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.83 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.82 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.81 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.80 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.79 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.78 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.77 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.75 lib/knj/jruby-gtk2/tests/test_trayicon.rb
knjrbfw-0.0.74 lib/knj/jruby-gtk2/tests/test_trayicon.rb