]> git.sesse.net Git - vlc/commitdiff
Lua: Extensions, fix position of buttons
authorJean-Philippe André <jpeg@videolan.org>
Sat, 20 Mar 2010 15:53:28 +0000 (16:53 +0100)
committerJean-Philippe André <jpeg@videolan.org>
Sat, 20 Mar 2010 15:55:44 +0000 (16:55 +0100)
Fix #3375

modules/misc/lua/libs/dialog.c

index ebb1a3e8d9bcffcf94f8382f4e351c4fc592f7b7..48a4bbaa7f6df8acba10622b32a3b57d88cdf8da 100644 (file)
@@ -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;