Commit 6b543611 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

applied a patch by Joao S. O. Bueno that fixes bug #152820.

2004-09-16  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.c (gimp_scale_entry_set_logarithmic):
	applied a patch by Joao S. O. Bueno that fixes bug #152820.
parent 2ade3b8a
2004-09-16 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpwidgets.c (gimp_scale_entry_set_logarithmic):
applied a patch by Joao S. O. Bueno that fixes bug #152820.
2004-09-16 Dave Neary <bolsh@gimp.org>
* plug-ins/script-fu/scripts/burn-in-anim.scm: patch from Kevin
......
......@@ -836,9 +836,9 @@ gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
g_signal_handlers_disconnect_by_func (adj,
G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback),
scale_adj);
g_signal_handlers_disconnect_by_func (adj,
g_signal_handlers_disconnect_by_func (scale_adj,
G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback),
adjustment);
adj);
}
scale_adj->value = log_value;
......@@ -854,6 +854,9 @@ gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_scale_entry_log_adjustment_callback),
scale_adj);
g_object_set_data (G_OBJECT (adjustment),
"logarithmic", GINT_TO_POINTER (TRUE));
}
else
{
......@@ -871,6 +874,7 @@ gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
lower = exp (scale_adj->lower);
upper = exp (scale_adj->upper);
if (adj->lower <= 0.0)
{
lower += - 0.1 + adj->lower;
......@@ -890,6 +894,9 @@ gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback),
scale_adj);
g_object_set_data (G_OBJECT (adjustment),
"logarithmic", GINT_TO_POINTER (FALSE));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment