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:
parent
39f97b19f4
commit
4c747131c1
@ -2,6 +2,10 @@
|
||||
|
||||
* doc/geany.txt, doc/geany.html:
|
||||
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>
|
||||
|
||||
@ -93,7 +93,7 @@
|
||||
|
||||
/* The API version should be incremented whenever any plugin data types below are
|
||||
* 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
|
||||
* 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 (*get_style_at) (struct _ScintillaObject *sci, gint position);
|
||||
gchar (*get_char_at) (struct _ScintillaObject *sci, gint pos);
|
||||
gint (*get_current_line) (struct _ScintillaObject *sci);
|
||||
}
|
||||
ScintillaFuncs;
|
||||
|
||||
@ -301,6 +302,8 @@ typedef struct UIUtilsFuncs
|
||||
|
||||
/* 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 (*table_add_row) (GtkTable *table, gint row, ...) G_GNUC_NULL_TERMINATED;
|
||||
GtkWidget* (*path_box_new) (const gchar *title, GtkFileChooserAction action, GtkEntry *entry);
|
||||
}
|
||||
UIUtilsFuncs;
|
||||
|
||||
|
||||
@ -134,7 +134,8 @@ static ScintillaFuncs sci_funcs = {
|
||||
&sci_scroll_caret,
|
||||
&sci_find_bracematch,
|
||||
&sci_get_style_at,
|
||||
&sci_get_char_at
|
||||
&sci_get_char_at,
|
||||
&sci_get_current_line,
|
||||
};
|
||||
|
||||
static TemplateFuncs template_funcs = {
|
||||
@ -158,7 +159,9 @@ static UtilsFuncs utils_funcs = {
|
||||
static UIUtilsFuncs uiutils_funcs = {
|
||||
&ui_dialog_vbox_new,
|
||||
&ui_frame_new_with_alignment,
|
||||
&ui_set_statusbar
|
||||
&ui_set_statusbar,
|
||||
&ui_table_add_row,
|
||||
&ui_path_box_new,
|
||||
};
|
||||
|
||||
static DialogFuncs dialog_funcs = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user