Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate set_min_buttons_width_from_icons #96276

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Aug 29, 2024

As noted in #89265 (comment), the new set_min_buttons_width_from_icons is redundant and only added for compatibility with existing themes. This PR deprecates it and makes icon_width behave like set_min_buttons_width_from_icons when the value is less than 0.
Although seems like theme items don't support deprecated messages .-.

To remove set_min_buttons_width_from_icons in the future, we'll need to adjust SpinBox icons to have proper width.

@KoBeWi KoBeWi added this to the 4.x milestone Aug 29, 2024
@KoBeWi KoBeWi requested review from a team as code owners August 29, 2024 11:03
@KoBeWi KoBeWi force-pushed the deprecated_on_arrival branch from 00ade48 to a7b7b1b Compare August 29, 2024 11:11
Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

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

@dalexeev What's up with Theme Items not supporting deprecated messages?

doc/classes/SpinBox.xml Outdated Show resolved Hide resolved
@KoBeWi KoBeWi force-pushed the deprecated_on_arrival branch from a7b7b1b to 5d7dfc6 Compare August 29, 2024 11:14
@dalexeev
Copy link
Member

What's up with Theme Items not supporting deprecated messages?

DocData::ThemeItemDoc didn't support deprecated/experimental previously, so I didn't add messages. We need to add code to DocData, DocTools, EditorHelp, make_rst.py, etc.

@dalexeev
Copy link
Member

dalexeev commented Sep 5, 2024

#96555 is merged, please rebase the branch, it should works now.

@KoBeWi KoBeWi force-pushed the deprecated_on_arrival branch from 5d7dfc6 to bde64c4 Compare September 5, 2024 13:44
@akien-mga akien-mga modified the milestones: 4.x, 4.4 Sep 6, 2024
@akien-mga akien-mga merged commit 1476578 into godotengine:master Sep 6, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the deprecated_on_arrival branch September 6, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants