SF.net SVN: geany: [1408] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Tue Mar 20 18:15:07 UTC 2007


Revision: 1408
          http://svn.sourceforge.net/geany/?rev=1408&view=rev
Author:   eht16
Date:     2007-03-20 11:15:07 -0700 (Tue, 20 Mar 2007)

Log Message:
-----------
Added option to change the caret width.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/data/filetypes.common
    trunk/doc/geany.docbook
    trunk/src/highlighting.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-03-19 23:57:53 UTC (rev 1407)
+++ trunk/ChangeLog	2007-03-20 18:15:07 UTC (rev 1408)
@@ -1,3 +1,9 @@
+2007-03-20  Enrico Tröger  <enrico.troeger at uvena.de>
+
+ * data/filetypes.common, doc/geany.docbook, src/highlighting.c:
+   Added option to change the caret width.
+
+
 2007-03-15  Nick Treleaven  <nick.treleaven at btinternet.com>
 
  * src/keybindings.c, src/keybindings.h, src/sciwrappers.c,

Modified: trunk/data/filetypes.common
===================================================================
--- trunk/data/filetypes.common	2007-03-19 23:57:53 UTC (rev 1407)
+++ trunk/data/filetypes.common	2007-03-20 18:15:07 UTC (rev 1408)
@@ -23,6 +23,10 @@
 # colour of the caret(the blinking cursor), only first argument is interpreted
 caret=0x000000;0x0;false;false
 
+# width of the caret(the blinking cursor), only first argument is interpreted
+# width in pixels, use 0 to make it invisible, maximum width is 3
+caret_width=1;0;false;false
+
 # set foreground and background colour of indentation guides
 indent_guide=0xc0c0c0;0xffffff;false;false
 

Modified: trunk/doc/geany.docbook
===================================================================
--- trunk/doc/geany.docbook	2007-03-19 23:57:53 UTC (rev 1407)
+++ trunk/doc/geany.docbook	2007-03-20 18:15:07 UTC (rev 1408)
@@ -1807,6 +1807,15 @@
 									<entry>caret=0x000000;0x0;false;false</entry>
 								</row>
 								<row>
+									<entry>caret_width</entry>
+									<entry>The width for the caret(the blinking cursor).
+										   Only the first argument is interpreted. The width is
+										   specified in pixels with a maximum of three pixel.
+										   Use the width 0 to make the caret invisible.
+									</entry>
+									<entry>caret=1;0;false;false</entry>
+								</row>
+								<row>
 									<entry>current_line</entry>
 									<entry>The style for colouring the background of the current
 										   line. Only the second and third arguments are interpreted.

Modified: trunk/src/highlighting.c
===================================================================
--- trunk/src/highlighting.c	2007-03-19 23:57:53 UTC (rev 1407)
+++ trunk/src/highlighting.c	2007-03-20 18:15:07 UTC (rev 1408)
@@ -410,6 +410,9 @@
 		get_keyfile_int(config, config_home, "styling", "folding_horiz_line",
 			0, 0, &tmp_style);
 		common_style_set.folding_style.draw_line = tmp_style.foreground;
+		get_keyfile_int(config, config_home, "styling", "caret_width",
+			1, 0, &tmp_style);
+		common_style_set.styling[GCS_CARET].background = tmp_style.foreground;
 	}
 
 	get_keyfile_wordchars(config, config_home, &common_style_set.wordchars);
@@ -435,8 +438,9 @@
 
 	SSM(sci, SCI_STYLECLEARALL, 0, 0);
 
-	// caret colour
+	// caret colour and width
 	SSM(sci, SCI_SETCARETFORE, invert(common_style_set.styling[GCS_CARET].foreground), 0);
+	SSM(sci, SCI_SETCARETWIDTH, common_style_set.styling[GCS_CARET].background, 0);
 
 	// colourize the current line
 	SSM(sci, SCI_SETCARETLINEBACK, invert(common_style_set.styling[GCS_CURRENT_LINE].background), 0);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list