Re: [RFC] export TRUE and FALSE from someplace
- From: Joe Smith <jes martnet com>
- To: muppet <scott asofyet org>
- Cc: gtk-perl-list gnome org
- Subject: Re: [RFC] export TRUE and FALSE from someplace
- Date: Tue, 20 Jan 2004 22:46:36 -0500
muppet wrote:
...
what do you think? is there anything else that we could toss into that bag to
make it more useful?
Ok, I'll stick my neck out. Hack away.
I get really irritated at reading gtk code with it's swamp of magic
constants. Here's my 'constants' file:
use constant 'True' => 1;
use constant 'False' => 0;
use constant 'Left' => 0;
use constant 'Center' => 0.5;
use constant 'Right' => 1;
use constant 'Top' => 0;
use constant 'Bottom' => 1;
use constant 'Homogeneous' => 1;
use constant 'Variable' => 0;
use constant 'NoFill' => 0;
use constant 'Fill' => 1;
use constant 'NoExpand' => 0;
use constant 'Expand' => 1;
use constant 'NoPadding' => 0;
use constant 'NoSpacing' => 0;
use constant 'DefaultDepth' => -1;
use constant 'Process_Event' => False;
use constant 'Block_Event' => True;
1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]