GNOME Bugzilla – Bug 376308
Save modified images before using tools
Last modified: 2009-09-10 19:28:33 UTC
If an unsaved image is open in the viewer and the user selects a function from the "Tools" menu, gthumb should ask whether to save the image (like it does when navigating away from the modified image). Otherwise, unexpected effects can occur. For instance, the unsaved rotations performed with Image > Transforms may conflict with the Tools > Rotate functions. The Image > Transform functions work on the pixbuf in memory, the Tools > Rotate functions work on file(s). Ultimately, this would finally allow us to move the Tools > Rotate functions (and perhaps Tools > Convert, Tools > Scale, etc) into the Image menu (and remove the corresponding existing Image functions), finally ending the confusing duplication of functions between the two menus. This was originally discussed in bug 370013. I think we need to modify: gth_window_activate_action_tools_jpeg_rotate gth_window_activate_action_tools_jpeg_rotate_right gth_window_activate_action_tools_jpeg_rotate_left and other functions to include something like if (gth_window_get_image_modified (window)) { GthViewer *viewer = (GthViewer*) window; ask_whether_to_save (viewer, load_image__image_saved_cb); } ^^^ not sure about this - Mike
Should be fixed in ext branch.