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

Missing explenation in subclassing #1980

Open
jakubGodula opened this issue Feb 19, 2025 · 1 comment
Open

Missing explenation in subclassing #1980

jakubGodula opened this issue Feb 19, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jakubGodula
Copy link

Section 5.2 Subclassing does not mention adding the following code in mod.rs.

impl Default for CustomButton {
    fn default() -> Self {
        Self::new()
    }
}

The first part works well without it, but it is required by Adding functionality part.
I know that it is not GTK-related and that it is common knowledge among programmers that it is required, but I am sure that mentioning it will make it easier for newcomers to follow along with this book.

@jakubGodula jakubGodula added the bug Something isn't working label Feb 19, 2025
@bilelmoussaoui
Copy link
Member

Patches would be appreciated, as you are the one knowing best what is missing and where at this point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants