fixed most of the Reset functionality (bug #157495). The offset box is

2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/dialogs/resize-dialog.c (resize_dialog_reset): fixed most of
	the Reset functionality (bug #157495). The offset box is still not
	working correctly.

	* app/widgets/gimpsizebox.c (gimp_size_box_update_resolution):
	check for availability of the size entry before accessing it.
This commit is contained in:
Sven Neumann
2004-11-06 12:30:38 +00:00
committed by Sven Neumann
parent cfec9f597f
commit ce7f034638
3 changed files with 22 additions and 2 deletions

View File

@ -48,6 +48,7 @@ struct _ResizeDialog
GimpViewable *viewable;
gint old_width;
gint old_height;
GimpUnit old_unit;
GimpUnit unit;
GtkWidget *box;
GtkWidget *offset;
@ -151,6 +152,7 @@ resize_dialog_new (GimpViewable *viewable,
private->viewable = viewable;
private->old_width = width;
private->old_height = height;
private->old_unit = unit;
private->callback = callback;
private->user_data = user_data;
@ -307,8 +309,11 @@ static void
resize_dialog_reset (ResizeDialog *private)
{
g_object_set (private->box,
"width", private->old_width,
"height", private->old_height,
"keep-aspect", FALSE,
"width", private->old_width,
"height", private->old_height,
"unit", private->old_unit,
"keep-aspect", TRUE,
NULL);
}