Re: Hm. ItemFactory vs. gtk2-perl 0.90 ? :)
- From: Chas Owens <alas widomaker com>
- To: Brett Kosinski <brettk frodo dyn gno org>
- Cc: gtk-perl-list gnome org
- Subject: Re: Hm. ItemFactory vs. gtk2-perl 0.90 ? :)
- Date: Tue, 22 Jul 2003 15:46:42 -0400 (EDT)
Quoting Brett Kosinski <brettk frodo dyn gno org>:
<snip>
Heh, yup, that's just what I figured. What can I say... I opt for
novelty over efficiency. ;)
</snip>
If that is the case you might try adding this function to the benchmark.
sub chas {
my $entry = shift;
my (
$path,
$accelerator,
$callback,
$callback_action,
$item_type,
$extra_data
);
for my $key (keys %$entry) {
eval "\$$key = \$entry->{$key}";
if ($@) {
carp("Gtk Item Factory Entry; unknown key ($key) "
. "ignored, legal keys are: path, "
. "accelerator, accel, callback, "
. "callback_action, item_type, extra_data");
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]