file-jpeg: Use state of toggle button with the event

This commit is contained in:
Mukund Sivaraman 2014-05-15 01:37:13 +05:30
parent 7a6b8f0e69
commit 080fd93d90
1 changed files with 2 additions and 1 deletions

View File

@ -707,7 +707,8 @@ toggle_arithmetic_coding (GtkToggleButton *togglebutton,
{
GtkWidget *optimize = GTK_WIDGET (user_data);
gtk_widget_set_sensitive (optimize, !jsvals.arithmetic_coding);
gtk_widget_set_sensitive (optimize,
!gtk_toggle_button_get_active (togglebutton));
}
#endif /* C_ARITH_CODING_SUPPORTED */