app/actions/image-commands.c app/actions/layers-commands.c

2005-08-24  Sven Neumann  <sven@gimp.org>

	* app/actions/image-commands.c
	* app/actions/layers-commands.c
	* app/dialogs/image-scale-dialog.c
	* app/dialogs/resize-dialog.[ch]: remember the selected unit for
	scale and resize dialogs on a per-image basis (bug #312950).
This commit is contained in:
Sven Neumann
2005-08-24 17:22:07 +00:00
committed by Sven Neumann
parent dff3e7584e
commit ad5287c3ba
5 changed files with 57 additions and 14 deletions

View File

@ -311,6 +311,7 @@ resize_dialog_response (GtkWidget *dialog,
ResizeDialog *private)
{
GimpSizeEntry *entry = GIMP_SIZE_ENTRY (private->offset);
GimpUnit unit;
gint width;
gint height;
@ -324,12 +325,14 @@ resize_dialog_response (GtkWidget *dialog,
g_object_get (private->box,
"width", &width,
"height", &height,
"unit", &unit,
NULL);
private->callback (dialog,
private->viewable,
width,
height,
unit,
gimp_size_entry_get_refval (entry, 0),
gimp_size_entry_get_refval (entry, 1),
private->resize_layers,