mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
Fallback to gtk_show_uri for print preview if the command fails
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=601682
This commit is contained in:
parent
cb49a28f8c
commit
6dfdf0fadf
@ -291,6 +291,19 @@ _gtk_print_operation_platform_backend_launch_preview (GtkPrintOperation *op,
|
||||
|
||||
g_strfreev (argv);
|
||||
|
||||
if (error != NULL)
|
||||
{
|
||||
gchar* uri;
|
||||
|
||||
g_warning ("%s %s", _("Error launching preview"), error->message);
|
||||
|
||||
g_error_free (error);
|
||||
error = NULL;
|
||||
uri = g_filename_to_uri (filename, NULL, NULL);
|
||||
gtk_show_uri (screen, uri, GDK_CURRENT_TIME, &error);
|
||||
g_free (uri);
|
||||
}
|
||||
|
||||
out:
|
||||
if (error != NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user