[gimp/gtk3-port: 77/231] plug-ins: port jpeg-save to GTK+ 3.0



commit 61aff636b8857c980373fb7a5f9ed8c5e170e98d
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 10dd802..2a92fae 100644
--- a/plug-ins/file-jpeg/jpeg-save.c
+++ b/plug-ins/file-jpeg/jpeg-save.c
@@ -1352,15 +1352,13 @@ 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->quality),
-                            jsvals.quality);
-  gtk_adjustment_set_value (GTK_ADJUSTMENT (pg->smoothing),
-                            jsvals.smoothing);
+  gtk_adjustment_set_value (pg->quality, jsvals.quality);
+  gtk_adjustment_set_value (pg->smoothing, jsvals.smoothing);
 
   if (gimp_drawable_is_rgb (drawable_ID_global))
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]