Commit 03a19fdb authored by Anthony Loiseau's avatar Anthony Loiseau Committed by Jean-Paul Saman

Mozilla-plugin linux toolbar can be hidden by adding show_toolbar="no" to the

'embed' HTML node that import VLC mozplug. Default to visible.
Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent ac9747bb
......@@ -44,6 +44,7 @@ VlcPlugin::VlcPlugin( NPP instance, uint16 mode ) :
i_npmode(mode),
b_stream(0),
b_autoplay(1),
b_show_toolbar(1),
#if XP_UNIX
i_control_height(45),
#endif
......@@ -166,8 +167,14 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
{
progid = argv[i];
}
else if( !strcmp( argn[i], "show_toolbar" ) )
{
b_show_toolbar = boolValue(argv[i]);
}
}
libvlc_instance = libvlc_new(ppsz_argc, ppsz_argv, NULL);
if( ! libvlc_instance )
{
......
......@@ -118,6 +118,7 @@ public:
/* plugin properties */
int b_stream;
int b_autoplay;
int b_show_toolbar;
char * psz_target;
#if XP_UNIX
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment