[gimp] file-jpeg: Use state of toggle button with the event
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] file-jpeg: Use state of toggle button with the event
- Date: Wed, 14 May 2014 20:11:56 +0000 (UTC)
commit 080fd93d90741e219b7f0eceb1c2e40110ce6235
Author: Mukund Sivaraman <muks banu com>
Date: Thu May 15 01:37:13 2014 +0530
file-jpeg: Use state of toggle button with the event
plug-ins/file-jpeg/jpeg-save.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/file-jpeg/jpeg-save.c b/plug-ins/file-jpeg/jpeg-save.c
index 054dc3d..07d0103 100644
--- a/plug-ins/file-jpeg/jpeg-save.c
+++ b/plug-ins/file-jpeg/jpeg-save.c
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]