Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix GTK::Simple::Switch, hopefully
  • Loading branch information
Timo Paulssen committed Jun 16, 2014
1 parent b6cb6dc commit 5b28644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/GTK/Simple.pm6
Expand Up @@ -527,8 +527,8 @@ class GTK::Simple::Switch is GTK::Simple::ToggleButton {

method status() {
Proxy.new:
FETCH => { gtk_switch_get_active($!gtk_widget) ?? True !! False },
STORE => -> $, $v { gtk_switch_set_active($!gtk_widget, (so $v).Int) };
FETCH => { gtk_switch_get_active(self.WIDGET) ?? True !! False },
STORE => -> $, $v { gtk_switch_set_active(self.WIDGET, (so $v).Int) };
}
}

Expand Down

0 comments on commit 5b28644

Please sign in to comment.