[yelp] print: use proper API to set print settings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] print: use proper API to set print settings
- Date: Mon, 6 Feb 2017 19:55:35 +0000 (UTC)
commit ffcd7b954a52a9ed223a6e1ec2beb5b1890792cb
Author: Christian Hergert <chergert redhat com>
Date: Mon Feb 6 11:54:55 2017 -0800
print: use proper API to set print settings
WebKitPrintOperation is not a GtkPrintOperation so the cast here was
invalid. This fixes <ctrl>p to show the print dialog.
https://bugzilla.gnome.org/show_bug.cgi?id=778256
libyelp/yelp-view.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index 1aa647b..ee950bd 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -1758,8 +1758,7 @@ view_print_action (GAction *action, GVariant *parameter, YelpView *view)
gtk_print_settings_set (settings,
GTK_PRINT_SETTINGS_OUTPUT_BASENAME,
priv->page_title);
- gtk_print_operation_set_print_settings (GTK_PRINT_OPERATION (print_operation),
- settings);
+ webkit_print_operation_set_print_settings (print_operation, settings);
webkit_print_operation_run_dialog (print_operation, GTK_WINDOW (window));
g_object_unref (print_operation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]