Formatting
This commit is contained in:
parent
1f5cdbf129
commit
a6c3376694
|
@ -759,12 +759,15 @@ local function new(args)
|
||||||
args.app_name_font = default_value(args.app_name_font, beautiful.font)
|
args.app_name_font = default_value(args.app_name_font, beautiful.font)
|
||||||
|
|
||||||
local ret = gobject {}
|
local ret = gobject {}
|
||||||
ret._private = {}
|
|
||||||
ret._private.text = ""
|
|
||||||
|
|
||||||
gtable.crush(ret, app_launcher, true)
|
gtable.crush(ret, app_launcher, true)
|
||||||
gtable.crush(ret, args, 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 {
|
ret._private.search_timer = gtimer {
|
||||||
timeout = 0.05,
|
timeout = 0.05,
|
||||||
autostart = true,
|
autostart = true,
|
||||||
|
@ -774,6 +777,7 @@ local function new(args)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ret._private.prompt = prompt
|
ret._private.prompt = prompt
|
||||||
{
|
{
|
||||||
prompt = ret.prompt_label,
|
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
|
if ret.rubato and ret.rubato.x then
|
||||||
ret.rubato.x:subscribe(function(pos)
|
ret.rubato.x:subscribe(function(pos)
|
||||||
ret._private.widget.x = pos
|
ret._private.widget.x = pos
|
||||||
|
|
Loading…
Reference in New Issue