From 01ace1d02f2c112f763cb7aa342a56ec9b3b01f4 Mon Sep 17 00:00:00 2001 From: JosephMcc Date: Sat, 7 Jan 2017 03:24:46 -0800 Subject: [PATCH] xed-print-preview.c: Don't you deprecated gtk_layout_get_*adjustment --- xed/xed-print-preview.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xed/xed-print-preview.c b/xed/xed-print-preview.c index 6bb1809..54164d4 100644 --- a/xed/xed-print-preview.c +++ b/xed/xed-print-preview.c @@ -252,8 +252,8 @@ set_zoom_fit_to_size (XedPrintPreview *preview) priv = preview->priv; - g_object_get (gtk_layout_get_hadjustment (GTK_LAYOUT (priv->layout)), "page-size", &width, NULL); - g_object_get (gtk_layout_get_vadjustment (GTK_LAYOUT (priv->layout)), "page-size", &height, NULL); + g_object_get (gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (priv->layout)), "page-size", &width, NULL); + g_object_get (gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (priv->layout)), "page-size", &height, NULL); width /= priv->cols; height /= priv->rows; @@ -714,8 +714,8 @@ get_page_at_coords (XedPrintPreview *preview, return -1; } - hadj = gtk_layout_get_hadjustment (GTK_LAYOUT (priv->layout)); - vadj = gtk_layout_get_vadjustment (GTK_LAYOUT (priv->layout)); + hadj = gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (priv->layout)); + vadj = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (priv->layout)); x += gtk_adjustment_get_value (hadj); y += gtk_adjustment_get_value (vadj); @@ -782,8 +782,8 @@ preview_layout_key_press (GtkWidget *widget, priv = preview->priv; - hadj = gtk_layout_get_hadjustment (GTK_LAYOUT (priv->layout)); - vadj = gtk_layout_get_vadjustment (GTK_LAYOUT (priv->layout)); + hadj = gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (priv->layout)); + vadj = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (priv->layout)); x = gtk_adjustment_get_value (hadj); y = gtk_adjustment_get_value (vadj);