kopia lustrzana https://gitlab.com/sane-project/frontends
Fix type
rodzic
94508ee7f0
commit
d6910b233a
|
@ -776,7 +776,7 @@ curve_new (GSGDialog * dialog, int optnum)
|
|||
fmin = min;
|
||||
fmax = max;
|
||||
}
|
||||
gtk3_curve_set_range (GTK3_CURVE (curve), 0, optlen - 1, fmin, fmax);
|
||||
gtk3_curve_set_range (GTK_WIDGET (curve), 0, optlen - 1, fmin, fmax);
|
||||
|
||||
status = sane_control_option (dev, optnum, SANE_ACTION_GET_VALUE,
|
||||
optval, 0);
|
||||
|
@ -790,7 +790,7 @@ curve_new (GSGDialog * dialog, int optnum)
|
|||
val = optval[i];
|
||||
vector[i] = val;
|
||||
}
|
||||
gtk3_curve_set_vector (GTK3_CURVE (curve), optlen, vector);
|
||||
gtk3_curve_set_vector (GTK_WIDGET (curve), optlen, vector);
|
||||
}
|
||||
else
|
||||
gtk_widget_set_sensitive (gamma, FALSE);
|
||||
|
@ -1390,7 +1390,7 @@ gsg_sync (GSGDialog * dialog)
|
|||
vector = alloca (optlen * sizeof (vector[0]));
|
||||
|
||||
curve = GTK3_GAMMA_CURVE (dialog->element[i].widget)->curve;
|
||||
gtk3_curve_get_vector (GTK3_CURVE (curve), optlen, vector);
|
||||
gtk3_curve_get_vector (GTK_WIDGET (curve), optlen, vector);
|
||||
for (j = 0; j < optlen; ++j)
|
||||
{
|
||||
val = vector[j];
|
||||
|
|
|
@ -630,7 +630,8 @@ scan_win_delete (GtkWidget * w, gpointer data)
|
|||
static void
|
||||
preview_window_destroyed (GtkWidget * widget, gpointer call_data)
|
||||
{
|
||||
gtk_widget_set_sensitive (GTK_WIDGET (call_data), FALSE);
|
||||
preview_destroy (scan_win.preview);
|
||||
scan_win.preview = 0;
|
||||
}
|
||||
|
||||
/* Invoked when the preview button is pressed. */
|
||||
|
|
Ładowanie…
Reference in New Issue