[gimp/gtk3-port: 77/262] 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/262] plug-ins: port jpeg-save to GTK+ 3.0
- Date: Sun, 29 Apr 2018 16:50:25 +0000 (UTC)
commit 748d0bbb1f17909c5d598730b662dc3a8de78a63
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, 3 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/file-jpeg/jpeg-save.c b/plug-ins/file-jpeg/jpeg-save.c
index 0c5127a..e5cb62a 100644
--- a/plug-ins/file-jpeg/jpeg-save.c
+++ b/plug-ins/file-jpeg/jpeg-save.c
@@ -1357,18 +1357,16 @@ 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);
+ gtk_adjustment_set_value (pg->smoothing, jsvals.smoothing);
/* Don't override quality and subsampling setting if we already 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]