valadoc-org icon indicating copy to clipboard operation
valadoc-org copied to clipboard

Incorrect example for Gtk.ScaleButton

Open fnevgeny opened this issue 6 years ago • 0 comments

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.

fnevgeny avatar Sep 24 '18 17:09 fnevgeny