Re: Problems with signals and object destruction

2007-04-20 Thread Joe Smith
muppet wrote: > ... > The situations you want to watch out for are: > > - Any form of circular reference. Avoid keeping references to yourself. > - Take care with closures, and they can hide references to objects > and create reference cycles. > - NEVER override DESTROY on a Glib::Object, ...

Re: Directory/file browser as TreeView

2006-10-04 Thread Joe Smith
A. Pagaltzis wrote: > ... glad I can help. :-) Thanks for the most clear lesson; very enlightening! >> What's the "+" for? > > To force parsing as a value. Otherwise, Perl thinks these parens > belong to `sort`, ... That caught me completely by surprise. > ... > You can use the unary plus

Re: Directory/file browser as TreeView

2006-10-03 Thread Joe Smith
A. Pagaltzis wrote: > ... > Now it uses an idle callback to read directories so the UI never > freezes. Thanks for posting your version of the browser. I'm learning a lot going through it--I think I almost see how it works ;-) A couple of questions still. These are mostly Perl; feel free to a

Re: Directory/file browser as TreeView

2006-09-28 Thread Joe Smith
Ratcliffe, Jeffrey (Peters) wrote: >> Very good script. :) Seconded! Nice example. > I was trying to keep it short and simple, but you can replace: > > @{$slist->{data}} = <*>; > > with > ... Or just @{$slist->{data}} = grep(-d, <*>); But anything using "-d" will require an expensive "st

Re: need help in tutorial(alpha)

2006-05-18 Thread Joe Smith
Emmanuele Bassi wrote: ... We really, *really* need some hero to take over the tutorial and finish it off. ... Hey, I've been lurking around here in awe of the great work you guys have done on gtk-perl; maybe this is something I could help with. However, I think it really takes an expert to

Re: State variables

2006-05-04 Thread Joe Smith
Torsten Schoenfeld wrote: Not really. If you put a block around a sub, you can declare a lexical variable in that scope but outside the sub. It will then behave like a state variable: ... Awesome! I've wished for years to be able to do that--never thought of adding that extra block. Yeesh d

Re: table layout

2005-07-22 Thread Joe Smith
Daniel Kasak wrote: Beast wrote: ... Seriously, is there any seriuos project written using gtk-perl? I found very little number of projects in SF or freshmeat, most of them are in alpha stage or left unmaintained. ... I honestly don't know why there aren't more projects though. Perl just seems

Re: Different graphing options

2005-05-05 Thread Joe Smith
muppet wrote: [note: copious snippage] Narrow the scope a bit; what's more important? - saving plots (want to save them, but preview in a gui) - interactive plots (user can mouse-over and/or edit data) - high-quality plots (speed is not a concern) Well said. Graphing involves serious tradeoffs: