Commit 67d36fd7 authored by JPeg's avatar JPeg
Browse files

Lua dialogs: remove show() and hide()

Lua dialogs are deleted when closed, they can't be hidden or shown.
parent 93b62275
......@@ -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;
......
......@@ -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 )
......
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