GNOME Bugzilla – Bug 135816
FileChooser/eog crashes when using 'File->Open Directory'
Last modified: 2004-12-22 21:47:04 UTC
Eye of Gnome uses the GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER mode of the new file chooser. After rebuilding gtk yesterday the dialog chrashes now in this mode on disposure. Opening of files works properly, though.
Created attachment 24967 [details] Backtrace
Er, is this a filesel bug or an EOG bug? It looks like its crashing in eog_file_selection_dispose. Can you get a simpler test-case that I can look at?
I do think the following snippet of code from eog is valid/correct, isnt' it? The code crashes at GNOME_CALL_PARENT call: 41 eog_file_selection_dispose (GObject *object) 42 { 43 EogFileSelectionPrivate *priv; 44 45 priv = EOG_FILE_SELECTION (object)->priv; 46 47 if (priv->thumb_factory != NULL) { 48 g_object_unref (priv->thumb_factory); 49 priv->thumb_factory = NULL; 50 } 51 52 GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (object)); 53 } Also it works flawlessly with GTK_FILE_CHOOSER_ACTION_OPEN set as action property. Any hints maybe?
Retitling to make it a little more clear what is going on. It's embarassing to ship a supposedly core piece of the desktop that has a top-level menu item that causes a segfault; we have to fix this.
Forgot to cc: jrb and federico earlier.
eog bug. Patch attached.
Created attachment 25191 [details] [review] Quick fix
Thank you very much for the patch, Jonathan. Didn't noticed the this side effect of the new actions directly. Applied the patch to HEAD and can verify that the problem is fixed.