Fix Invalid cast from GncWebkitHtml to GtkWindow

Invalid cast from GncWebkitHtml to GtkWindow so use already set parent.
This commit is contained in:
Robert Fewell
2017-12-30 17:15:43 +00:00
parent bde39c527c
commit 01ab889902

View File

@@ -1123,7 +1123,7 @@ impl_webkit_print (GncHtml* self)
priv = GNC_HTML_WEBKIT_GET_PRIVATE (self);
op = webkit_print_operation_new (priv->web_view);
top = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (self)));
top = GTK_WINDOW(priv->base.parent);
webkit_print_operation_run_dialog (op, top);
g_object_unref (op);
}