Sha256: 7d240983053af52c32ed9944f73da0204e8f3acbbd8cdda1fed23fa2fc0bd64e
Contents?: true
Size: 653 Bytes
Versions: 1
Compression:
Stored size: 653 Bytes
Contents
#!/usr/bin/env ruby =begin geometry-hints.rb Luca Russo <vargolo@gmail.com> Copyright (LGPL) 2006 - 2010 ruby-libnotify geometry-hints example =end begin require 'RNotify' rescue LoadError require 'rubygems' require 'RNotify' end Gtk.init Notify.init("Test10") screen = Gdk::Screen.default test = Notify::Notification.new("Test10", "This notification point to 150,100", nil, nil) test.geometry_hints(screen, 150, 100) test.timeout= Notify::Notification::EXPIRES_NEVER test.add_action("Action", "Click Me!") { Gtk.main_quit } test.signal_connect("closed") { Gtk.main_quit } test.show Gtk.main test.clear_actions test.close Notify.uninit
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-libnotify-0.4.1 | examples/geometry-hints.rb |