summaryrefslogtreecommitdiff
path: root/gtk/gtkprintunixdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-04-05 03:34:07 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-04-05 12:01:43 +0000
commit08d8f2bb8052b72418edd74a182c7fbbefbe5faf (patch)
treeb1783c773550e1960820229cdcbdd9a7b93f57e7 /gtk/gtkprintunixdialog.c
parentb14f0b89873af90533a64848a7f1c763087f374a (diff)
downloadgtk+-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.c7
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;