diff --git a/contrib/autostyle.lua b/contrib/autostyle.lua index 9d026ab..17f27c3 100644 --- a/contrib/autostyle.lua +++ b/contrib/autostyle.lua @@ -41,7 +41,7 @@ local darktable = require "darktable" local autostyle_apply_one_image,autostyle_apply_one_image_event,autostyle_apply,exiftool_attribute,capture -- Tested it with darktable 1.6.1 and darktable git from 2014-01-25 -darktable.configuration.check_version(...,{2,0,2},{2,1,0},{3,0,0}) +darktable.configuration.check_version(...,{2,0,2},{2,1,0},{3,0,0},{4,0,0}) -- Receive the event triggered function autostyle_apply_one_image_event(event,image) diff --git a/contrib/clear_GPS.lua b/contrib/clear_GPS.lua index b52900c..0f2deda 100644 --- a/contrib/clear_GPS.lua +++ b/contrib/clear_GPS.lua @@ -42,7 +42,7 @@ local gettext = dt.gettext -- not a number local NaN = 0/0 -dt.configuration.check_version(...,{3,0,0}) +dt.configuration.check_version(...,{3,0,0},{4,0,0}) -- Tell gettext where to find the .mo file translating messages for a particular domain diff --git a/contrib/cr2hdr.lua b/contrib/cr2hdr.lua index 9b21e3c..3d14fb1 100644 --- a/contrib/cr2hdr.lua +++ b/contrib/cr2hdr.lua @@ -35,7 +35,7 @@ USAGE local darktable = require "darktable" -- Tested with darktable 2.0.1 -darktable.configuration.check_version(...,{2,0,0},{3,0,0}) +darktable.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0}) local queue = {} local processed_files = {} diff --git a/contrib/geoJSON_export.lua b/contrib/geoJSON_export.lua index 3da6c0c..7a36772 100644 --- a/contrib/geoJSON_export.lua +++ b/contrib/geoJSON_export.lua @@ -36,7 +36,7 @@ local dt = require "darktable" require "official/yield" local gettext = dt.gettext -dt.configuration.check_version(...,{3,0,0}) +dt.configuration.check_version(...,{3,0,0},{4,0,0}) -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("geoJSON_export",dt.configuration.config_dir.."/lua/") diff --git a/contrib/geo_uri.lua b/contrib/geo_uri.lua index 6174a12..8989419 100644 --- a/contrib/geo_uri.lua +++ b/contrib/geo_uri.lua @@ -30,7 +30,7 @@ local dt = require "darktable" require "official/yield" local gettext = dt.gettext -dt.configuration.check_version(...,{3,0,0}) +dt.configuration.check_version(...,{3,0,0},{4,0,0}) -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("geo_uri",dt.configuration.config_dir.."/lua/") diff --git a/contrib/gimp.lua b/contrib/gimp.lua index 098e099..1d2c29b 100644 --- a/contrib/gimp.lua +++ b/contrib/gimp.lua @@ -68,7 +68,7 @@ require "official/yield" local gettext = dt.gettext -dt.configuration.check_version(...,{3,0,0}) +dt.configuration.check_version(...,{3,0,0},{4,0,0}) -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("gimp",dt.configuration.config_dir.."/lua/") diff --git a/contrib/gps_select.lua b/contrib/gps_select.lua index b1c47ca..c5987ea 100644 --- a/contrib/gps_select.lua +++ b/contrib/gps_select.lua @@ -25,7 +25,7 @@ USAGE local dt = require "darktable" local gettext = dt.gettext -dt.configuration.check_version(...,{2,0,1},{3,0,0}) +dt.configuration.check_version(...,{2,0,1},{3,0,0},{4,0,0}) -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("gps_select",dt.configuration.config_dir.."/lua/") diff --git a/contrib/hugin.lua b/contrib/hugin.lua index cecf481..6588e00 100644 --- a/contrib/hugin.lua +++ b/contrib/hugin.lua @@ -39,7 +39,7 @@ require "official/yield" local gettext = dt.gettext -- works with darktable API version 2.0.0 and 3.0.0 -dt.configuration.check_version(...,{2,0,0},{3,0,0}) +dt.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0}) -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("hugin",dt.configuration.config_dir.."/lua/") diff --git a/contrib/kml_export.lua b/contrib/kml_export.lua index e6c7861..516c661 100644 --- a/contrib/kml_export.lua +++ b/contrib/kml_export.lua @@ -40,7 +40,7 @@ local dt = require "darktable" require "official/yield" local gettext = dt.gettext -dt.configuration.check_version(...,{3,0,0}) +dt.configuration.check_version(...,{3,0,0},{4,0,0}) -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("kml_export",dt.configuration.config_dir.."/lua/") diff --git a/contrib/rate_group.lua b/contrib/rate_group.lua index b6b7a75..253443f 100644 --- a/contrib/rate_group.lua +++ b/contrib/rate_group.lua @@ -40,6 +40,9 @@ local dt = require "darktable" +-- added version check +dt.configuration.check_version(...,{3,0,0},{4,0,0}) + local function apply_rating(rating) local images = dt.gui.action_images for _, i in ipairs(images) do @@ -81,4 +84,4 @@ end, "Rate group 4") dt.register_event("shortcut",function(event, shortcut) apply_rating(5) -end, "Rate group 5") \ No newline at end of file +end, "Rate group 5") diff --git a/contrib/slideshowMusic.lua b/contrib/slideshowMusic.lua index 7a69c20..833fca6 100644 --- a/contrib/slideshowMusic.lua +++ b/contrib/slideshowMusic.lua @@ -28,7 +28,7 @@ local dt = require "darktable" require "official/yield" local gettext = dt.gettext -dt.configuration.check_version(...,{2,0,2},{3,0,0}) +dt.configuration.check_version(...,{2,0,2},{3,0,0},{4,0,0}) -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("slideshowMusic",dt.configuration.config_dir.."/lua/") diff --git a/contrib/video_mencoder.lua b/contrib/video_mencoder.lua index 5cf6d17..db095b5 100644 --- a/contrib/video_mencoder.lua +++ b/contrib/video_mencoder.lua @@ -33,7 +33,7 @@ USAGE local dt = require "darktable" require "official/yield" -dt.configuration.check_version(...,{2,0,1}) +dt.configuration.check_version(...,{2,0,1},{3,0,0},{4,0,0}) local function show_status(storage, image, format, filename, number, total, high_quality, extra_data) dt.print("Export Image "..tostring(number).."/"..tostring(total)) diff --git a/examples/gettextExample.lua b/examples/gettextExample.lua index 6207333..f42dcfe 100644 --- a/examples/gettextExample.lua +++ b/examples/gettextExample.lua @@ -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!") diff --git a/examples/hello_world.lua b/examples/hello_world.lua index c2997ac..239ab33 100644 --- a/examples/hello_world.lua +++ b/examples/hello_world.lua @@ -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") diff --git a/examples/moduleExample.lua b/examples/moduleExample.lua index 91a34f0..e6423ac 100644 --- a/examples/moduleExample.lua +++ b/examples/moduleExample.lua @@ -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} diff --git a/examples/preferenceExamples.lua b/examples/preferenceExamples.lua index 9317aab..b7ebeeb 100644 --- a/examples/preferenceExamples.lua +++ b/examples/preferenceExamples.lua @@ -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 diff --git a/lib/dtutils.lua b/lib/dtutils.lua index 5b5986a..2ef25fc 100644 --- a/lib/dtutils.lua +++ b/lib/dtutils.lua @@ -32,7 +32,7 @@ local dt = require "darktable" local log = require "lib/dtutils.log" -dt.configuration.check_version(...,{3,0,0}) +dt.configuration.check_version(...,{3,0,0},{4,0,0}) dtutils.libdoc.functions["split"] = { Name = [[split]], diff --git a/lib/dtutils/file.lua b/lib/dtutils/file.lua index fd20e46..a3d3949 100644 --- a/lib/dtutils/file.lua +++ b/lib/dtutils/file.lua @@ -23,7 +23,7 @@ dtutils_file.libdoc = { local gettext = dt.gettext -dt.configuration.check_version(...,{3,0,0}) +dt.configuration.check_version(...,{3,0,0},{4,0,0}) -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("dtutils.file",dt.configuration.config_dir.."/lua/locale/") diff --git a/official/check_for_updates.lua b/official/check_for_updates.lua index d102e73..c2d925f 100644 --- a/official/check_for_updates.lua +++ b/official/check_for_updates.lua @@ -31,7 +31,7 @@ local dt = require "darktable" local https = require "ssl.https" local cjson = require "cjson" -dt.configuration.check_version(...,{2,0,0},{3,0,0}) +dt.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0}) -- compare two version strings of the form "major.minor.patch" -- returns -1, 0, 1 if the first version is smaller, equal, greater than the second version, diff --git a/official/copy_paste_metadata.lua b/official/copy_paste_metadata.lua index 10281ca..c655b00 100644 --- a/official/copy_paste_metadata.lua +++ b/official/copy_paste_metadata.lua @@ -27,7 +27,7 @@ USAGE local dt = require "darktable" -dt.configuration.check_version(...,{3,0,0}) +dt.configuration.check_version(...,{3,0,0},{4,0,0}) -- set this to "false" if you don't want to overwrite metadata fields -- (title, description, creator, publisher and rights) that are already set diff --git a/official/delete_long_tags.lua b/official/delete_long_tags.lua index 921a438..8481600 100644 --- a/official/delete_long_tags.lua +++ b/official/delete_long_tags.lua @@ -29,7 +29,7 @@ all tags longer than the given length will be automatically deleted at every res ]] 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.preferences.register("delete_long_tags", "length", "integer", "maximum length of tags to keep", diff --git a/official/enfuse.lua b/official/enfuse.lua index 1fc9f3a..79adada 100644 --- a/official/enfuse.lua +++ b/official/enfuse.lua @@ -36,7 +36,7 @@ local dt = require "darktable" require "official/yield" -dt.configuration.check_version(...,{3,0,0}) +dt.configuration.check_version(...,{3,0,0},{4,0,0}) -- thanks Tobias Jakobs for this function (taken from contrib/hugin.lua) local function checkIfBinExists(bin) diff --git a/official/generate_image_txt.lua b/official/generate_image_txt.lua index a1e55d7..d127a5d 100644 --- a/official/generate_image_txt.lua +++ b/official/generate_image_txt.lua @@ -38,7 +38,7 @@ local dt = require "darktable" require "darktable.debug" require "official/yield" -dt.configuration.check_version(...,{2,1,0},{3,0,0}) +dt.configuration.check_version(...,{2,1,0},{3,0,0},{4,0,0}) dt.preferences.register("generate_image_txt", "enabled", diff --git a/official/image_path_in_ui.lua b/official/image_path_in_ui.lua index 77b1f9f..03d9104 100644 --- a/official/image_path_in_ui.lua +++ b/official/image_path_in_ui.lua @@ -29,7 +29,7 @@ This plugin will add a widget at the bottom of the left column in lighttable mod ]] 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}) local main_label = dt.new_widget("label"){selectable = true, ellipsize = "middle", halign = "start"} diff --git a/official/save_selection.lua b/official/save_selection.lua index 81e951e..3c87b45 100644 --- a/official/save_selection.lua +++ b/official/save_selection.lua @@ -34,7 +34,7 @@ increase it if you need more temporary selection buffers ]] 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}) local buffer_count = 5 diff --git a/official/selection_to_pdf.lua b/official/selection_to_pdf.lua index 2c2eada..c56d479 100644 --- a/official/selection_to_pdf.lua +++ b/official/selection_to_pdf.lua @@ -36,7 +36,7 @@ Plugin allows you to choose how many thumbnails you need per row local dt = require "darktable" require "official/yield" -dt.configuration.check_version(...,{2,0,0},{3,0,0}) +dt.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0}) dt.preferences.register ("selection_to_pdf","Open with","string",