Re: [gtk-list] Re: Gtk_FileSelection



> > But the problem arrises when someone kills the fileselection with a
> > destroy/delete event (like clicking on an "X" button in the titlebar).
> > When this happens, the filesel is deleted and the next time around it
> > shows up as a black box.

robert havoc pennington <rhpennin@midway.uchicago.edu> writes:
> You should connect a function to delete_event which hides the dialog and
> returns TRUE. This will block the default delete_event handler, which
> destroys the widget. 

I think there's still bug in gtk-- about this that I have not found. testme1.cc
example coming with gtk-- still has the same problem :( Guess it does not
pass the return value correctly in connect... (temporary fix: you should derive
from Gtk_FileSelection and override delete_event_impl method and make that
return TRUE...)

though would be better if the real bug was found...

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



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