fix the rest of errors with CFLAGS+="-DGSEAL_ENABLE" except accel_label->accel_string required hack

This commit is contained in:
Garux
2020-05-20 02:51:37 +03:00
parent 50e1af1a16
commit 4f8e6e7ee5
12 changed files with 22 additions and 33 deletions

View File

@@ -114,7 +114,7 @@ void queueDraw(){
inline void spin_button_set_step( GtkSpinButton* spin, gfloat step ){
#if 1
gtk_spin_button_get_adjustment( spin )->step_increment = step;
gtk_adjustment_set_step_increment( gtk_spin_button_get_adjustment( spin ), step );
#else
GValue gvalue = GValue_default();
g_value_init( &gvalue, G_TYPE_DOUBLE );
@@ -1294,8 +1294,7 @@ void spin_button_set_value_no_signal( GtkSpinButton* spin, gdouble value ){
}
void spin_button_set_step_increment( GtkSpinButton* spin, gdouble value ){
GtkAdjustment* adjust = gtk_spin_button_get_adjustment( spin );
adjust->step_increment = value;
gtk_adjustment_set_step_increment( gtk_spin_button_get_adjustment( spin ), value );
}
void SurfaceInspector::Update(){