Use gtk_adjustment_get_value() instead of adjustment->value

This commit is contained in:
Michael Natterer 2009-10-10 14:36:20 +02:00
parent 0458da1832
commit 055d10f366
2 changed files with 3 additions and 3 deletions

View File

@ -760,7 +760,7 @@ size_adjustment_callback (GtkWidget *widget,
adj->guides = NULL;
gimp_displays_flush ();
*(adj->value) = GTK_ADJUSTMENT (widget)->value;
*(adj->value) = gtk_adjustment_get_value (GTK_ADJUSTMENT (widget));
if (adj->orientation == GIMP_ORIENTATION_VERTICAL)
{
@ -830,7 +830,7 @@ dim_callback (GtkAdjustment *adjustment,
{
gint i;
gihparams.dim = RINT (adjustment->value);
gihparams.dim = RINT (gtk_adjustment_get_value (adjustment));
for (i = 0; i < GIMP_PIXPIPE_MAXDIM; i++)
{

View File

@ -1353,7 +1353,7 @@ gimp_resolution_entry_value_callback (GtkWidget *widget,
GimpResolutionEntryField *gref = (GimpResolutionEntryField *) data;
gdouble new_value;
new_value = GTK_ADJUSTMENT (widget)->value;
new_value = gtk_adjustment_get_value (GTK_ADJUSTMENT (widget));
if (gref->value != new_value)
gimp_resolution_entry_update_value (gref, new_value);