Add sci_get_current_line() to plugin API.

Add ui_table_add_row(), ui_path_box_new() to plugin API (thanks to
Yura Siamashka).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2221 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-02-04 12:49:14 +00:00
parent 39f97b19f4
commit 4c747131c1
3 changed files with 13 additions and 3 deletions

View File

@ -2,6 +2,10 @@
* doc/geany.txt, doc/geany.html: * doc/geany.txt, doc/geany.html:
List Cut, Copy, Paste keybinding descriptions. List Cut, Copy, Paste keybinding descriptions.
* src/plugindata.h, src/plugins.c:
Add sci_get_current_line() to plugin API.
Add ui_table_add_row(), ui_path_box_new() to plugin API (thanks to
Yura Siamashka).
2008-02-04 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> 2008-02-04 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -93,7 +93,7 @@
/* The API version should be incremented whenever any plugin data types below are /* The API version should be incremented whenever any plugin data types below are
* modified or appended to. */ * modified or appended to. */
static const gint api_version = 40; static const gint api_version = 41;
/* The ABI version should be incremented whenever existing fields in the plugin /* The ABI version should be incremented whenever existing fields in the plugin
* data types below have to be changed or reordered. It should stay the same if fields * data types below have to be changed or reordered. It should stay the same if fields
@ -265,6 +265,7 @@ typedef struct ScintillaFuncs
gint (*find_bracematch) (struct _ScintillaObject* sci, gint pos); gint (*find_bracematch) (struct _ScintillaObject* sci, gint pos);
gint (*get_style_at) (struct _ScintillaObject *sci, gint position); gint (*get_style_at) (struct _ScintillaObject *sci, gint position);
gchar (*get_char_at) (struct _ScintillaObject *sci, gint pos); gchar (*get_char_at) (struct _ScintillaObject *sci, gint pos);
gint (*get_current_line) (struct _ScintillaObject *sci);
} }
ScintillaFuncs; ScintillaFuncs;
@ -301,6 +302,8 @@ typedef struct UIUtilsFuncs
/* set_statusbar() also appends to the message window status tab if log is TRUE. */ /* set_statusbar() also appends to the message window status tab if log is TRUE. */
void (*set_statusbar) (gboolean log, const gchar *format, ...) G_GNUC_PRINTF (2, 3); void (*set_statusbar) (gboolean log, const gchar *format, ...) G_GNUC_PRINTF (2, 3);
void (*table_add_row) (GtkTable *table, gint row, ...) G_GNUC_NULL_TERMINATED;
GtkWidget* (*path_box_new) (const gchar *title, GtkFileChooserAction action, GtkEntry *entry);
} }
UIUtilsFuncs; UIUtilsFuncs;

View File

@ -134,7 +134,8 @@ static ScintillaFuncs sci_funcs = {
&sci_scroll_caret, &sci_scroll_caret,
&sci_find_bracematch, &sci_find_bracematch,
&sci_get_style_at, &sci_get_style_at,
&sci_get_char_at &sci_get_char_at,
&sci_get_current_line,
}; };
static TemplateFuncs template_funcs = { static TemplateFuncs template_funcs = {
@ -158,7 +159,9 @@ static UtilsFuncs utils_funcs = {
static UIUtilsFuncs uiutils_funcs = { static UIUtilsFuncs uiutils_funcs = {
&ui_dialog_vbox_new, &ui_dialog_vbox_new,
&ui_frame_new_with_alignment, &ui_frame_new_with_alignment,
&ui_set_statusbar &ui_set_statusbar,
&ui_table_add_row,
&ui_path_box_new,
}; };
static DialogFuncs dialog_funcs = { static DialogFuncs dialog_funcs = {