[gimp/gtk3-port: 77/232] plug-ins: port jpeg-save to GTK+ 3.0
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 77/232] plug-ins: port jpeg-save to GTK+ 3.0
- Date: Sun, 11 Feb 2018 16:59:30 +0000 (UTC)
commit a41c2d9e12a12040877c9b6a72cf5a5e242df313
Author: Michael Natterer <mitch gimp org>
Date: Sun Oct 24 00:02:52 2010 +0200
plug-ins: port jpeg-save to GTK+ 3.0
plug-ins/file-jpeg/jpeg-save.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/file-jpeg/jpeg-save.c b/plug-ins/file-jpeg/jpeg-save.c
index 741adfe..06ee678 100644
--- a/plug-ins/file-jpeg/jpeg-save.c
+++ b/plug-ins/file-jpeg/jpeg-save.c
@@ -1357,18 +1357,14 @@ load_gui_defaults (JpegSaveGui *pg)
g_signal_handler_block (pg->use_restart_markers, pg->handler_id_restart);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (pg->use_restart_markers),
jsvals.restart);
- restart_markers = GTK_ADJUSTMENT (pg->scale_data);
+ restart_markers = pg->scale_data;
gtk_adjustment_set_value (restart_markers, jsvals.restart);
g_signal_handler_unblock (pg->use_restart_markers, pg->handler_id_restart);
- gtk_adjustment_set_value (GTK_ADJUSTMENT (pg->smoothing),
- jsvals.smoothing);
-
/* Don't override quality and subsampling setting if we alredy set it from original */
if (!jsvals.use_orig_quality)
{
- gtk_adjustment_set_value (GTK_ADJUSTMENT (pg->quality),
- jsvals.quality);
+ gtk_adjustment_set_value (pg->quality, jsvals.quality);
if (gimp_drawable_is_rgb (drawable_ID_global))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]