Merge pull request #604 from Pan7/neglight

Allow negative light values
This commit is contained in:
Timothee "TTimo" Besset 2018-03-24 16:55:36 -04:00 committed by GitHub
commit bd0e7dba6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3616,7 +3616,7 @@ int DoLightIntensityDlg( int *intensity ){
gtk_container_set_border_width( GTK_CONTAINER( hbox ), 5 ); gtk_container_set_border_width( GTK_CONTAINER( hbox ), 5 );
gtk_widget_show( hbox ); gtk_widget_show( hbox );
adj = GTK_ADJUSTMENT( gtk_adjustment_new( *intensity, 0, G_MAXINT, 1, 10, 0 ) ); adj = GTK_ADJUSTMENT( gtk_adjustment_new( *intensity, G_MININT, G_MAXINT, 1, 10, 0 ) );
spinbutton = gtk_spin_button_new( GTK_ADJUSTMENT( adj ), 1, 0 ); spinbutton = gtk_spin_button_new( GTK_ADJUSTMENT( adj ), 1, 0 );
gtk_box_pack_start( GTK_BOX( hbox ), spinbutton, TRUE, TRUE, 0 ); gtk_box_pack_start( GTK_BOX( hbox ), spinbutton, TRUE, TRUE, 0 );
gtk_spin_button_set_wrap( GTK_SPIN_BUTTON( spinbutton ), FALSE ); gtk_spin_button_set_wrap( GTK_SPIN_BUTTON( spinbutton ), FALSE );