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

Incorrect example for Gtk.ScaleButton #183

Open
fnevgeny opened this issue Sep 24, 2018 · 0 comments
Open

Incorrect example for Gtk.ScaleButton #183

fnevgeny opened this issue Sep 24, 2018 · 0 comments
Labels
Needs Copy Type Update Documentation needs updating or adding.

Comments

@fnevgeny
Copy link

Hello,

In the sample code at https://valadoc.org/gtk+-3.0/Gtk.ScaleButton.html, please change

string[] icons = { "zoom-out", "zoom-in" };

to

const string[] icons = { "zoom-out", "zoom-in", null };

"icons" should be a null-terminated array.

@lewisgoddard lewisgoddard added Needs Copy Type Update Documentation needs updating or adding. labels Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Copy Type Update Documentation needs updating or adding.
Projects
None yet
Development

No branches or pull requests

2 participants