gtksourceview r2255 - in branches/gtksourcecompletion: . gtksourceview tests



Author: jessevdk
Date: Fri Apr 10 21:47:27 2009
New Revision: 2255
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2255&view=rev

Log:
	* gtksourceview/gtksourcecontextengine.c:
	* tests/test-widget.c:
	
	Fixed string format warnings


Modified:
   branches/gtksourcecompletion/ChangeLog
   branches/gtksourcecompletion/gtksourceview/gtksourcecontextengine.c
   branches/gtksourcecompletion/tests/test-widget.c

Modified: branches/gtksourcecompletion/gtksourceview/gtksourcecontextengine.c
==============================================================================
--- branches/gtksourcecompletion/gtksourceview/gtksourcecontextengine.c	(original)
+++ branches/gtksourcecompletion/gtksourceview/gtksourcecontextengine.c	Fri Apr 10 21:47:27 2009
@@ -2605,6 +2605,7 @@
 	{
 		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"));
 		return NULL;
 	}
@@ -4544,7 +4545,8 @@
 
 		if (g_timer_elapsed (timer, NULL) * 1000 > MAX_TIME_FOR_ONE_LINE)
 		{
-			g_critical (_("Highlighting a single line took too much time, "
+			g_critical ("%s",
+			            _("Highlighting a single line took too much time, "
 				      "syntax highlighting will be disabled"));
 			disable_highlighting (ce);
 			break;

Modified: branches/gtksourcecompletion/tests/test-widget.c
==============================================================================
--- branches/gtksourcecompletion/tests/test-widget.c	(original)
+++ branches/gtksourcecompletion/tests/test-widget.c	Fri Apr 10 21:47:27 2009
@@ -261,6 +261,7 @@
 					 GTK_DIALOG_DESTROY_WITH_PARENT,
 					 GTK_MESSAGE_ERROR,
 					 GTK_BUTTONS_OK,
+					 "%s",
 					 tmp);
 	g_free (tmp);
 



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