Re: Two top-level windows managing



Rosa Mannini wrote:

In my application there are two top-level
GtkWindow(s).
One one of them I can do some operations. The other
works as a kind of log window.

I've made a function to call when something happens to
modify the text buffer (using gtk_text_buffer_insert
or gtk_text_buffer_insert_with_tags) of the text view
on the log window, but I think that I haven't done all
I would have done in terms of session management,
because after updating my application has a
SEGMENTATION FAULT error.

I found on the Reference Manual something referring to
this and the reminding to www.freedesktop.org, but I
really know nothing of this topic .. and I'd like to
have more practise advices on the argument ... my
application is not so big ....

If your application segfaults just after updating the contents of one of
the children of a top level window you should check your update function
again. This usually happens due to wrong parameters, illegal pointers,
freed objects or similar.

Although I don't know anything about your session management strategy I
don't think the segfault, as described by you, has anything to do with
it. freedesktop.org likely won't help you solving that bug. Generally
speaking there are no particular (technical) problems when dealing with
more than one top level window.

I'd rather guess it's a traditional bug of yours while programming GTK.
Please check your GTK function calls, parameters and validity of handles
again. I suppose you have already verified that it's really the
GtkTextBuffer-update function that causes the segfault and not something
else?



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