mirror of https://github.com/GNOME/gimp.git
Use gtk_adjustment_get_value() instead of adjustment->value
This commit is contained in:
parent
0458da1832
commit
055d10f366
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue