Add new icons: hide, prev/next
[ardour.git] / scripts / split_all_markers.lua
index 64aeea7f5a6f72a70b7e010039d26d2a3e90f395..001c4ae43274d360d422c0879ee8dd64aa575c5c 100644 (file)
@@ -40,7 +40,7 @@ function factory (params) return function ()
                        if l:is_mark() then
                                -- get all regions on the given track's playlist (may be stacked)
                                for reg in playlist:regions_at (l:start ()):iter () do
-                                       playlist:split_region (reg, ARDOUR.MusicFrame (l:start(), 0))
+                                       playlist:split_region (reg, ARDOUR.MusicSample (l:start(), 0))
                                        -- the above operation will invalidate the playlist's region list:
                                        -- split creates 2 new regions.
                                        --
@@ -82,6 +82,8 @@ function icon (params) return function (ctx, width, height, fg)
        local m3 = width / 3;
        local m6 = width / 6;
 
+       ctx:set_line_width (.5)
+
        -- compare to gtk2_ardour/marker.cc "Marker"
        ctx:set_source_rgba (.8, .8, .2, 1.0)
        ctx:move_to (width / 2 - m6, 2)
@@ -90,10 +92,12 @@ function icon (params) return function (ctx, width, height, fg)
        ctx:rel_line_to (-m6, mh * 0.6)
        ctx:rel_line_to (-m6, -mh * 0.6)
        ctx:close_path ()
-       ctx:fill ()
+       ctx:fill_preserve ()
+       ctx:set_source_rgba (.0, .0, .0, 1.0)
+       ctx:stroke ()
 
        -- draw an arrow  <--|--> on top, using the foreground color
-       ctx:set_source_rgba (LuaCairo.color_to_rgba (fg))
+       ctx:set_source_rgba (ARDOUR.LuaAPI.color_to_rgba (fg))
        ctx:set_line_width (1)
 
        ctx:move_to (width * .5, height * .4)