From a6c337669482e72fd04ff4feae06cd6090fb55a6 Mon Sep 17 00:00:00 2001 From: Ksaper Date: Sun, 19 Feb 2023 17:47:54 +0200 Subject: [PATCH] Formatting --- widget/app_launcher/init.lua | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/widget/app_launcher/init.lua b/widget/app_launcher/init.lua index 5184598..469e2e4 100644 --- a/widget/app_launcher/init.lua +++ b/widget/app_launcher/init.lua @@ -759,12 +759,15 @@ local function new(args) args.app_name_font = default_value(args.app_name_font, beautiful.font) local ret = gobject {} - ret._private = {} - ret._private.text = "" - gtable.crush(ret, app_launcher, true) gtable.crush(ret, args, true) + ret._private = {} + ret._private.text = "" + ret._private.max_apps_per_page = ret.apps_per_column * ret.apps_per_row + ret._private.apps_per_page = ret._private.max_apps_per_page + ret._private.pages_count = 0 + ret._private.current_page = 1 ret._private.search_timer = gtimer { timeout = 0.05, autostart = true, @@ -774,6 +777,7 @@ local function new(args) end } + ret._private.prompt = prompt { prompt = ret.prompt_label, @@ -873,12 +877,6 @@ local function new(args) } } - -- Private variables to be used to be used by the scrolling and searching functions - ret._private.max_apps_per_page = ret.apps_per_column * ret.apps_per_row - ret._private.apps_per_page = ret._private.max_apps_per_page - ret._private.pages_count = 0 - ret._private.current_page = 1 - if ret.rubato and ret.rubato.x then ret.rubato.x:subscribe(function(pos) ret._private.widget.x = pos