gschem file preview function renders files twice
Bug #698501 reported by
thepurlieu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA |
Fix Released
|
Low
|
Unassigned |
Bug Description
Just a minor observation here...nothing big.
After opening the "open file" dialog and clicking on a schematic file, the preview window to the right renders everything twice. This is quite noticeable on some of my monster schematics...you have to wait for it to flash the rendered image two times before you can click on another file.
Maybe the preview code is getting a duplicate signal from the file window? Or maybe this is actually a GTK+ bug in the file chooser widget...I'm not sure.
Cheers--
Julian
Changed in geda: | |
status: | Confirmed → Triaged |
To post a comment you must log in.
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.