[gimp/gtk3-port: 78/234] plug-ins: port file-png to GTK+ 3.0
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 78/234] plug-ins: port file-png to GTK+ 3.0
- Date: Tue, 9 May 2017 22:23:34 +0000 (UTC)
commit 8be9fcfd36bb90917feba3016e2ed3c5c2f03d17
Author: Michael Natterer <mitch gimp org>
Date: Sun Oct 24 00:37:02 2010 +0200
plug-ins: port file-png to GTK+ 3.0
plug-ins/common/file-png.c | 32 +++++++++++++++++---------------
1 files changed, 17 insertions(+), 15 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index a670d95..f1c4b3a 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -110,22 +110,22 @@ PngSaveVals;
typedef struct
{
- gboolean run;
-
- GtkWidget *interlaced;
- GtkWidget *bkgd;
- GtkWidget *gama;
- GtkWidget *offs;
- GtkWidget *phys;
- GtkWidget *time;
- GtkWidget *comment;
- GtkWidget *pixelformat;
- GtkWidget *save_transp_pixels;
+ gboolean run;
+
+ GtkWidget *interlaced;
+ GtkWidget *bkgd;
+ GtkWidget *gama;
+ GtkWidget *offs;
+ GtkWidget *phys;
+ GtkWidget *time;
+ GtkWidget *comment;
+ GtkWidget *pixelformat;
+ GtkWidget *save_transp_pixels;
GtkAdjustment *compression_level;
- GtkWidget *save_exif;
- GtkWidget *save_xmp;
- GtkWidget *save_iptc;
- GtkWidget *save_thumbnail;
+ GtkWidget *save_exif;
+ GtkWidget *save_xmp;
+ GtkWidget *save_iptc;
+ GtkWidget *save_thumbnail;
}
PngSaveGui;
@@ -2400,7 +2400,9 @@ save_dialog (gint32 image_ID,
/* Compression level scale */
pg.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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]