Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Show the movie source as a tooltip.

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information...
commit 0ba78fdd99c914dd54f7734d72adf1ead5dac9ff 1 parent acf0b5a
@threeve threeve authored committed
Showing with 13 additions and 1 deletion.
  1. +13 −1 Plugin/Plugin.m
View
14 Plugin/Plugin.m
@@ -67,8 +67,20 @@ - (id) initWithArguments:(NSDictionary *)arguments
[self performSelector:@selector(_convertTypesForContainer) withObject:nil afterDelay:0];
}
}
+
+ NSDictionary *attributes = [arguments objectForKey:WebPlugInAttributesKey];
+ if (arguments) {
+ NSString *src = [attributes objectForKey:@"src"];
+ if (src)
+ [self setToolTip:src];
+ else {
+ src = [attributes objectForKey:@"data"];
+ if (src)
+ [self setToolTip:src];
+ }
+ }
}
-
+
return self;
}

2 comments on commit 0ba78fd

@correia
if (arguments)
tests the wrong variable. It should read
if (attributes != nil)
@threeve

Thanks for catching that! Looks like a patch has already been applied.

Please sign in to comment.
Something went wrong with that request. Please try again.