Use GtkAdjustment's accessors

This commit is contained in:
Michael Natterer 2009-10-09 11:57:17 +02:00
parent 06f55eb856
commit 834373eba7
1 changed files with 2 additions and 1 deletions

View File

@ -412,5 +412,6 @@ static void
pressure_adjust_update (GtkAdjustment *adj,
ColorselWater *water)
{
water->pressure_adjust = (adj->upper - adj->value) / 100.0;
water->pressure_adjust = (gtk_adjustment_get_upper (adj) -
gtk_adjustment_get_value (adj)) / 100.0;
}