Skip to content

Commit 0ba78fd

Browse files
threeverentzsch
authored andcommitted
Show the movie source as a tooltip.
Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
1 parent acf0b5a commit 0ba78fd

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

Plugin/Plugin.m

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,20 @@ - (id) initWithArguments:(NSDictionary *)arguments
6767
[self performSelector:@selector(_convertTypesForContainer) withObject:nil afterDelay:0];
6868
}
6969
}
70+
71+
NSDictionary *attributes = [arguments objectForKey:WebPlugInAttributesKey];
72+
if (arguments) {
73+
NSString *src = [attributes objectForKey:@"src"];
74+
if (src)
75+
[self setToolTip:src];
76+
else {
77+
src = [attributes objectForKey:@"data"];
78+
if (src)
79+
[self setToolTip:src];
80+
}
81+
}
7082
}
71-
83+
7284
return self;
7385
}
7486

0 commit comments

Comments
 (0)