mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Add list of druid instances, add global events: on_window_callback, on_layout_change and on_language_change
This commit is contained in:
@@ -51,10 +51,17 @@ local function init_swipe_control(self)
|
||||
end
|
||||
|
||||
|
||||
local function on_window_callback(self, event, data)
|
||||
druid.on_window_callback(event, data)
|
||||
end
|
||||
|
||||
|
||||
function init(self)
|
||||
druid.set_default_style(default_style)
|
||||
self.druid = druid.new(self)
|
||||
|
||||
window.set_listener(on_window_callback)
|
||||
|
||||
init_top_panel(self)
|
||||
init_swipe_control(self)
|
||||
self.page = 1
|
||||
|
Reference in New Issue
Block a user