Kaydet (Commit) be64b177 authored tarafından Thomas Martitz's avatar Thomas Martitz

plugin api: convert GeanyEditor to GBoxed internally

GeanyObject signals require GTypes to be gobject-introspection compatible.
üst 7702a463
......@@ -5309,3 +5309,15 @@ void editor_insert_snippet(GeanyEditor *editor, gint pos, const gchar *snippet)
editor_insert_text_block(editor, pattern->str, pos, -1, -1, TRUE);
g_string_free(pattern, TRUE);
}
static void *copy_(void *src) { return src; }
static void free_(void *doc) { }
/** @gironly
* Gets the GType of GeanyEditor
*
* @return the GeanyEditor type */
GEANY_API_SYMBOL
GType editor_get_type (void);
G_DEFINE_BOXED_TYPE(GeanyEditor, editor, copy_, free_);
......@@ -139,6 +139,10 @@ typedef struct GeanyEditorPrefs
}
GeanyEditorPrefs;
#define GEANY_TYPE_EDITOR (editor_get_type())
GType editor_get_type (void);
/** Editor-owned fields for each document. */
typedef struct GeanyEditor
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment