app/dialogs/resize-dialog.c (resize_dialog_reset) don't rely on GObject

2005-03-02  Sven Neumann  <sven@gimp.org>

	* app/dialogs/resize-dialog.c (resize_dialog_reset)
	* app/dialogs/scale-dialog.c (scale_dialog_reset): don't rely on
	GObject internals about the order in which properties are being
	set. Fixes one aspect of bug #169011.
This commit is contained in:
Sven Neumann
2005-03-02 21:13:02 +00:00
committed by Sven Neumann
parent 80a6700cb0
commit 2b3bb7d1a0
3 changed files with 19 additions and 0 deletions

View File

@ -346,9 +346,15 @@ resize_dialog_reset (ResizeDialog *private)
{
g_object_set (private->box,
"keep-aspect", FALSE,
NULL);
g_object_set (private->box,
"width", private->old_width,
"height", private->old_height,
"unit", private->old_unit,
NULL);
g_object_set (private->box,
"keep-aspect", TRUE,
NULL);
}