[gimp/gtk3-port: 83/224] 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: 83/224] plug-ins: port file-png to GTK+ 3.0
- Date: Sat, 10 Dec 2011 21:25:04 +0000 (UTC)
commit cee398bfe5c1c11dc1f55dfb377ea44b7ad65c57
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 | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index ad678c6..3c4daf1 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -92,17 +92,17 @@ PngSaveVals;
typedef struct
{
- gboolean run;
-
- GtkWidget *interlaced;
- GtkWidget *bkgd;
- GtkWidget *gama;
- GtkWidget *offs;
- GtkWidget *phys;
- GtkWidget *time;
- GtkWidget *comment;
- GtkWidget *save_transp_pixels;
- GtkObject *compression_level;
+ gboolean run;
+
+ GtkWidget *interlaced;
+ GtkWidget *bkgd;
+ GtkWidget *gama;
+ GtkWidget *offs;
+ GtkWidget *phys;
+ GtkWidget *time;
+ GtkWidget *comment;
+ GtkWidget *save_transp_pixels;
+ GtkAdjustment *compression_level;
}
PngSaveGui;
@@ -1944,7 +1944,7 @@ 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"));
g_signal_connect (pg.compression_level, "value-changed",
G_CALLBACK (gimp_int_adjustment_update),
&pngvals.compression_level);
@@ -2076,6 +2076,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]