mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Merge pull request #546 from Pan7/fixLightDlg
Fix Light Intensity Dialog when using accelerator
This commit is contained in:
commit
f33c27d596
1 changed files with 1 additions and 0 deletions
|
@ -3627,6 +3627,7 @@ int DoLightIntensityDlg( int *intensity ){
|
||||||
response_id = gtk_dialog_run( GTK_DIALOG( dialog ) );
|
response_id = gtk_dialog_run( GTK_DIALOG( dialog ) );
|
||||||
|
|
||||||
if( response_id == GTK_RESPONSE_OK ) {
|
if( response_id == GTK_RESPONSE_OK ) {
|
||||||
|
gtk_spin_button_update( GTK_SPIN_BUTTON( spinbutton ) );
|
||||||
*intensity = gtk_spin_button_get_value_as_int( GTK_SPIN_BUTTON( spinbutton ) );
|
*intensity = gtk_spin_button_get_value_as_int( GTK_SPIN_BUTTON( spinbutton ) );
|
||||||
ret = IDOK;
|
ret = IDOK;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue