From 9649f04314021ef52888e385c30e6e34b5190330 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Thu, 23 Jun 2016 00:02:30 -0400 Subject: [PATCH] Fix the fkey widget --- widgets/fkey.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/widgets/fkey.lua b/widgets/fkey.lua index 0d75497..2ff04e6 100644 --- a/widgets/fkey.lua +++ b/widgets/fkey.lua @@ -27,7 +27,7 @@ local function new(data,item) pref.draw = function(self, context, cr, width, height) local padding = height/4 local key = item._internal.f_key - if not keys[height] then + if not keys[height] then pref:emit_signal("widget::updated") create_pango(height) keys[height] = {} @@ -56,6 +56,12 @@ local function new(data,item) cr:paint() end pref.fit = function(self,context,width,height) + if not keys[height] then + pref:emit_signal("widget::updated") + create_pango(height) + keys[height] = {} + end + return max_width,data.item_height end pref:set_markup("F11")