-
Notifications
You must be signed in to change notification settings - Fork 26
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
TextView / Scroll Example doesn't work #87
Comments
I think you're going to have to talk us through this as I can't get the as-is |
Sorry, was mostly working through my Advent calender article at the time (suprise guess what it's about?). |
Ok. Using GTK::Simple:ver<0.1.10> (from zef). I ran the following code :
The App opens but the Text box is empty and when I click the update I get the following :
Perl6 version 2018.11 built on MoarVM version 2018.11 |
This is due to the fact that the accessor method: method text() {
Proxy.new:
FETCH => {
gtk_text_buffer_get_text($!buffer, self!start-iter(),
self!end-iter(), 1)
},
STORE => -> \c, \text {
gtk_text_buffer_set_text($!buffer, text.Str, -1);
}
} Is not "is rw". I think this code worked up until a recent commit of Perl6, where the bug that allowed this to work without the 'rw' trait was fixed. |
Yeah that's entirely what it is. Let me have a quick look at that. |
As it stands the constructor for the TextView doesn't do anything with a |
The TextView in an ScrolledWindow exmaple fails. It would appear that TestViews can't be editted within the code giving an error of "Cannot modify an immutable Str ()"
The text was updated successfully, but these errors were encountered: