Revision: 1087 http://svn.sourceforge.net/geany/?rev=1087&view=rev Author: eht16 Date: 2006-12-12 13:52:48 -0800 (Tue, 12 Dec 2006)
Log Message: ----------- Added option to toggle usage of Tab button for indentation.
Modified Paths: -------------- trunk/ChangeLog trunk/src/document.c trunk/src/geany.h trunk/src/keyfile.c trunk/src/sciwrappers.c trunk/src/sciwrappers.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-12-12 21:22:50 UTC (rev 1086) +++ trunk/ChangeLog 2006-12-12 21:52:48 UTC (rev 1087) @@ -1,3 +1,10 @@ +2006-12-12 Enrico Tröger enrico.troeger@uvena.de + + * src/document.c, src/geany.h, src/keyfile.c, src/sciwrappers.c, + src/sciwrappers.h: Added option to toggle usage of Tab button for + indentation. + + 2006-12-12 Nick Treleaven nick.treleaven@btinternet.com
* src/build.c, src/interface.c, src/callbacks.c, src/ui_utils.c,
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2006-12-12 21:22:50 UTC (rev 1086) +++ trunk/src/document.c 2006-12-12 21:52:48 UTC (rev 1087) @@ -275,6 +275,7 @@
document_apply_update_prefs(sci);
+ sci_set_tab_indents(sci, app->use_tab_to_indent); sci_set_symbol_margin(sci, app->show_markers_margin); sci_set_line_numbers(sci, app->show_linenumber_margin, 0); sci_set_lines_wrapped(sci, app->pref_editor_line_breaking);
Modified: trunk/src/geany.h =================================================================== --- trunk/src/geany.h 2006-12-12 21:22:50 UTC (rev 1086) +++ trunk/src/geany.h 2006-12-12 21:52:48 UTC (rev 1087) @@ -93,6 +93,7 @@ gboolean show_markers_margin; gboolean show_linenumber_margin; gboolean brace_match_ltgt; + gboolean use_tab_to_indent; gboolean main_window_realized; // I know, it is a bit confusing, but this line breaking is globally, // to change the default value at startup, I think
Modified: trunk/src/keyfile.c =================================================================== --- trunk/src/keyfile.c 2006-12-12 21:22:50 UTC (rev 1086) +++ trunk/src/keyfile.c 2006-12-12 21:52:48 UTC (rev 1087) @@ -102,6 +102,7 @@ g_key_file_set_boolean(config, PACKAGE, "use_folding", app->pref_editor_folding); g_key_file_set_boolean(config, PACKAGE, "unfold_all_children", app->pref_editor_unfold_all_children); g_key_file_set_boolean(config, PACKAGE, "use_auto_indention", app->pref_editor_use_auto_indention); + g_key_file_set_boolean(config, PACKAGE, "use_tab_to_indent", app->use_tab_to_indent); g_key_file_set_boolean(config, PACKAGE, "use_indicators", app->pref_editor_use_indicators); g_key_file_set_boolean(config, PACKAGE, "show_indent_guide", app->pref_editor_show_indent_guide); g_key_file_set_boolean(config, PACKAGE, "show_white_space", app->pref_editor_show_white_space); @@ -308,6 +309,7 @@ app->msgwindow_visible = utils_get_setting_boolean(config, PACKAGE, "msgwindow_visible", TRUE); app->pref_editor_line_breaking = utils_get_setting_boolean(config, PACKAGE, "line_breaking", FALSE); //default is off for better performance app->pref_editor_use_auto_indention = utils_get_setting_boolean(config, PACKAGE, "use_auto_indention", TRUE); + app->use_tab_to_indent = utils_get_setting_boolean(config, PACKAGE, "use_tab_to_indent", TRUE); app->pref_editor_use_indicators = utils_get_setting_boolean(config, PACKAGE, "use_indicators", TRUE); app->pref_editor_show_indent_guide = utils_get_setting_boolean(config, PACKAGE, "show_indent_guide", FALSE); app->pref_editor_show_white_space = utils_get_setting_boolean(config, PACKAGE, "show_white_space", FALSE);
Modified: trunk/src/sciwrappers.c =================================================================== --- trunk/src/sciwrappers.c 2006-12-12 21:22:50 UTC (rev 1086) +++ trunk/src/sciwrappers.c 2006-12-12 21:52:48 UTC (rev 1087) @@ -908,3 +908,8 @@ return SSM(sci, SCI_GETOVERTYPE, 0, 0); }
+void sci_set_tab_indents(ScintillaObject *sci, gboolean set) +{ + SSM(sci, SCI_SETTABINDENTS, set, 0); +} +
Modified: trunk/src/sciwrappers.h =================================================================== --- trunk/src/sciwrappers.h 2006-12-12 21:22:50 UTC (rev 1086) +++ trunk/src/sciwrappers.h 2006-12-12 21:52:48 UTC (rev 1087) @@ -166,5 +166,6 @@ gint sci_find_bracematch (ScintillaObject * sci, gint pos);
gint sci_get_overtype (ScintillaObject * sci); +void sci_set_tab_indents (ScintillaObject * sci, gboolean set);
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.