Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
67d36fd7
Commit
67d36fd7
authored
Feb 03, 2010
by
Jean-Philippe André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua dialogs: remove show() and hide()
Lua dialogs are deleted when closed, they can't be hidden or shown.
parent
93b62275
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
39 deletions
+1
-39
modules/misc/lua/extension.c
modules/misc/lua/extension.c
+1
-1
modules/misc/lua/libs/dialog.c
modules/misc/lua/libs/dialog.c
+0
-38
No files found.
modules/misc/lua/extension.c
View file @
67d36fd7
...
...
@@ -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
EXPERIMENTAL Lua Extension
module"
);
msg_Dbg
(
p_this
,
"Opening
Lua Extensions
module"
);
extensions_manager_t
*
p_mgr
=
(
extensions_manager_t
*
)
p_this
;
...
...
modules/misc/lua/libs/dialog.c
View file @
67d36fd7
...
...
@@ -50,8 +50,6 @@
/* 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
);
...
...
@@ -99,8 +97,6 @@ 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
},
...
...
@@ -288,40 +284,6 @@ 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