Sha256: 71c6c9e10b4c2de301db084ecf169d3b2dfa687193488ce68949ad28e72e3674
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
#!/usr/bin/env ruby =begin update.rb Luca Russo <vargolo@gmail.com> Copyright (LGPL) 2006 - 2010 ruby-libnotify update example =end begin require 'RNotify' rescue LoadError require 'rubygems' require 'RNotify' end Notify.init("Test2") test = Notify::Notification.new("Test 2", "This is a test", nil, nil) test.timeout= Notify::Notification::EXPIRES_NEVER test.show sleep(3) test.update("Test 2", "Message replaced!", nil) test.timeout=5000 #5 seconds test.show sleep(6) test.close Notify.uninit
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-libnotify-0.4.1 | examples/update.rb |