mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
committed by
Alexander Larsson
parent
c20b8d4d53
commit
80cfd099f3
@@ -274,8 +274,8 @@ check_socket (GSocket *socket,
|
|||||||
{
|
{
|
||||||
if (!socket->priv->inited)
|
if (!socket->priv->inited)
|
||||||
{
|
{
|
||||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_INITIALIZED,
|
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_INITIALIZED,
|
||||||
_("Invalid socket, not initialized"));
|
_("Invalid socket, not initialized"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -742,8 +742,8 @@ g_socket_initable_init (GInitable *initable,
|
|||||||
|
|
||||||
if (cancellable != NULL)
|
if (cancellable != NULL)
|
||||||
{
|
{
|
||||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
|
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
|
||||||
_("Cancellable initialization not supported"));
|
_("Cancellable initialization not supported"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1442,8 +1442,8 @@ g_socket_connect (GSocket *socket,
|
|||||||
g_prefix_error (error, _("Error connecting: "));
|
g_prefix_error (error, _("Error connecting: "));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_PENDING,
|
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_PENDING,
|
||||||
_("Connection in progress"));
|
_("Connection in progress"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
g_set_error (error, G_IO_ERROR,
|
g_set_error (error, G_IO_ERROR,
|
||||||
@@ -1493,8 +1493,8 @@ g_socket_check_connect_result (GSocket *socket,
|
|||||||
|
|
||||||
if (value != 0)
|
if (value != 0)
|
||||||
{
|
{
|
||||||
g_set_error (error, G_IO_ERROR, socket_io_error_from_errno (value),
|
g_set_error_literal (error, G_IO_ERROR, socket_io_error_from_errno (value),
|
||||||
"%s", socket_strerror (value));
|
socket_strerror (value));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -2618,8 +2618,8 @@ g_socket_send_message (GSocket *socket,
|
|||||||
seem very useful */
|
seem very useful */
|
||||||
if (num_messages != 0)
|
if (num_messages != 0)
|
||||||
{
|
{
|
||||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
|
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
|
||||||
_("GSocketControlMessage not supported on windows"));
|
_("GSocketControlMessage not supported on windows"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -509,8 +509,8 @@ g_socket_client_connect (GSocketClient *client,
|
|||||||
g_propagate_error (error, tmp_error);
|
g_propagate_error (error, tmp_error);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||||
_("Unknown error on connect"));
|
_("Unknown error on connect"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -755,8 +755,8 @@ g_socket_client_enumerator_callback (GObject *object,
|
|||||||
if (tmp_error)
|
if (tmp_error)
|
||||||
set_last_error (data, tmp_error);
|
set_last_error (data, tmp_error);
|
||||||
else if (data->last_error == NULL)
|
else if (data->last_error == NULL)
|
||||||
g_set_error (&data->last_error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
g_set_error_literal (&data->last_error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||||
_("Unknown error on connect"));
|
_("Unknown error on connect"));
|
||||||
|
|
||||||
g_socket_client_async_connect_complete (data);
|
g_socket_client_async_connect_complete (data);
|
||||||
return;
|
return;
|
||||||
|
@@ -196,8 +196,8 @@ g_unix_connection_receive_fd (GUnixConnection *connection,
|
|||||||
|
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
{
|
{
|
||||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||||
_("Received invalid fd"));
|
_("Received invalid fd"));
|
||||||
fd = -1;
|
fd = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user