From: Thomas Leonard <tal00r@ec...> - 2001-09-24 12:17:49
On Fri, Sep 21, 2001 at 05:27:07PM +0200, Fabien COUTANT wrote:
> Hello thomas,
> I could not reproduce the bug at home, with XFree86 4.1.0 and
> gtk-1.2.10. I upgraded my work configuration, in the hope it would solve
> the problem. It did, at least a few hours. Now it starts to crash again
> systematically, so I took time to debug a little bit.
> The patch I made:
> > if (reply->len == 0)
> > gtk_selection_data_set(selection_data, xa_string, 8, "", 0) ;
> > else
Yep, I see it now. When you unselect the last file, ROX-Filer releases the
selection. But, if they file is simply deleted it doesn't and so if you
try to paste into another application then selection_get() is called even
though there isn't any selection.
I've added your check to stop the crash, plus a warning message, and also
fixed the cause of the problem in the first place (collection_delete_if
fails to spot when it's deleted all the selected items).
Thomas Leonard http://rox.sourceforge.net
Get latest updates about Open Source Projects, Conferences and News.