@@ -65,6 +65,7 @@ local CS = dt.configuration.running_os == "windows" and "&" or ";"
65
65
66
66
local LUA_DIR = dt .configuration .config_dir .. PS .. " lua"
67
67
local LUA_SCRIPT_REPO = " https://github.com/darktable-org/lua-scripts.git"
68
+ local CURR_API_VERSION = dt .configuration .api_version_string
68
69
69
70
dt .print_log (" LUA_DIR is " .. LUA_DIR )
70
71
@@ -284,7 +285,7 @@ local function deactivate(script, scriptname)
284
285
end
285
286
286
287
local function create_enable_disable_button (btext , sname , req )
287
- return dt .new_widget (" button" )
288
+ button = dt .new_widget (" button" )
288
289
{
289
290
label = btext .. sname ,
290
291
tooltip = get_script_doc (req ),
@@ -310,6 +311,10 @@ local function create_enable_disable_button(btext, sname, req)
310
311
end
311
312
end
312
313
}
314
+ if CURR_API_VERSION >= " 6.0.1" then
315
+ button .ellipsize = " middle"
316
+ end
317
+ return button
313
318
end
314
319
315
320
local function load_script_stack ()
@@ -733,6 +738,12 @@ sm.main_stack = dt.new_widget("stack"){
733
738
table.unpack (sm .main_stack_items ),
734
739
}
735
740
741
+ if CURR_API_VERSION >= " 6.0.1" then
742
+ sm .main_stack .h_size_fixed = false
743
+ sm .main_stack .v_size_fixed = false
744
+ end
745
+
746
+
736
747
-- make a combobox for the selector
737
748
738
749
sm .main_menu = dt .new_widget (" combobox" ){
0 commit comments