bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch #4575] Add +theme/+setTheme: to GSDrawFunctions


From: Nicolas Roard
Subject: Re: [patch #4575] Add +theme/+setTheme: to GSDrawFunctions
Date: Sun, 30 Oct 2005 14:15:04 +0100



On 10/30/05, Richard Frith-Macdonald <savannah-bounces@gnu.org> wrote:

Follow-up Comment #1, patch #4575 (project gnustep):

These are minor quibbles ...

1. You create a global variable '__gui_theme', but provide setter/getter
methods +setTheme: and -getTheme:

Now ... if it's really intended to be a global variable, I think it should
follow standard naming conventions and be called something like GSGUITheme
(but then the set/get matchods aren't needed).

If it's not intended to be global, it should be declared static ... but it
should perhaps have a more conventional name
eg 'theTheme'.

Er, yes, I forgot to declare it static.. it's not meant to be a global variable, although it could be after all..  but I think  having it static is better.

2. You define a macro in the public header ... THEME to return the object ...
but again we should have a name like GSTHEME to avoid possible conflicts with
user code.

I'll perhaps just get rid of that macro.

Thanks,

--
Nicolas Roard
"Any sufficiently advanced technology is indistinguishable from magic."
  -Arthur C. Clarke
reply via email to

[Prev in Thread] Current Thread [Next in Thread]