Re: Allow code in glade callbacks?



On Thu, Mar 25, 2004 at 22:49:50 -0600, James Curbo wrote:
muppet wrote:
do any of you glade experts/users have an opinion on this?

http://sourceforge.net/tracker/ 
index.php?func=detail&aid=922354&group_id=64773&atid=508620

i know some people have in the past expressed the opinion that keeping  
code out of the xml ui description is A Good Thing, but it would be  
pretty convenient.


I'm a pretty strict kind of guy, I would be against this patch. Just 
because a callback is a one liner does not mean it should go in the 
glade XML file. Seperation of interface and logic and all that.

Well, I'd never ever had created the patch, if glade-2 supported the
data attribute. The library does support it, but it's not possible to
set from glade. I really don't think the glade interface should contain
(much) code. But I do think, that forcing a programmer to write
a separate function for each index into an array or hash is
a BadThing(tm).

Noone has to use this feature, but for those who wish to use it (and
would use it anyway, just writing the helper again and again) it could
be available. On the other hand if it isn't the function is simply
trivial to write whenever one wants it.

-------------------------------------------------------------------------------
                                                 Jan 'Bulb' Hudec <bulb ucw cz>

Attachment: signature.asc
Description: Digital signature



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