[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
subclassing Gnome2::Canvas::Text objects
- From: James Muir <hemlock vtlink net>
- To: gtk-perl-list gnome org
- Subject: subclassing Gnome2::Canvas::Text objects
- Date: Fri, 05 Aug 2005 11:36:48 -0400
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?
-James
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]