[gedit/file_too_big: 10/11] Fix error creation
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/file_too_big: 10/11] Fix error creation
- Date: Mon, 22 Mar 2021 21:08:59 +0000 (UTC)
commit 9aed3b412e91cbc46c2ceb1b384c308d1a805815
Author: Jordi Mas <jmas softcatala org>
Date: Mon Mar 22 21:58:26 2021 +0100
Fix error creation
gedit/gedit-tab.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index cfba971a0..5b1e996c6 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -2076,7 +2076,7 @@ launch_loader (GTask *loading_task,
GFile *location = gtk_source_file_loader_get_location (data->loader);
set_editable (data->tab, FALSE);
- error = g_error_new (GTK_SOURCE_FILE_LOADER_ERROR, 0, "");
+ error = g_error_new_literal (GTK_SOURCE_FILE_LOADER_ERROR, 0, "");
error->code = GTK_SOURCE_FILE_LOADER_ERROR_TOO_BIG;
info_bar = gedit_io_loading_error_info_bar_new (location, NULL, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]