From dd4d0d5131f3cd079ec052a058c7f2ad19130348 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 28 Dec 2009 14:05:16 +0100 Subject: Adding textviewer, and doing a few minor tweaks. --- dalos-luafilter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dalos-luafilter.lua') diff --git a/dalos-luafilter.lua b/dalos-luafilter.lua index 9c87f93..297441e 100644 --- a/dalos-luafilter.lua +++ b/dalos-luafilter.lua @@ -120,7 +120,7 @@ end local bok = iup.button { title = "Ok", action = function () okay = true return iup.CLOSE end } local bimport = iup.button { title = "Import", action = function() self:load_template() return iup.CLOSE end } local bexport = iup.button { title = "Export", action = function() self:save_template(self:gen_template()) end } - local busetpl = iup.button { title = "Use Template", action = function() self:use_template() end } + local busetpl = iup.button { title = "Use Template", action = function() self:use_template(dalosp.luafilter.templates) end } local bcancel = iup.button { title = "Cancel", action = function () okay = false return iup.CLOSE end } local dlg = iup.dialog { iup.vbox { text, iup.hbox { bok, bimport, bexport, busetpl, iup.fill{}, bcancel, normalizesize = "Horizontal" } }, title = "Code for " .. self.name, size = "600x300" } local r = dlg:popup() -- cgit v1.2.3