anjuta r4192 - trunk/plugins/sourceview



Author: jhs
Date: Wed Aug 27 13:31:04 2008
New Revision: 4192
URL: http://svn.gnome.org/viewvc/anjuta?rev=4192&view=rev

Log:
2008-08-27  Johannes Schmid  <jhs gnome org>

	* plugins/sourceview/sourceview-io.c (insert_text_in_document):
	Increase loading performance
	* plugins/sourceview/sourceview-prefs.c (sourceview_prefs_init):
	Fixed bug where visisble whitespaces option was not respected correctly.  


Modified:
   trunk/plugins/sourceview/sourceview-io.c
   trunk/plugins/sourceview/sourceview-prefs.c

Modified: trunk/plugins/sourceview/sourceview-io.c
==============================================================================
--- trunk/plugins/sourceview/sourceview-io.c	(original)
+++ trunk/plugins/sourceview/sourceview-io.c	Wed Aug 27 13:31:04 2008
@@ -329,10 +329,9 @@
 	gtk_source_buffer_begin_not_undoable_action (GTK_SOURCE_BUFFER (sio->sv->priv->document));
 
 	/* Insert text in the buffer */
-	ianjuta_editor_append (IANJUTA_EDITOR(sio->sv), 
-						   text,
-						   len,
-						   NULL);
+	gtk_text_buffer_set_text (GTK_TEXT_BUFFER (document), 
+							  text,
+							  len);
 
 	gtk_text_buffer_set_modified (GTK_TEXT_BUFFER (document),
 				      FALSE);

Modified: trunk/plugins/sourceview/sourceview-prefs.c
==============================================================================
--- trunk/plugins/sourceview/sourceview-prefs.c	(original)
+++ trunk/plugins/sourceview/sourceview-prefs.c	Wed Aug 27 13:31:04 2008
@@ -305,7 +305,7 @@
 																						get_key(sv, RIGHTMARGIN_POSITION));
 	
 	gtk_source_view_set_draw_spaces (GTK_SOURCE_VIEW (sv->priv->view),
-																	 get_key (sv, VISIBLE_SPACES));
+																	 get_key (sv, VISIBLE_SPACES) ? GTK_SOURCE_DRAW_SPACES_ALL : 0);
 		
 	init_fonts(sv);
 	



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