diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-04-05 03:34:07 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-04-05 12:01:43 +0000 |
commit | 08d8f2bb8052b72418edd74a182c7fbbefbe5faf (patch) | |
tree | b1783c773550e1960820229cdcbdd9a7b93f57e7 /gtk/gtkprintunixdialog.c | |
parent | b14f0b89873af90533a64848a7f1c763087f374a (diff) | |
download | gtk+-08d8f2bb8052b72418edd74a182c7fbbefbe5faf.tar.gz |
print dialog: Stop using gtk_container_child_get
The grid does not have child properties anymore.
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r-- | gtk/gtkprintunixdialog.c | 7 |
1 files 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; |