Skip to content

Commit

Permalink
The GTK::Simple::TextView.text needs an 'is rw' to work
Browse files Browse the repository at this point in the history
Fixes #87
  • Loading branch information
jonathanstowe committed Dec 19, 2018
1 parent da2dbb3 commit aed9855
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion META6.json
@@ -1,7 +1,7 @@
{
"name" : "GTK::Simple",
"license" : "Artistic-2.0",
"version" : "0.1.10",
"version" : "0.1.11",
"perl" : "6.c",
"description" : "Simple GTK 3 binding using NativeCall",
"build-depends" : [ "LWP::Simple", "Shell::Command" ],
Expand Down
6 changes: 3 additions & 3 deletions lib/GTK/Simple/TextView.pm6
Expand Up @@ -15,7 +15,7 @@ submethod BUILD() {

# this one can't use the trait for the time being as
# the functions need an additional argument.
method text() {
method text() is rw {
Proxy.new:
FETCH => {
gtk_text_buffer_get_text($!buffer, self!start-iter(),
Expand Down Expand Up @@ -55,12 +55,12 @@ method changed() {
}
}

method editable()
method editable()
returns Bool
is gtk-property(&gtk_text_view_get_editable, &gtk_text_view_set_editable)
{ * }

method cursor-visible()
method cursor-visible()
returns Bool
is gtk-property(&gtk_text_view_get_cursor_visible, &gtk_text_view_set_cursor_visible)
{ * }
Expand Down

0 comments on commit aed9855

Please sign in to comment.