Skip to content

Deprecate awesome.load_image#3976

Open
Delta-official wants to merge 2 commits intoawesomeWM:masterfrom
Delta-official:load_image_deprecate
Open

Deprecate awesome.load_image#3976
Delta-official wants to merge 2 commits intoawesomeWM:masterfrom
Delta-official:load_image_deprecate

Conversation

@Delta-official
Copy link
Copy Markdown

As it currently stands, both luaA_load_image and draw_load_image are left unused and only serve to pad luaa.c and draw.c respectively. This PR deprecates the former to allow the eventual removal of both.

actionless
actionless previously approved these changes Nov 28, 2024
* awesome.pixbuf_to_surface
*/

luaA_deprecate(L, "awesome.pixbuf_to_surface");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The suggestion for awesome.pixbuf_to_surface in that comment has since become outdated as well. I think gears.surface would be a better suggestion.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gears.surface uses awesome.pixbuf_to_surface internally, and I would argue that it's better to put a function as close to the replaced one in functionality in @deprecate

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do it one step at a time, this will do.

@Aire-One
Copy link
Copy Markdown
Member

@Mergifyio rebase

Signed-off-by: delta <darkussdelta@gmail.com>
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 21, 2025

rebase

✅ Branch has been successfully rebased

@Aire-One Aire-One force-pushed the load_image_deprecate branch from 51b98dc to e71e5de Compare December 21, 2025 03:08
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 21, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 90.41%. Comparing base (64a4b11) to head (3f2744c).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
luaa.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #3976       +/-   ##
===========================================
+ Coverage   54.48%   90.41%   +35.93%     
===========================================
  Files         264      938      +674     
  Lines       31218    60252    +29034     
  Branches     1139     1139               
===========================================
+ Hits        17009    54478    +37469     
+ Misses      13703     5268     -8435     
  Partials      506      506               
Files with missing lines Coverage Δ
luaa.c 68.06% <0.00%> (-0.17%) ⬇️

... and 817 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Aire-One
Aire-One previously approved these changes Dec 21, 2025
@Aire-One
Copy link
Copy Markdown
Member

/home/runner/work/awesome/awesome/build/luaa.c:296: ?: 'class' cannot have multiple values; {staticfct,deprecated}

Funny...

@Aire-One Aire-One dismissed stale reviews from actionless and themself via 3f2744c February 5, 2026 17:41
@Aire-One
Copy link
Copy Markdown
Member

Aire-One commented Feb 5, 2026

I went ahead and added a new @deprecatedstaticmtd tag to our ldoc configuration. We already have quite a few @deprecated* tags, soooooo 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants