[gimp] Bug 674024: Store in .png does not compress
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 674024: Store in .png does not compress
- Date: Sat, 14 Apr 2012 16:41:08 +0000 (UTC)
commit 257224ff997ff06453bff9c8c1a26da64f4bfc83
Author: Massimo Valentini <mvalentini src gnome org>
Date: Sat Apr 14 18:39:49 2012 +0200
Bug 674024: Store in .png does not compress
The slider did not always show the values effectively used
plug-ins/common/file-png.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index 31517cd..4e590a9 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -103,7 +103,7 @@ typedef struct
GtkWidget *time;
GtkWidget *comment;
GtkWidget *save_transp_pixels;
- GtkObject *compression_level;
+ GtkAdjustment *compression_level;
}
PngSaveGui;
@@ -2017,7 +2017,8 @@ save_dialog (gint32 image_ID,
/* Compression level scale */
pg.compression_level =
- GTK_OBJECT (gtk_builder_get_object (builder, "compression-level"));
+ GTK_ADJUSTMENT (gtk_builder_get_object (builder, "compression-level"));
+ gtk_adjustment_set_value (pg.compression_level, pngvals.compression_level);
g_signal_connect (pg.compression_level, "value-changed",
G_CALLBACK (gimp_int_adjustment_update),
&pngvals.compression_level);
@@ -2149,6 +2150,6 @@ load_gui_defaults (PngSaveGui *pg)
#undef SET_ACTIVE
- gtk_adjustment_set_value (GTK_ADJUSTMENT (pg->compression_level),
+ gtk_adjustment_set_value (pg->compression_level,
pngvals.compression_level);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]