GNOME Bugzilla – Bug 160032
Preview bug in plug-in "Filter pack"
Last modified: 2005-08-15 11:53:51 UTC
1. Run Filters->Colors->Filter Pack 2. Open the "Advanced" window 3. Change "Preview Size" All previews (in main window of filter and in others) disappear. Use "Reset" - previews appear again (but all settings, of course, are lost).
Any change will bring the previews back; it's not necessary to use Reset. Moving to the 2.4 milestone.
This was definitely a learning experience. It turns out that the only way to handle size change requests in a GimpPreviewArea is to use a callback connected to the "size-allocate" signal; there is absolutely nothing else that works. Fixed in HEAD. This wouldn't be too hard to backport to the 2.2 branch -- anyway I'll call it FIXED for now, and leave it to Sven to decide if he would like that done. 2005-03-18 Bill Skaggs <weskaggs@primate.ucdavis.edu> * plug-ins/common/fp.c: use callbacks to handle "size-allocate" for preview size changes, fixes bug #160032.
Why should there be another way? "size-allocate" is the signal to use to handle size allocation of GTK+ widgets. We generally try not to duplicate any functionality that is already in the base class.
There shouldn't be another way, but there should be better documentation. The "size-allocate" signal has none, and the gtk_widget_set_size_request() documentation gives no hint that it produces a "size-allocate" signal. Anyway, I mainly wrote comment #2 because other people are sure to need to know this sooner or later, and I thought a hint, even in an obscure place like this, couldn't hurt.
2005-08-15 Sven Neumann <sven@gimp.org> * plug-ins/common/fp.c: merged fixes for bug #160032 and bug #141032 from HEAD branch.