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.29 by pcg, Wed Jul 30 01:12:11 2003 UTC vs.
Revision 1.30 by root, Mon May 31 18:18:26 2004 UTC

121sub widget { $_[0]{widget} } 121sub widget { $_[0]{widget} }
122 122
123sub AUTOLOAD { 123sub AUTOLOAD {
124 $AUTOLOAD =~ /::([^:]+)$/ or Carp::confess "$AUTOLOAD: no such method (illegal name)"; 124 $AUTOLOAD =~ /::([^:]+)$/ or Carp::confess "$AUTOLOAD: no such method (illegal name)";
125 ref $_[0]{widget} or Carp::confess "AUTOLOAD: non-method call $AUTOLOAD(@_)\n"; 125 ref $_[0]{widget} or Carp::confess "AUTOLOAD: non-method call $AUTOLOAD(@_)\n";
126 my $method = $_[0]{widget}->can($1) 126 my $method = $_[0]{widget}->can ($1)
127 or Carp::confess "$AUTOLOAD: no such method"; 127 or Carp::confess "$AUTOLOAD: no such method";
128 # do NOT cache.. we are fats enough this way 128 # do NOT cache.. we are fats enough this way
129 unshift @_, shift->{widget}; 129 unshift @_, shift->{widget};
130 &$method; 130 &$method;
131} 131}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines