From 0bb61293a045dec136d8ef6d82186e54633f63a1 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Thu, 27 Nov 2003 06:24:40 +0000 Subject: [PATCH] After setting max size, restore current setting. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@355 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- glabels2/src/object-editor-lsize-page.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glabels2/src/object-editor-lsize-page.c b/glabels2/src/object-editor-lsize-page.c index aef106d9..e304f526 100644 --- a/glabels2/src/object-editor-lsize-page.c +++ b/glabels2/src/object-editor-lsize-page.c @@ -165,6 +165,8 @@ gl_object_editor_set_max_lsize (glObjectEditor *editor, gdouble dx_max, gdouble dy_max) { + gdouble tmp; + gl_debug (DEBUG_EDITOR, "START"); g_signal_handlers_block_by_func (G_OBJECT(editor->priv->lsize_r_spin), @@ -178,8 +180,10 @@ gl_object_editor_set_max_lsize (glObjectEditor *editor, gl_debug (DEBUG_EDITOR, "display dx_max,dy_max = %g, %g", dx_max, dy_max); /* Set widget values */ + tmp = gtk_spin_button_get_value (GTK_SPIN_BUTTON (editor->priv->lsize_r_spin)); gtk_spin_button_set_range (GTK_SPIN_BUTTON (editor->priv->lsize_r_spin), 0.0, LENGTH (dx_max, dy_max)); + gtk_spin_button_set_value (GTK_SPIN_BUTTON (editor->priv->lsize_r_spin), tmp); g_signal_handlers_unblock_by_func (G_OBJECT(editor->priv->lsize_r_spin), gl_object_editor_changed_cb, -- 2.39.5