[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GOB problems (Was: Call for contributions...)
On Tue, May 16, 2000 at 04:01:27PM +0800, Hilaire Fernandes wrote:
> Ok, i didn't set back the save/save as facilities for figure. I always
> use save session. However i just set it back but there is a weird
> problem with gob, it's look like the drgenius_mdi_child_save doesn't
> return the good value, so an error dialog alway raise even when save
> is successfull.
>
> George do you know why? I notice the same problem when saving a gelbuffer.
Not doing a very deep analysis. I think the problem here is the way
gtk handles signals, return values and default handlers. Basically it breaks
the save signal.
We might have to change that framework to be slightly different. Basically
AFAIK right now, "first" type signals don't work right with return values,
and for "last" type signals, the default handler overrides the return value.
So my proposed solution (I won't do it right now, but it's a simple change)
Is to bind the "save" signal with gtk_object_connect_after, and make the
signal a normal last type signal. That should make it all work.
George