Revision: 1378
http://svn.sourceforge.net/geany/?rev=1378&view=rev
Author: eht16
Date: 2007-03-09 07:38:31 -0800 (Fri, 09 Mar 2007)
Log Message:
-----------
Set default highlighting style for filetype None to get it also inverted if invert_all is set.
Reset all previously defined styles when switching filetype to None.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/highlighting.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-03-09 14:06:20 UTC (rev 1377)
+++ trunk/ChangeLog 2007-03-09 15:38:31 UTC (rev 1378)
@@ -7,8 +7,13 @@
and unreachable code).
* src/sci_cb.c: Auto completion of multi line comments is now (again)
configurable with the auto complete constructs option.
+ * src/highlighting.c:
+ Set default highlighting style for filetype None to get it also
+ inverted if invert_all is set.
+ Reset all previously defined styles when switching filetype to None.
+
2007-03-09 Nick Treleaven <nick.treleaven(a)btinternet.com>
* src/interface.c, doc/geany.docbook, data/filetypes.*, geany.glade:
Modified: trunk/src/highlighting.c
===================================================================
--- trunk/src/highlighting.c 2007-03-09 14:06:20 UTC (rev 1377)
+++ trunk/src/highlighting.c 2007-03-09 15:38:31 UTC (rev 1378)
@@ -1976,6 +1976,11 @@
SSM (sci, SCI_SETLEXER, SCLEX_NULL, 0);
SSM(sci, SCI_SETWORDCHARS, 0, (sptr_t) common_style_set.wordchars);
+
+ SSM(sci, SCI_STYLESETFORE, STYLE_DEFAULT, invert(0x000000));
+ SSM(sci, SCI_STYLESETBACK, STYLE_DEFAULT, invert(0xffffff));
+
+ SSM(sci, SCI_STYLECLEARALL, 0, 0);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1377
http://svn.sourceforge.net/geany/?rev=1377&view=rev
Author: eht16
Date: 2007-03-09 06:06:20 -0800 (Fri, 09 Mar 2007)
Log Message:
-----------
Auto completion of multi line comments is now (again) configurable with the auto complete constructs option.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/sci_cb.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-03-09 13:52:26 UTC (rev 1376)
+++ trunk/ChangeLog 2007-03-09 14:06:20 UTC (rev 1377)
@@ -5,6 +5,8 @@
src/search.c, src/tools.c, src/ui_utils.c, src/utils.c:
Fixed several compiler warnings (mainly shadowing local variables
and unreachable code).
+ * src/sci_cb.c: Auto completion of multi line comments is now (again)
+ configurable with the auto complete constructs option.
2007-03-09 Nick Treleaven <nick.treleaven(a)btinternet.com>
Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c 2007-03-09 13:52:26 UTC (rev 1376)
+++ trunk/src/sci_cb.c 2007-03-09 14:06:20 UTC (rev 1377)
@@ -349,15 +349,16 @@
sci_add_text(sci, text);
g_free(text);
}
-
- /// TODO on which option should auto_multiline() depend? indention vs. auto completion
- // " * " auto completion in multiline C/C++/D/Java comments
- auto_multiline(sci, pos);
}
}
if (app->pref_editor_auto_complete_constructs)
+ {
+ // " * " auto completion in multiline C/C++/D/Java comments
+ auto_multiline(sci, pos);
+
sci_cb_auto_latex(idx, pos);
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1375
http://svn.sourceforge.net/geany/?rev=1375&view=rev
Author: ntrel
Date: 2007-03-09 04:26:55 -0800 (Fri, 09 Mar 2007)
Log Message:
-----------
Fix indentation spelling ;-)
Modified Paths:
--------------
trunk/ChangeLog
trunk/data/filetypes.asm
trunk/data/filetypes.c
trunk/data/filetypes.caml
trunk/data/filetypes.conf
trunk/data/filetypes.cpp
trunk/data/filetypes.css
trunk/data/filetypes.d
trunk/data/filetypes.docbook
trunk/data/filetypes.ferite
trunk/data/filetypes.fortran
trunk/data/filetypes.html
trunk/data/filetypes.java
trunk/data/filetypes.javascript
trunk/data/filetypes.latex
trunk/data/filetypes.lua
trunk/data/filetypes.makefile
trunk/data/filetypes.oms
trunk/data/filetypes.pascal
trunk/data/filetypes.perl
trunk/data/filetypes.php
trunk/data/filetypes.python
trunk/data/filetypes.ruby
trunk/data/filetypes.sh
trunk/data/filetypes.sql
trunk/data/filetypes.tcl
trunk/data/filetypes.vhdl
trunk/data/filetypes.xml
trunk/doc/geany.docbook
trunk/geany.glade
trunk/src/interface.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/ChangeLog 2007-03-09 12:26:55 UTC (rev 1375)
@@ -1,3 +1,9 @@
+2007-03-09 Nick Treleaven <nick.treleaven(a)btinternet.com>
+
+ * src/interface.c, doc/geany.docbook, data/filetypes.*, geany.glade:
+ Fix indentation spelling.
+
+
2007-03-08 Nick Treleaven <nick.treleaven(a)btinternet.com>
* src/document.c:
Modified: trunk/data/filetypes.asm
===================================================================
--- trunk/data/filetypes.asm 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.asm 2007-03-09 12:26:55 UTC (rev 1375)
@@ -34,7 +34,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.c
===================================================================
--- trunk/data/filetypes.c 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.c 2007-03-09 12:26:55 UTC (rev 1375)
@@ -44,7 +44,7 @@
#comment_close=*/
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.caml
===================================================================
--- trunk/data/filetypes.caml 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.caml 2007-03-09 12:26:55 UTC (rev 1375)
@@ -31,7 +31,7 @@
comment_close=*)
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.conf
===================================================================
--- trunk/data/filetypes.conf 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.conf 2007-03-09 12:26:55 UTC (rev 1375)
@@ -20,7 +20,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.cpp
===================================================================
--- trunk/data/filetypes.cpp 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.cpp 2007-03-09 12:26:55 UTC (rev 1375)
@@ -44,7 +44,7 @@
#comment_close=*/
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.css
===================================================================
--- trunk/data/filetypes.css 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.css 2007-03-09 12:26:55 UTC (rev 1375)
@@ -33,7 +33,7 @@
comment_close=*/
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.d
===================================================================
--- trunk/data/filetypes.d 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.d 2007-03-09 12:26:55 UTC (rev 1375)
@@ -43,7 +43,7 @@
#comment_close=+/
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.docbook
===================================================================
--- trunk/data/filetypes.docbook 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.docbook 2007-03-09 12:26:55 UTC (rev 1375)
@@ -46,7 +46,7 @@
comment_close=-->
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.ferite
===================================================================
--- trunk/data/filetypes.ferite 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.ferite 2007-03-09 12:26:55 UTC (rev 1375)
@@ -40,7 +40,7 @@
#comment_close=*/
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.fortran
===================================================================
--- trunk/data/filetypes.fortran 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.fortran 2007-03-09 12:26:55 UTC (rev 1375)
@@ -35,7 +35,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.html
===================================================================
--- trunk/data/filetypes.html 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.html 2007-03-09 12:26:55 UTC (rev 1375)
@@ -13,7 +13,7 @@
comment_close=-->
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.java
===================================================================
--- trunk/data/filetypes.java 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.java 2007-03-09 12:26:55 UTC (rev 1375)
@@ -39,7 +39,7 @@
comment_close=*/
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.javascript
===================================================================
--- trunk/data/filetypes.javascript 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.javascript 2007-03-09 12:26:55 UTC (rev 1375)
@@ -35,7 +35,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.latex
===================================================================
--- trunk/data/filetypes.latex 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.latex 2007-03-09 12:26:55 UTC (rev 1375)
@@ -21,7 +21,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.lua
===================================================================
--- trunk/data/filetypes.lua 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.lua 2007-03-09 12:26:55 UTC (rev 1375)
@@ -49,7 +49,7 @@
#comment_close=]]--
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.makefile
===================================================================
--- trunk/data/filetypes.makefile 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.makefile 2007-03-09 12:26:55 UTC (rev 1375)
@@ -21,7 +21,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.oms
===================================================================
--- trunk/data/filetypes.oms 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.oms 2007-03-09 12:26:55 UTC (rev 1375)
@@ -27,7 +27,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.pascal
===================================================================
--- trunk/data/filetypes.pascal 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.pascal 2007-03-09 12:26:55 UTC (rev 1375)
@@ -27,7 +27,7 @@
comment_close=}
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.perl
===================================================================
--- trunk/data/filetypes.perl 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.perl 2007-03-09 12:26:55 UTC (rev 1375)
@@ -45,7 +45,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.php
===================================================================
--- trunk/data/filetypes.php 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.php 2007-03-09 12:26:55 UTC (rev 1375)
@@ -13,7 +13,7 @@
comment_close=*/
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.python
===================================================================
--- trunk/data/filetypes.python 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.python 2007-03-09 12:26:55 UTC (rev 1375)
@@ -30,7 +30,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.ruby
===================================================================
--- trunk/data/filetypes.ruby 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.ruby 2007-03-09 12:26:55 UTC (rev 1375)
@@ -49,7 +49,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.sh
===================================================================
--- trunk/data/filetypes.sh 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.sh 2007-03-09 12:26:55 UTC (rev 1375)
@@ -26,7 +26,7 @@
comment_close=
# set to false if a comment character/string should start a column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.sql
===================================================================
--- trunk/data/filetypes.sql 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.sql 2007-03-09 12:26:55 UTC (rev 1375)
@@ -31,7 +31,7 @@
comment_close=*/
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.tcl
===================================================================
--- trunk/data/filetypes.tcl 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.tcl 2007-03-09 12:26:55 UTC (rev 1375)
@@ -37,7 +37,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.vhdl
===================================================================
--- trunk/data/filetypes.vhdl 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.vhdl 2007-03-09 12:26:55 UTC (rev 1375)
@@ -36,7 +36,7 @@
comment_close=
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/data/filetypes.xml
===================================================================
--- trunk/data/filetypes.xml 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/data/filetypes.xml 2007-03-09 12:26:55 UTC (rev 1375)
@@ -83,7 +83,7 @@
comment_close=-->
# set to false if a comment character/string should start at column 0 of a line, true uses any
-# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
+# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
Modified: trunk/doc/geany.docbook
===================================================================
--- trunk/doc/geany.docbook 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/doc/geany.docbook 2007-03-09 12:26:55 UTC (rev 1375)
@@ -380,16 +380,16 @@
was copied to the new position.
</para>
</section>
- <section id="general_indention">
- <title>Auto indention</title>
+ <section id="general_indentation">
+ <title>Auto indentation</title>
<para>
- <application>Geany</application> knows three types of auto indention:
+ <application>Geany</application> knows three types of auto indentation:
None, Basic and Advanced.
- <variablelist><title>Auto indention types</title>
+ <variablelist><title>Auto indentation types</title>
<varlistentry><term>None</term>
<listitem>
<para>
- Disables auto indention completely.
+ Disables auto indentation completely.
</para>
</listitem>
</varlistentry>
Modified: trunk/geany.glade
===================================================================
--- trunk/geany.glade 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/geany.glade 2007-03-09 12:26:55 UTC (rev 1375)
@@ -5319,7 +5319,7 @@
<child>
<widget class="GtkLabel" id="label183">
<property name="visible">True</property>
- <property name="label" translatable="yes">Auto indention mode:</property>
+ <property name="label" translatable="yes">Auto indentation mode:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -5344,7 +5344,7 @@
<child>
<widget class="GtkEventBox" id="eventbox2">
<property name="visible">True</property>
- <property name="tooltip" translatable="yes">Selects the indention mode. Use None to disable auto indention completely. Basic indents new lines with the same indention as the previous line. Advanced does the same and indents also curly brackets.</property>
+ <property name="tooltip" translatable="yes">Selects the indentation mode. Use None to disable auto indentation completely. Basic indents new lines with the same indentation as the previous line. Advanced does the same and indents also curly brackets.</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
Modified: trunk/src/interface.c
===================================================================
--- trunk/src/interface.c 2007-03-09 12:18:42 UTC (rev 1374)
+++ trunk/src/interface.c 2007-03-09 12:26:55 UTC (rev 1375)
@@ -3334,14 +3334,14 @@
gtk_widget_show (hbox7);
gtk_box_pack_start (GTK_BOX (vbox17), hbox7, FALSE, FALSE, 0);
- label183 = gtk_label_new (_("Auto indention mode:"));
+ label183 = gtk_label_new (_("Auto indentation mode:"));
gtk_widget_show (label183);
gtk_box_pack_start (GTK_BOX (hbox7), label183, FALSE, FALSE, 0);
eventbox2 = gtk_event_box_new ();
gtk_widget_show (eventbox2);
gtk_box_pack_start (GTK_BOX (hbox7), eventbox2, FALSE, TRUE, 5);
- gtk_tooltips_set_tip (tooltips, eventbox2, _("Selects the indention mode. Use None to disable auto indention completely. Basic indents new lines with the same indention as the previous line. Advanced does the same and indents also curly brackets."), NULL);
+ gtk_tooltips_set_tip (tooltips, eventbox2, _("Selects the indentation mode. Use None to disable auto indentation completely. Basic indents new lines with the same indentation as the previous line. Advanced does the same and indents also curly brackets."), NULL);
combo_auto_indent_mode = gtk_combo_box_new_text ();
gtk_widget_show (combo_auto_indent_mode);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1374
http://svn.sourceforge.net/geany/?rev=1374&view=rev
Author: ntrel
Date: 2007-03-09 04:18:42 -0800 (Fri, 09 Mar 2007)
Log Message:
-----------
Fix sign comparison warnings.
Modified Paths:
--------------
trunk/src/prefs.c
trunk/src/sci_cb.c
Modified: trunk/src/prefs.c
===================================================================
--- trunk/src/prefs.c 2007-03-08 18:02:08 UTC (rev 1373)
+++ trunk/src/prefs.c 2007-03-09 12:18:42 UTC (rev 1374)
@@ -676,7 +676,7 @@
// re-colourise all open documents, if tab width or long line settings have changed
for (i = 0; i < doc_array->len; i++)
{
- if (DOC_IDX_VALID(i))
+ if (doc_list[i].is_valid)
{
document_apply_update_prefs(i);
if (! app->pref_editor_folding)
Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c 2007-03-08 18:02:08 UTC (rev 1373)
+++ trunk/src/sci_cb.c 2007-03-09 12:18:42 UTC (rev 1374)
@@ -364,7 +364,8 @@
static void get_indent(ScintillaObject *sci, gint pos, gboolean use_this_line)
{
// very simple indentation algorithm
- gint i, prev_line, len, j = 0;
+ guint i, len, j = 0;
+ gint prev_line;
gchar *linebuf;
prev_line = sci_get_line_from_position(sci, pos);
@@ -414,8 +415,8 @@
}
else
{ // insert as many spaces as a tabulator would take
- gint i;
- for (i = 0; i < app->pref_editor_tab_width; i++)
+ gint n;
+ for (n = 0; n < app->pref_editor_tab_width; n++)
indent[j++] = ' ';
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.