Re: Tree Problems



On Wed, 11 Sep 2002, Jens Wilke wrote:

On Wednesday 11 September 2002 20:11, Sebastian Weitzel wrote:

Hi,

1. Problem: how can I find out if $parent is a TreeItem or a Subtree, to

if(substr($parent, 0, 13) eq "Gtk::TreeItem") {print "\$parent is a treeitem"}

BRrrrrr.... A much cleaner solution:
if (ref $parent eq "Gtk::TreeItem") {
        print "it is a treeitem.\n";
}

-- 
pozsy





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