the concept sounds ok. however the code doesnt tie up with the idea..
- what is an xml parser doing in there?
- why is it making GtkWindows (if it supposed to provide a Widget?)
you probably want to modify the Proposal (spell Scrolling correctly)
and include a basic usage example in the proposal..
I just quickly looked through the source but this package looks very interesting though I have never used PHP-GTK so I'm probably not the best person to comment.
It may be worth considering using
var $widget (as the eventbox);
so that you can use
$vbox->add($scrollinglabel->widget); as unfortunatly we cant extend widgets very reliably
It a common technique I've been using here. - it also means you dont really need the hide/show methods (I presume hiding the eventbox triggers hiding the label?)