mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Use g_set_error_literal where appropriate. Patch from bug #535947.
svn path=/trunk/; revision=7051
This commit is contained in:
@@ -584,8 +584,8 @@ expand_application_parameters (GDesktopAppInfo *info,
|
||||
|
||||
if (info->exec == NULL)
|
||||
{
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
_("Desktop file didn't specify Exec field"));
|
||||
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
_("Desktop file didn't specify Exec field"));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -878,8 +878,8 @@ g_desktop_app_info_launch_uris (GAppInfo *appinfo,
|
||||
|
||||
if (info->terminal && !prepend_terminal_to_vector (&argc, &argv))
|
||||
{
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
_("Unable to find terminal required for application"));
|
||||
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
_("Unable to find terminal required for application"));
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user