From 19a454d978507774c6d69e284ceb827c4ed6e1be Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 26 Jun 2008 17:53:38 +0200 Subject: [PATCH] awful: fix to use new widget API Signed-off-by: Julien Danjou --- lib/awful.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/awful.lua b/lib/awful.lua index b6b564608..c49d1cfb2 100644 --- a/lib/awful.lua +++ b/lib/awful.lua @@ -618,7 +618,7 @@ function P.prompt(args, textbox, exe_callback, completion_callback) if not textbox or not exe_callback then return end - textbox:set("text", prompt .. prompt_text_with_cursor(text, inv_col, cur_col, cur_pos)) + textbox:text_set(prompt .. prompt_text_with_cursor(text, inv_col, cur_col, cur_pos)) keygrabber.run( function (mod, key) local has_ctrl = false @@ -631,16 +631,16 @@ function P.prompt(args, textbox, exe_callback, completion_callback) -- Get out cases if has_ctrl then if key == "g" then - textbox:set("text", "") + textbox:text_set("") return false end else if key == "Return" then - textbox:set("text", "") + textbox:text_set( "") exe_callback(command) return false elseif key == "Escape" then - textbox:set("text", "") + textbox:text_set("") return false end end @@ -716,7 +716,7 @@ function P.prompt(args, textbox, exe_callback, completion_callback) end -- Update textbox - textbox:set("text", prompt .. prompt_text_with_cursor(command, inv_col, cur_col, cur_pos)) + textbox:text_set(prompt .. prompt_text_with_cursor(command, inv_col, cur_col, cur_pos)) return true end)