Re: [gtk-list] Re: Proper way to destroy widgets?



Some Guy <guy@mikepery.pr.mcs.net> writes:
> The first time the dialog pops up, everything works great.  I press ok,
> and it goes away without whining at all.  But then when I call this dialog
> again, it gives me a blank window (just like before) and the following
> error:
>    Before new
>    ** WARNING **: file gtkbutton.c: line 856 (gtk_button_add):
>     "GTK_IS_BUTTON (container)"
>    Beginning of CONSTRUCTOR

The same error has been noticed before, but I do not know what is the problem.

I suspect it might be destroying the widget too early - this has not been
confirmed yet though. => it needs debugging.. There's another place
which gives exactly same error, testme.cc in the examples causes exactly
same problem with file selection dialogs. Unfortunately I dont know why.. 

(maybe its problem with all dialogs somehow -- I've looked Gtk_Dialog's code
like 20 times already and its simple enough to not have any bugs that I
can see :( ) Anyone getting similar problems with plain gtk?

-- 
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --



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