Branch: refs/heads/master Author: Thomas Martitz kugel@rockbox.org Committer: Thomas Martitz kugel@rockbox.org Date: Wed, 22 Jun 2016 14:10:31 UTC Commit: be64b177ca0308ba1fa4b8a14d6b22bd2326e6ef https://github.com/geany/geany/commit/be64b177ca0308ba1fa4b8a14d6b22bd2326e6...
Log Message: ----------- plugin api: convert GeanyEditor to GBoxed internally
GeanyObject signals require GTypes to be gobject-introspection compatible.
Modified Paths: -------------- src/editor.c src/editor.h
Modified: src/editor.c 12 lines changed, 12 insertions(+), 0 deletions(-) =================================================================== @@ -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_);
Modified: src/editor.h 4 lines changed, 4 insertions(+), 0 deletions(-) =================================================================== @@ -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 {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).