summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2017-02-06 11:54:55 -0800
committerChristian Hergert <chergert@redhat.com>2017-02-06 11:55:18 -0800
commitffcd7b954a52a9ed223a6e1ec2beb5b1890792cb (patch)
tree1b1271873d16a448e273980b3823bbbe8ef905ec
parentddd5dad0f58d66cd5170308854ad9399cdd79860 (diff)
downloadyelp-ffcd7b954a52a9ed223a6e1ec2beb5b1890792cb.tar.gz
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
-rw-r--r--libyelp/yelp-view.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index 1aa647b2..ee950bd2 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);