After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 160032 - Preview bug in plug-in "Filter pack"
Preview bug in plug-in "Filter pack"
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.1.x
Other Linux
: Normal minor
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2004-11-30 23:16 UTC by Roxana Chernogolova aka mavka
Modified: 2005-08-15 11:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Roxana Chernogolova aka mavka 2004-11-30 23:16:06 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).
Comment 1 Sven Neumann 2005-03-18 01:56:02 UTC
Any change will bring the previews back; it's not necessary to use Reset. Moving
to the 2.4 milestone.
Comment 2 weskaggs 2005-03-19 01:55:47 UTC
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.
Comment 3 Sven Neumann 2005-03-19 13:24:48 UTC
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.
Comment 4 weskaggs 2005-03-20 16:36:26 UTC
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.
Comment 5 Sven Neumann 2005-08-15 11:53:51 UTC
2005-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/fp.c: merged fixes for bug #160032 and bug
	#141032 from HEAD branch.