Skip to content

Fix syntax error and update example on homepage #113

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

Merged
merged 1 commit into from
Jun 17, 2019

Conversation

wezm
Copy link
Contributor

@wezm wezm commented Jun 15, 2019

I tried building the code on the homepage and ran into some issues. This PR updates the example code so that it compiles and runs.

index.md Outdated
window.set_title("First GTK+ Program");
window.set_border_width(10);
Copy link
Member

@GuillaumeGomez GuillaumeGomez Jun 15, 2019

Choose a reason for hiding this comment

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

I'm not sure this line is very useful in this example. ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perhaps not but I was mostly just updating it to do what https://github.com/gtk-rs/examples/blob/master/src/bin/basic.rs does.

Copy link
Member

Choose a reason for hiding this comment

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

The goal is to remain as small as possible in here to just let users see a sample. Please remove this line and then I merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed :)

@GuillaumeGomez
Copy link
Member

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit d63ab6f into gtk-rs:master Jun 17, 2019
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.

2 participants