[vlc-commits] commit: Lua: Extensions, fix position of buttons ( Jean-Philippe André )

git at videolan.org git at videolan.org
Sat Mar 20 16:56:41 CET 2010


vlc | branch: master | Jean-Philippe André <jpeg at videolan.org> | Sat Mar 20 16:53:28 2010 +0100| [83ab54255b2ae6883d0d839bd8fb75c20471c1fc] | committer: Jean-Philippe André 

Lua: Extensions, fix position of buttons

Fix #3375

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=83ab54255b2ae6883d0d839bd8fb75c20471c1fc
---

 modules/misc/lua/libs/dialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/misc/lua/libs/dialog.c b/modules/misc/lua/libs/dialog.c
index ebb1a3e..48a4bba 100644
--- a/modules/misc/lua/libs/dialog.c
+++ b/modules/misc/lua/libs/dialog.c
@@ -394,9 +394,9 @@ static int vlclua_dialog_add_button( lua_State *L )
     extension_widget_t *p_widget = calloc( 1, sizeof( extension_widget_t ) );
     p_widget->type = EXTENSION_WIDGET_BUTTON;
     p_widget->psz_text = strdup( luaL_checkstring( L, 2 ) );
-    lua_settop( L, 3 );
+    lua_settop( L, 10 );
     lua_pushlightuserdata( L, p_widget );
-    lua_insert( L, 3 );
+    lua_insert( L, 10 );
     lua_settable( L, LUA_REGISTRYINDEX );
     p_widget->p_sys = NULL;
 



More information about the vlc-commits mailing list