anjuta r3650 - in trunk: . plugins/sourceview



Author: jhs
Date: Wed Feb 13 19:47:07 2008
New Revision: 3650
URL: http://svn.gnome.org/viewvc/anjuta?rev=3650&view=rev

Log:
2008-02-13  Johannes Schmid <jhs gnome org>

	* plugins/sourceview/sourceview.c: (ieditor_set_tab_size):
	Also set indentation size correctly, when tab size is set
	by language support plugin

Modified:
   trunk/ChangeLog
   trunk/plugins/sourceview/sourceview.c

Modified: trunk/plugins/sourceview/sourceview.c
==============================================================================
--- trunk/plugins/sourceview/sourceview.c	(original)
+++ trunk/plugins/sourceview/sourceview.c	Wed Feb 13 19:47:07 2008
@@ -166,7 +166,7 @@
 {
 	gboolean monitor_enabled = anjuta_preferences_get_int (sv->priv->prefs, MONITOR_KEY);
 
-	if (monitor_enabled && sv->priv->monitor != NULL) 
+	if (monitor_enabled && sv->priv->monitor != NULL)
 	{
 		DEBUG_PRINT ("Monitor removed for %s", anjuta_document_get_uri(sv->priv->document));
 		gnome_vfs_monitor_cancel(sv->priv->monitor);
@@ -731,6 +731,7 @@
 {
 	Sourceview* sv = ANJUTA_SOURCEVIEW(editor);
 	gtk_source_view_set_tab_width(GTK_SOURCE_VIEW(sv->priv->view), tabsize);
+	gtk_source_view_set_indent_width (GTK_SOURCE_VIEW (sv->priv->view), tabsize);
 }
 
 static gboolean



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