<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,7 @@
 if(AppInfo.OS.startsWith('WIN')){
 	Tombloo.Service.actions.register({
 		name : 'iTunes - EQ Toggle',
-		type : 'context',
+		type : 'menu',
 		check : function(){
 			var enabled = executeWSH(function(msg){
 				return WScript.CreateObject('iTunes.Application').EQEnabled;</diff>
      <filename>patches/action.iTunes.EQToggle.js</filename>
    </modified>
    <modified>
      <diff>@@ -362,13 +362,19 @@ connect(grobal, 'browser-load', function(e){
 		
 		forEach(Tombloo.Service.actions, function([name, action]){
 			// &#24460;&#26041;&#20114;&#25563;&#12398;&#12383;&#12417;type&#12364;&#23384;&#22312;&#12375;&#12394;&#12356;&#12418;&#12398;&#12418;&#21487;&#12392;&#12377;&#12427;
-			if(!action.type || /menu/.test(action.type))
-				appendMenuItem(menuMain, name);
+			if(action.type &amp;&amp; !/menu/.test(action.type))
+				return;
+			
+			if(action.check &amp;&amp; !action.check())
+				return;
+			
+			var elmItem = appendMenuItem(menuMain, action.name);
+			elmItem.action = action;
 		});
 	}, true);
 	
 	menuMain.addEventListener('command', function(e){
-		Tombloo.Service.actions[e.originalTarget.getAttribute('label')].execute();
+		e.target.action.execute(context);
 	}, true);
 });
 </diff>
      <filename>xpi/chrome/content/library/40_ui.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>02fc75c5eaaf44bbf0a4f2959aad21001ed93971</id>
    </parent>
  </parents>
  <author>
    <name>to</name>
    <email>ryutaro.kamitsu@gmail.com</email>
  </author>
  <url>http://github.com/to/tombloo/commit/e82829604bbbddab73a4d1a781c031a99d328ad8</url>
  <id>e82829604bbbddab73a4d1a781c031a99d328ad8</id>
  <committed-date>2009-05-31T10:29:17-07:00</committed-date>
  <authored-date>2009-05-31T10:29:17-07:00</authored-date>
  <message> * &#12513;&#12491;&#12517;&#12540;&#29983;&#25104;&#26178;&#12395;check&#12377;&#12427;&#12424;&#12358;&#12395;
 * iTunes&#12398;&#12452;&#12467;&#12521;&#12452;&#12470;&#12488;&#12464;&#12523;&#12450;&#12463;&#12471;&#12519;&#12531;&#12434;&#12467;&#12531;&#12486;&#12461;&#12473;&#12488;&#12363;&#12425;&#12513;&#12491;&#12517;&#12540;&#12408;&#31227;&#21205;(&#26997;&#31471;&#12395;&#12497;&#12501;&#12457;&#12540;&#12510;&#12531;&#12473;&#12364;&#24746;&#12356;&#12383;&#12417;)</message>
  <tree>f5a5dd522b130110b3c24b6d0f54be7d78f8bf5a</tree>
  <committer>
    <name>to</name>
    <email>ryutaro.kamitsu@gmail.com</email>
  </committer>
</commit>
