Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
first step towards GTK::Simple::DrawingArea
  • Loading branch information
timo committed Jun 16, 2014
1 parent 330b860 commit b6cb6dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/GTK/Simple.pm6
Expand Up @@ -532,4 +532,15 @@ class GTK::Simple::Switch is GTK::Simple::ToggleButton {
}
}

class GTK::Simple::DrawingArea does GTK::Simple::Widget {
sub gtk_drawing_area_new()
is native('libgtk-3.so.0')
returns GtkWidget
{*}

submethod BUILD() {
$!gtk_widget = gtk_drawing_area_new();
}
}

# vi: foldmethod=marker

0 comments on commit b6cb6dc

Please sign in to comment.