GNOME Bugzilla – Bug 164589
GtkFileFilterInfo::mime_type is always NULL in win32
Last modified: 2005-02-22 19:22:02 UTC
Steps to reproduce: 1. open gnumeric 2. "insert" --> "image..." to choose picture --> "Öffnen" 3. es erscheint kein Bild, dann mit linker Maustaste in ein Feld klicken --> dann stürzt Gnumeric ab Stack trace: Other information: Fehlermeldung: "gnumeric.exe hat Fehler verursacht und wird geschlossen. Starten Sie das Programm neu." Mein System: AMD XP 2000+ 256MB RAM Windows 2000 mit SP 4
Gnumeric 1.4.1.
Created attachment 36415 [details] [review] patch for src/gui-file.c Confirmed that the fix in 1.4.2 works. In addition, the file filter of the image file selector doesn't work correctly as GTK_FILE_FILTER_MIME_TYPE is not available on Win32. This patch should fix the filter.
I does see why this patch needs any ifdefs at all. Can we just test mime_type if it is there and use extensions if not?
Actually, why did it crash on win32? Did a non-image pass the test and make things crash elsewhere? If so, we should independently fix the point where the crash was.
The crash was unrelated. It was the race condition that emmanuel kept hitting.
Fixed in cvs.