Re: Tree Problems
- From: Pozsar Balazs <pozsy uhulinux hu>
- To: Jens Wilke <jens wilke org>
- Cc: <gtk-perl-list gnome org>
- Subject: Re: Tree Problems
- Date: Thu, 12 Sep 2002 16:50:50 +0200 (MEST)
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]