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

Draft: Use Into<Option<_>> in argument position where applicable #1929

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

fengalin
Copy link
Contributor

@fengalin fengalin commented Dec 2, 2024

See the gir PR for details.

TODO

  • rebase, update gir versions and re-generate when gir PR is merged
  • apply the same to manual code.
  • update examples.

@fengalin fengalin force-pushed the more-into-option-args branch from 86ba457 to 5e84037 Compare December 2, 2024 14:28
@@ -810,7 +828,7 @@ impl AboutDialogBuilder {

pub fn logo(self, logo: &impl IsA<gdk::Paintable>) -> Self {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I took the liberty to align the conversion in Builder setters with what was already in use for the regular setters. I think the discrepancy was due to code duplication. The same code path is now used for both.

@fengalin fengalin force-pushed the more-into-option-args branch from 5e84037 to 8e7fb3c Compare December 5, 2024 21:52
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.

1 participant