gio: Use g_task_return_error_literal() where we don't need formatting

This commit is contained in:
Marco Trevisan (Treviño)
2023-12-19 21:03:28 +01:00
committed by Philip Withnall
parent 7c71090723
commit 81068e5c00
15 changed files with 71 additions and 61 deletions

View File

@@ -182,11 +182,11 @@ response_received (GDBusConnection *connection,
g_task_return_boolean (task, TRUE);
break;
case XDG_DESKTOP_PORTAL_CANCELLED:
g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_CANCELLED, "Launch cancelled");
g_task_return_new_error_literal (task, G_IO_ERROR, G_IO_ERROR_CANCELLED, "Launch cancelled");
break;
case XDG_DESKTOP_PORTAL_FAILED:
default:
g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "Launch failed");
g_task_return_new_error_literal (task, G_IO_ERROR, G_IO_ERROR_FAILED, "Launch failed");
break;
}