GNOME Bugzilla – Bug 97999
gimp_image_scale() should indicate progress
Last modified: 2004-02-09 00:12:57 UTC
Hi I'm a bit confused about the way gimp is resizing images. When I use the resize tool from the gimp main window, I get a progress bar telling me how things going forward. But when i use the command resize image from the menu I don't get that report at all. Also the whole app. seems to get locked and I can't do anything. It would be nice if the resize command from the menu get the same future as that from the tool bar. Furhter the dialog that comes up when you close an image. In my opinion this dialog is horror, eather you can select to close the image or cancel the action. I've done many mistaces when clicking the wrong button and the work is lost. Instead the dialog should contain the de facto options with save, don't save and cancel, where save is default action so you can just press return to save. Cheers /Daniel
Please, try to use meaningful subjects for your bug reports and please submit separate bug-reports for different and unrelated problems
Changed the report summary to something more meaningful... If I rememember correctly there is code that is supposed to draw a progress bar when an image is scaled. Perhaps it needs to be improved.
Changes at the request of Dave Neary on the developer mailing list. I am changing many of the bugzilla reports that have not specified a target milestone to Future milestone. Hope that is acceptable.
We should probably add a GimpProgressFunc pointer to the scale, resize and rotate methods of GimpItem. At the moment only GimpItem::transform has this API and is able to give progress feedback.
Actually GimpItem::scale would probably be sufficient since resize, rotate and flip are reasonably fast even on larger drawables.
There's some room for improvement here when it comes to accuracy of the progress bar, but this should fix it good enough: 2004-02-09 Sven Neumann <sven@gimp.org> * app/core/gimpitem.[ch]: added progress callback pointers to gimp_item_scale() and its variants. * app/core/gimpchannel.c * app/core/gimpdrawable.c * app/core/gimpimage-scale.c * app/core/gimplayer.c * app/core/gimpselection.c * app/gui/layers-commands.c97999 * app/paint-funcs/paint-funcs.[ch] * app/vectors/gimpvectors.c * tools/pdbgen/pdb/layer.pdb: changed accordingly. Fixes bug #97999 * app/pdb/layer_cmds.c: regenerated.