[gtksourceview] contextengine: use g_set_error_literal



commit 54cf43c05b26a3c8de648f403799b67708cecfb3
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Dec 26 23:11:50 2011 +0100

    contextengine: use g_set_error_literal

 gtksourceview/gtksourcecontextengine.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtksourceview/gtksourcecontextengine.c b/gtksourceview/gtksourcecontextengine.c
index f21c504..d16afed 100644
--- a/gtksourceview/gtksourcecontextengine.c
+++ b/gtksourceview/gtksourcecontextengine.c
@@ -2951,9 +2951,9 @@ regex_new (const gchar           *pattern,
 
 	if (find_single_byte_escape (pattern))
 	{
-		g_set_error (error, GTK_SOURCE_CONTEXT_ENGINE_ERROR,
-			     GTK_SOURCE_CONTEXT_ENGINE_ERROR_INVALID_REGEX,
-			     "%s", _("using \\C is not supported in language definitions"));
+		g_set_error_literal (error, GTK_SOURCE_CONTEXT_ENGINE_ERROR,
+		                     GTK_SOURCE_CONTEXT_ENGINE_ERROR_INVALID_REGEX,
+		                     _("using \\C is not supported in language definitions"));
 		return NULL;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]