Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
magic-lantern
magic-lantern
Commits
8dc4e8dc7a02
Commit
9c16c6cd
authored
Jan 25, 2017
by
alex@thinkpad
Browse files
lua_lv: lvinfo items default to any info bar
--HG-- branch : lua_fix
parent
d433e6bc01cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/lua/lua_lv.c
View file @
8dc4e8dc
...
...
@@ -208,7 +208,7 @@ static int luaCB_lv_info(lua_State * L)
item
->
value
=
LUA_FIELD_STRING
(
"value"
,
"unknown"
);
item
->
priority
=
LUA_FIELD_INT
(
"priority"
,
0
);
item
->
preferred_position
=
LUA_FIELD_INT
(
"preferred_position"
,
0
);
item
->
which_bar
=
LUA_FIELD_INT
(
"which_bar"
,
0
);
item
->
which_bar
=
LUA_FIELD_INT
(
"which_bar"
,
LV_WHEREVER_IT_FITS
);
entry
->
custom_drawing
=
LUA_FIELD_BOOL
(
"custom_drawing"
,
0
);
if
(
lua_getfield
(
L
,
-
1
,
"update"
)
==
LUA_TFUNCTION
)
...
...
@@ -276,7 +276,7 @@ static int luaCB_lvinfo_index(lua_State * L)
/// Get/Set the which bar the item appears on (see enum lvinfo_bar in lvinfo.h).
///
/// TODO: constants.
// @tfield[opt=
top
] int bar
// @tfield[opt=
anywhere
] int bar
else
if
(
!
strcmp
(
key
,
"bar"
))
lua_pushinteger
(
L
,
item
->
which_bar
);
/// Get/Set the item width; default: measured from value and fontspec.
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment