Re: [gtk-list] Bug in fileselection [0.99.3] ?



On 2 Feb 1998, Preben Randhol wrote:

> 
> I took out the code from the testgtk.c modified it so that when
> choosing a file the fileselection window was destroyed (calling
> gtk_detroy_widget(fileselectionwindow) from the callback function
> of the Ok button). This works fine if you choose a file and then press
> the Ok button. If you however double click on a file the whole program
> crashes with a BadWindow error or some such. 

I experienced this since 0.99.0. It's easy to fix - if you know how. Just
connect "destroy" of the file selection to the function you connected to the
Cancel button and you should be happy again. BTW: I think this should be done
by default - It has been working up to gtk+-971201 without connecting
"destroy", so why doesn't it do this way since 0.99.0? Owen? <- Let's see if
this draws attention :-)

My advice to all having weird problems with gtk programming: Keep a copy of
the gimp source somewhere on the box, if you're in trouble see how it's
handled there, it saved me a lot of time (and nerves)

> 
> I also tested the code with gtk+-971025 and it worked there, no
> errors.

Yes. I still do not know if I should consider this as a bug or a feature...

Regards, Nils
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nils Philippsen                  @college: nils@rhlx01.rz.fht-esslingen.de
Vogelsangstrasse 115             @home:    nils@wombat.dialup.fht-esslingen.de
D 70197 Stuttgart                phone:    +49-711-6599405
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Wer heute an der Bildung spart,          Those who scrimp on education today,
hat morgen noch bloedere Politiker.      get even dumber politicians tomorrow.



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