[macruby-changes] [630] MacRuby/trunk/sample-macruby/Scripts/growl/hotcocoa_growl.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 26 18:06:35 PDT 2008
Revision: 630
http://trac.macosforge.org/projects/ruby/changeset/630
Author: psychs at limechat.net
Date: 2008-09-26 18:06:35 -0700 (Fri, 26 Sep 2008)
Log Message:
-----------
use constant
Modified Paths:
--------------
MacRuby/trunk/sample-macruby/Scripts/growl/hotcocoa_growl.rb
Modified: MacRuby/trunk/sample-macruby/Scripts/growl/hotcocoa_growl.rb
===================================================================
--- MacRuby/trunk/sample-macruby/Scripts/growl/hotcocoa_growl.rb 2008-09-27 00:59:52 UTC (rev 629)
+++ MacRuby/trunk/sample-macruby/Scripts/growl/hotcocoa_growl.rb 2008-09-27 01:06:35 UTC (rev 630)
@@ -6,7 +6,7 @@
GROWL_IS_READY = 'Lend Me Some Sugar; I Am Your Neighbor!'
GROWL_NOTIFICATION_CLICKED = 'GrowlClicked!'
GROWL_NOTIFICATION_TIMED_OUT = 'GrowlTimedOut!'
- GROWL_KEY_CLICKED_CONTEXT = 'ClickedContext'
+ GROWL_CLICKED_CONTEXT_KEY = 'ClickedContext'
PRIORITIES = {
:emergency => 2,
@@ -56,12 +56,12 @@
on_notification(:distributed => true, :named => "#{@app_name}-#{pid}-#{GROWL_NOTIFICATION_CLICKED}") do |n|
puts '@@@ on clicked'
- puts n.userInfo[:ClickedContext][:user_click_context]
+ puts n.userInfo[GROWL_CLICKED_CONTEXT_KEY][:user_click_context]
end
on_notification(:distributed => true, :named => "#{@app_name}-#{pid}-#{GROWL_NOTIFICATION_TIMED_OUT}") do |n|
puts '@@@ on timed out'
- puts n.userInfo[:ClickedContext][:user_click_context]
+ puts n.userInfo[GROWL_CLICKED_CONTEXT_KEY][:user_click_context]
end
dic = {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080926/a58dc7d5/attachment.html
More information about the macruby-changes
mailing list