[anjuta-extras] scintilla: Implement new indentation functions
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta-extras] scintilla: Implement new indentation functions
- Date: Tue, 25 Dec 2012 10:07:11 +0000 (UTC)
commit 925c22f5b1a73a8493e844b857e287949c1f8089
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Mon Dec 24 20:20:24 2012 +0100
scintilla: Implement new indentation functions
plugins/scintilla/text_editor.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/plugins/scintilla/text_editor.c b/plugins/scintilla/text_editor.c
index 3142238..0717520 100644
--- a/plugins/scintilla/text_editor.c
+++ b/plugins/scintilla/text_editor.c
@@ -2444,6 +2444,20 @@ itext_editor_set_auto_indent (IAnjutaEditor *editor, gboolean auto_indent, GErro
text_editor_command (TEXT_EDITOR(editor), ANE_SETAUTOINDENTATION, auto_indent, 0);
}
+static gint
+itext_editor_get_indent_size (IAnjutaEditor *editor, GError **e)
+{
+ return scintilla_send_message (SCINTILLA (TEXT_EDITOR (editor)->scintilla),
+ SCI_GETINDENT, 0, 0);
+}
+
+static void
+itext_editor_set_indent_size (IAnjutaEditor *editor, gint indentsize, GError **e)
+{
+ scintilla_send_message (SCINTILLA (TEXT_EDITOR (editor)->scintilla),
+ SCI_SETINDENT, indentsize, 0);
+}
+
static void
itext_editor_goto_line (IAnjutaEditor *editor, gint lineno, GError **e)
{
@@ -2711,6 +2725,8 @@ itext_editor_iface_init (IAnjutaEditorIface *iface)
iface->get_use_spaces = itext_editor_get_use_spaces;
iface->set_use_spaces = itext_editor_set_use_spaces;
iface->set_auto_indent = itext_editor_set_auto_indent;
+ iface->get_indentsize = itext_editor_get_indent_size;
+ iface->set_indentsize = itext_editor_set_indent_size;
iface->goto_line = itext_editor_goto_line;
iface->goto_start = itext_editor_goto_start;
iface->goto_end = itext_editor_goto_end;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]