subclassing Gnome2::Canvas::Text objects

Hi Everybody,

I see in the FAQ that subclassing Gtk2 widgets is pretty straight forward, but I want to subclass Gnome2::Canvas::Text. I've created a subclass called EllipsisText that simply overrides the "text" method, appending an ellipsis (...) to the text argument.
However when I try something like this:

local $ellipsisText = Gnome2::Canvas::Item->new($root, 'EllipsisText', x=>10, y=>10, fill_color=>'black', anchor=>'GTK_ANCHOR_NW', text=$text);

I am met with the following error:

"EllipsisText is not registered with gperl as an object type blah blah blah"

Is what I am trying to do possible?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]