I can't reproduce this with GTK 2.12. What version do you have?
I instrumented with this patch in x_fileselect.c:
diff --git a/gschem/src/x_fileselect.c b/gschem/src/x_fileselect.c index bdf8188..84a9e98 100644 --- a/gschem/src/x_fileselect.c +++ b/gschem/src/x_fileselect.c @@ -91,6 +91,8 @@ x_fileselect_callback_update_preview (GtkFileChooser *chooser, preview_filename = filename; }
+ printf ("Updating file preview widget\n"); + /* update preview */ g_object_set (preview, "filename", preview_filename,
and only get one update per file clicked.
It would be helpful if you could check and see what your box does. If it turns out to be a GTK bug, we might be able to work around it by checking whether the current preview filename matches the new one being set.
I can't reproduce this with GTK 2.12. What version do you have?
I instrumented with this patch in x_fileselect.c:
diff --git a/gschem/ src/x_fileselec t.c b/gschem/ src/x_fileselec t.c src/x_fileselec t.c src/x_fileselec t.c callback_ update_ preview (GtkFileChooser *chooser, filename = filename;
index bdf8188..84a9e98 100644
--- a/gschem/
+++ b/gschem/
@@ -91,6 +91,8 @@ x_fileselect_
preview_
}
+ printf ("Updating file preview widget\n");
"filename" , preview_filename,
+
/* update preview */
g_object_set (preview,
and only get one update per file clicked.
It would be helpful if you could check and see what your box does. If it turns out to be a GTK bug, we might be able to work around it by checking whether the current preview filename matches the new one being set.