ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/kgsueme/kgsueme/gtk.pl
(Generate patch)

Comparing kgsueme/kgsueme/gtk.pl (file contents):
Revision 1.11 by pcg, Sun Jun 1 07:20:56 2003 UTC vs.
Revision 1.12 by pcg, Sun Jun 1 10:13:28 2003 UTC

99 &$method; 99 &$method;
100} 100}
101 101
102sub destroy { 102sub destroy {
103 my ($self) = @_; 103 my ($self) = @_;
104
104 for (keys %$self) { 105 for (keys %$self) {
105 (delete $self->{$_})->destroy 106 (delete $self->{$_})->destroy
106 if UNIVERSAL::isa ($self->{$_}, Glib::Object) && $self->{$_}->can("destroy"); 107 if (UNIVERSAL::isa ($self->{$_}, Glib::Object)
108 && UNIVERSAL::isa ($self->{$_}, gtk::widget))
109 && $self->{$_}->can("destroy");
107 } 110 }
108} 111}
109 112
110sub DESTROY { 113sub DESTROY {
111 my ($self) = @_; 114 my ($self) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines