Verified API 4.0.0 compatibility and made the necessary changes

This commit is contained in:
Bill Ferguson
2016-11-07 22:53:52 -05:00
parent 85ccc663c8
commit 93e30a8542
26 changed files with 29 additions and 26 deletions

View File

@@ -53,7 +53,7 @@ LUA ERROR Hallo Welt!
]]
local dt = require "darktable"
dt.configuration.check_version(...,{3,0,0})
dt.configuration.check_version(...,{3,0,0},{4,0,0})
-- Not translated Text
dt.print_error("Hello World!")

View File

@@ -27,7 +27,7 @@ USAGE
]]
local dt = require "darktable"
dt.configuration.check_version(...,{2,0,0},{3,0,0})
dt.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0})
dt.print("hello, world")

View File

@@ -32,7 +32,7 @@ https://www.darktable.org/lua-api/index.html.php#darktable_new_widget
local dt = require "darktable"
dt.configuration.check_version(...,{3,0,0})
dt.configuration.check_version(...,{3,0,0},{4,0,0})
-- add a new lib
local check_button = dt.new_widget("check_button"){label = "MyCheck_button", value = true}

View File

@@ -22,7 +22,7 @@ USAGE
* require this script from your main lua file
]]
local dt = require "darktable"
dt.configuration.check_version(...,{2,0,1},{3,0,0})
dt.configuration.check_version(...,{2,0,1},{3,0,0},{4,0,0})
dt.preferences.register("preferenceExamples", -- script: This is a string used to avoid name collision in preferences (i.e namespace). Set it to something unique, usually the name of the script handling the preference.
"preferenceExamplesString", -- name