author | francesco-ST <francesco.abbate@st.com> | 2010年08月12日 11:51:29 +0200 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2010年08月12日 11:51:29 +0200 |
commit | b55a4cf705a06ef2c9995da4d2784e8d5969ee3e (patch) | |
tree | cee3a5404dee2d8a74fb60c0d5daad1985f8b402 /agg-plot/lua-plot.cpp | |
parent | 9529186aacd0d02d6b609cec247ab6b4610fd342 (diff) | |
download | gsl-shell-b55a4cf705a06ef2c9995da4d2784e8d5969ee3e.tar.gz |
-rw-r--r-- | agg-plot/lua-plot.cpp | 6 |
diff --git a/agg-plot/lua-plot.cpp b/agg-plot/lua-plot.cpp index 5f780f88..ae046e38 100644 --- a/agg-plot/lua-plot.cpp +++ b/agg-plot/lua-plot.cpp @@ -25,7 +25,7 @@ extern "C" { #include "lua-plot.h" #include "lua-plot-cpp.h" -#include "window-refs.h" +#include "object-index.h" #include "window.h" #include "gs-types.h" #include "lua-utils.h" @@ -94,7 +94,7 @@ lua_plot::check(lua_State *L, int index) void lua_plot::update_window(lua_State *L) { - window_ref_get (L, this->id); + object_index_get (L, OBJECT_WINDOW, this->window_id); if (gs_is_userdata (L, lua_gettop (L), GS_WINDOW)) { @@ -120,6 +120,8 @@ plot_new (lua_State *L) p->self().set_title(title); } + p->id = object_index_add (L, OBJECT_PLOT, -1); + return 1; } |