aboutsummaryrefslogtreecommitdiff
path: root/src/lua_interface.c
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-27 11:42:02 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-27 11:42:02 -0500
commitf131668edad1ed20a3ac095925b602836503c8e8 (patch)
tree55d06ef6e8258073e422e09de54d1c71577dc44f /src/lua_interface.c
parent3ff8a429000f8333e5a86209bedab0950f8ae7dd (diff)
downloadtextadept-f131668edad1ed20a3ac095925b602836503c8e8.tar.gz
textadept-f131668edad1ed20a3ac095925b602836503c8e8.zip
Changed cec_store from GtkTreeStore type to GtkListStore.
Diffstat (limited to 'src/lua_interface.c')
-rw-r--r--src/lua_interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua_interface.c b/src/lua_interface.c
index dc54488a..71c1f07e 100644
--- a/src/lua_interface.c
+++ b/src/lua_interface.c
@@ -830,12 +830,12 @@ void l_cec_populate() {
GtkTreeIter iter;
if (!lua_istable(lua, -1))
return warn("command_entry.get_completions_for return not a table.");
- gtk_tree_store_clear(cec_store);
+ gtk_list_store_clear(cec_store);
lua_pushnil(lua);
while (lua_next(lua, -2)) {
if (lua_type(lua, -1) == LUA_TSTRING) {
- gtk_tree_store_append(cec_store, &iter, NULL);
- gtk_tree_store_set(cec_store, &iter, 0, lua_tostring(lua, -1), -1);
+ gtk_list_store_append(cec_store, &iter);
+ gtk_list_store_set(cec_store, &iter, 0, lua_tostring(lua, -1), -1);
} else warn("command_entry.get_completions_for: string value expected.");
lua_pop(lua, 1); // value
}