[gtk/child-properties-be-gone: 4/14] print dialog: Stop using gtk_container_child_get



commit 01447fc36adbb564f79dd839ded960d2a1cb5fa0
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Apr 5 03:34:07 2019 +0000

    print dialog: Stop using gtk_container_child_get
    
    The grid does not have child properties anymore.

 gtk/gtkprintunixdialog.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index c3e1d4a3b6..7f4dacc512 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -1359,17 +1359,14 @@ add_option_to_extension_point (GtkPrinterOption *option,
 static gint
 grid_rows (GtkGrid *table)
 {
-  gint t0, t1, t, h;
+  gint t0, t1, l, t, w, h;
   GList *children, *c;
 
   children = gtk_container_get_children (GTK_CONTAINER (table));
   t0 = t1 = 0;
   for (c = children; c; c = c->next)
     {
-      gtk_container_child_get (GTK_CONTAINER (table), c->data,
-                               "top-attach", &t,
-                               "height", &h,
-                               NULL);
+      gtk_grid_query_child (table, c->data, &l, &t, &w, &h);
       if (c == children)
         {
           t0 = t;


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