Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
6db77427
Commit
6db77427
authored
Feb 04, 2010
by
Jean-Philippe André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Lua dialogs: remove show() and hide()"
This reverts commit
67d36fd7
.
parent
73d52311
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletion
+39
-1
modules/misc/lua/extension.c
modules/misc/lua/extension.c
+1
-1
modules/misc/lua/libs/dialog.c
modules/misc/lua/libs/dialog.c
+38
-0
No files found.
modules/misc/lua/extension.c
View file @
6db77427
...
...
@@ -83,7 +83,7 @@ static void inputItemMetaChanged( const vlc_event_t *p_event,
**/
int
Open_Extension
(
vlc_object_t
*
p_this
)
{
msg_Dbg
(
p_this
,
"Opening
Lua Extensions
module"
);
msg_Dbg
(
p_this
,
"Opening
EXPERIMENTAL Lua Extension
module"
);
extensions_manager_t
*
p_mgr
=
(
extensions_manager_t
*
)
p_this
;
...
...
modules/misc/lua/libs/dialog.c
View file @
6db77427
...
...
@@ -50,6 +50,8 @@
/* Dialog functions */
static
int
vlclua_dialog_create
(
lua_State
*
L
);
static
int
vlclua_dialog_delete
(
lua_State
*
L
);
static
int
vlclua_dialog_show
(
lua_State
*
L
);
static
int
vlclua_dialog_hide
(
lua_State
*
L
);
static
int
vlclua_dialog_flush
(
lua_State
*
L
);
static
void
lua_SetDialogUpdate
(
lua_State
*
L
,
int
flag
);
static
int
lua_GetDialogUpdate
(
lua_State
*
L
);
...
...
@@ -97,6 +99,8 @@ static int DeleteWidget( extension_dialog_t *p_dialog,
extension_widget_t
*
p_widget
);
static
const
luaL_Reg
vlclua_dialog_reg
[]
=
{
{
"show"
,
vlclua_dialog_show
},
{
"hide"
,
vlclua_dialog_hide
},
{
"close"
,
vlclua_dialog_delete
},
{
"flush"
,
vlclua_dialog_flush
},
...
...
@@ -284,6 +288,40 @@ static int vlclua_dialog_delete( lua_State *L )
return
1
;
}
/** Show the dialog */
static
int
vlclua_dialog_show
(
lua_State
*
L
)
{
vlc_object_t
*
p_mgr
=
vlclua_get_this
(
L
);
extension_dialog_t
**
pp_dlg
=
(
extension_dialog_t
**
)
luaL_checkudata
(
L
,
1
,
"dialog"
);
if
(
!
pp_dlg
||
!*
pp_dlg
)
return
luaL_error
(
L
,
"Can't get pointer to dialog"
);
extension_dialog_t
*
p_dlg
=
*
pp_dlg
;
p_dlg
->
b_hide
=
false
;
lua_SetDialogUpdate
(
L
,
1
);
return
1
;
}
/** Hide the dialog */
static
int
vlclua_dialog_hide
(
lua_State
*
L
)
{
vlc_object_t
*
p_mgr
=
vlclua_get_this
(
L
);
extension_dialog_t
**
pp_dlg
=
(
extension_dialog_t
**
)
luaL_checkudata
(
L
,
1
,
"dialog"
);
if
(
!
pp_dlg
||
!*
pp_dlg
)
return
luaL_error
(
L
,
"Can't get pointer to dialog"
);
extension_dialog_t
*
p_dlg
=
*
pp_dlg
;
p_dlg
->
b_hide
=
true
;
lua_SetDialogUpdate
(
L
,
1
);
return
1
;
}
/** Flush the dialog */
static
int
vlclua_dialog_flush
(
lua_State
*
L
)
...
...
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