diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-11-01 13:46:04 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-11-04 08:17:32 -0500 |
commit | 809966946641af27479fc3a9c349b03cf0fdd05d (patch) | |
tree | 05822c9704641ad3e483c4f8d3ef4cffa720fe24 /gtk/gtkprintoperation-unix.c | |
parent | 1c465604d506c7a994891c8b2afdac126eb308d9 (diff) | |
download | gtk+-809966946641af27479fc3a9c349b03cf0fdd05d.tar.gz |
Move the should_use_portal helper to gdk
We want to use it there too, in the future.
Update all callers.
Diffstat (limited to 'gtk/gtkprintoperation-unix.c')
-rw-r--r-- | gtk/gtkprintoperation-unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c index 7c044120b9..85cc171805 100644 --- a/gtk/gtkprintoperation-unix.c +++ b/gtk/gtkprintoperation-unix.c @@ -1217,7 +1217,7 @@ _gtk_print_operation_platform_backend_run_dialog (GtkPrintOperation *op, GtkWindow *parent, gboolean *do_print) { - if (gtk_should_use_portal ()) + if (gdk_should_use_portal ()) return gtk_print_operation_portal_run_dialog (op, show_dialog, parent, do_print); else return gtk_print_operation_unix_run_dialog (op, show_dialog, parent, do_print); @@ -1228,7 +1228,7 @@ _gtk_print_operation_platform_backend_run_dialog_async (GtkPrintOperation GtkWindow *parent, GtkPrintOperationPrintFunc print_cb) { - if (gtk_should_use_portal ()) + if (gdk_should_use_portal ()) gtk_print_operation_portal_run_dialog_async (op, show_dialog, parent, print_cb); else gtk_print_operation_unix_run_dialog_async (op, show_dialog, parent, print_cb); @@ -1240,7 +1240,7 @@ _gtk_print_operation_platform_backend_launch_preview (GtkPrintOperation *op, GtkWindow *parent, const gchar *filename) { - if (gtk_should_use_portal ()) + if (gdk_should_use_portal ()) gtk_print_operation_portal_launch_preview (op, surface, parent, filename); else gtk_print_operation_unix_launch_preview (op, surface, parent, filename); |