[gimp] plug-ins: kill deprecated GtkAlignment in file-xmc



commit f5f357333762ecaed4eb1558decc540f1e6c087d
Author: Michael Natterer <mitch gimp org>
Date:   Sat Oct 20 01:22:11 2018 +0200

    plug-ins: kill deprecated GtkAlignment in file-xmc

 plug-ins/common/file-xmc.c | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/plug-ins/common/file-xmc.c b/plug-ins/common/file-xmc.c
index be324385f5..db1a969f4a 100644
--- a/plug-ins/common/file-xmc.c
+++ b/plug-ins/common/file-xmc.c
@@ -1057,7 +1057,6 @@ save_dialog (const gint32   image_ID,
   GtkWidget      *grid;
   GtkWidget      *box;
   GtkAdjustment  *adjustment;
-  GtkWidget      *alignment;
   GtkWidget      *tmpwidget;
   GtkWidget      *label;
   GtkTextBuffer  *textbuffer;
@@ -1196,11 +1195,11 @@ save_dialog (const gint32   image_ID,
                                "is specified."),
                              TRUE,  NULL,
                              NULL);
-  alignment = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
-  gtk_widget_show (alignment);
-  gtk_grid_attach (GTK_GRID (grid), alignment, 0, 3, 3, 1);
-  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 6, 20, 0); /*padding left*/
-  gtk_container_add (GTK_CONTAINER (alignment), tmpwidget);
+  g_object_set (tmpwidget,
+                "margin-start", 20,
+                "margin-bottom", 6,
+                NULL);
+  gtk_grid_attach (GTK_GRID (grid), tmpwidget, 0, 3, 3, 1);
   gtk_widget_show (tmpwidget);
 
   /*
@@ -1247,11 +1246,11 @@ save_dialog (const gint32   image_ID,
                                "is specified."),
                              TRUE,  NULL,
                              NULL);
-  alignment = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
-  gtk_widget_show (alignment);
-  gtk_grid_attach (GTK_GRID (grid), alignment, 0, 5, 3, 1);
-  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 6, 20, 0); /*padding left*/
-  gtk_container_add (GTK_CONTAINER (alignment), tmpwidget);
+  g_object_set (tmpwidget,
+                "margin-start", 20,
+                "margin-bottom", 6,
+                NULL);
+  gtk_grid_attach (GTK_GRID (grid), tmpwidget, 0, 5, 3, 1);
   gtk_widget_show (tmpwidget);
 
   /*


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