Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
move the .show() method into Widget
Add the .hide method
  • Loading branch information
jonathanstowe committed May 17, 2016
1 parent a6b5b6e commit f855cc6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/GTK/Simple.pm6
Expand Up @@ -220,6 +220,14 @@ role GTK::Simple::Widget {
method destroy() {
gtk_widget_destroy($!gtk_widget);
}

method show() {
gtk_widget_show($!gtk_widget);
}

method hide() {
gtk_widget_show($!gtk_widget);
}
}

role GTK::Simple::Container {
Expand Down Expand Up @@ -292,9 +300,6 @@ class GTK::Simple::Window does GTK::Simple::Widget
}
}

method show() {
gtk_widget_show($!gtk_widget);
}
}

class GTK::Simple::App does GTK::Simple::Widget
Expand Down

0 comments on commit f855cc6

Please sign in to comment.