SF.net SVN: geany:[5164] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Sun Aug 15 17:44:31 UTC 2010
Revision: 5164
http://geany.svn.sourceforge.net/geany/?rev=5164&view=rev
Author: eht16
Date: 2010-08-15 17:44:31 +0000 (Sun, 15 Aug 2010)
Log Message:
-----------
Add editor_goto_pos() to the plugin API.
Modified Paths:
--------------
trunk/ChangeLog
trunk/plugins/geanyfunctions.h
trunk/src/editor.c
trunk/src/plugindata.h
trunk/src/plugins.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-08-15 13:33:32 UTC (rev 5163)
+++ trunk/ChangeLog 2010-08-15 17:44:31 UTC (rev 5164)
@@ -6,6 +6,9 @@
Rewrite the logic to auto detect encodings a bit to make it more
readable and fix a slightly wrong detection on Windows
(closes #3019573).
+ * plugins/geanyfunctions.h, src/editor.c, src/plugindata.h,
+ src/plugins.c:
+ Add editor_goto_pos() to the plugin API.
2010-08-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/plugins/geanyfunctions.h
===================================================================
--- trunk/plugins/geanyfunctions.h 2010-08-15 13:33:32 UTC (rev 5163)
+++ trunk/plugins/geanyfunctions.h 2010-08-15 17:44:31 UTC (rev 5164)
@@ -90,6 +90,8 @@
geany_functions->p_editor->editor_insert_text_block
#define editor_get_eol_char_mode \
geany_functions->p_editor->editor_get_eol_char_mode
+#define editor_goto_pos \
+ geany_functions->p_editor->editor_goto_pos
#define scintilla_send_message \
geany_functions->p_scintilla->scintilla_send_message
#define scintilla_new \
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2010-08-15 13:33:32 UTC (rev 5163)
+++ trunk/src/editor.c 2010-08-15 17:44:31 UTC (rev 5164)
@@ -4620,8 +4620,16 @@
}
-/* Move to position @a pos, switching to the document if necessary,
- * setting a marker if @a mark is set. */
+/** Moves to position @a pos, switching to the document if necessary,
+ * setting a marker if @a mark is set.
+ *
+ * @param editor Editor.
+ * @param pos The position.
+ * @param mark Whether to set a mark on the position.
+ * @return @c TRUE if action has been performed, otherwise @c FALSE.
+ *
+ * @since 0.20
+ **/
gboolean editor_goto_pos(GeanyEditor *editor, gint pos, gboolean mark)
{
gint page_num;
Modified: trunk/src/plugindata.h
===================================================================
--- trunk/src/plugindata.h 2010-08-15 13:33:32 UTC (rev 5163)
+++ trunk/src/plugindata.h 2010-08-15 17:44:31 UTC (rev 5164)
@@ -50,7 +50,7 @@
enum {
/** The Application Programming Interface (API) version, incremented
* whenever any plugin data types are modified or appended to. */
- GEANY_API_VERSION = 193,
+ GEANY_API_VERSION = 194,
/** The Application Binary Interface (ABI) version, incremented whenever
* existing fields in the plugin data types have to be changed or reordered. */
@@ -599,6 +599,7 @@
gboolean replace_newlines);
gint (*editor_get_eol_char_mode) (struct GeanyEditor *editor);
+ gboolean (*editor_goto_pos) (struct GeanyEditor *editor, gint pos, gboolean mark);
}
EditorFuncs;
Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c 2010-08-15 13:33:32 UTC (rev 5163)
+++ trunk/src/plugins.c 2010-08-15 17:44:31 UTC (rev 5164)
@@ -123,7 +123,8 @@
&editor_get_eol_char_len,
&editor_get_eol_char,
&editor_insert_text_block,
- &editor_get_eol_char_mode
+ &editor_get_eol_char_mode,
+ &editor_goto_pos
};
static ScintillaFuncs scintilla_funcs = {
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