Branch: refs/heads/master Author: Thomas Martitz kugel@rockbox.org Committer: Thomas Martitz kugel@rockbox.org Date: Wed, 22 Jun 2016 14:09:56 UTC Commit: 60fb01d6db459cd03a2cbe8e77e1d4b46920e933 https://github.com/geany/geany/commit/60fb01d6db459cd03a2cbe8e77e1d4b46920e9...
Log Message: ----------- plugin api: convert GeanyDocument to GBoxed internally
GeanyObject signals require GTypes to be gobject-introspection compatible.
Modified Paths: -------------- src/document.c src/document.h
Modified: src/document.c 12 lines changed, 12 insertions(+), 0 deletions(-) =================================================================== @@ -3813,3 +3813,15 @@ void document_grab_focus(GeanyDocument *doc)
gtk_widget_grab_focus(GTK_WIDGET(doc->editor->sci)); } + +static void *copy_(void *src) { return src; } +static void free_(void *doc) { } + +/** @gironly + * Gets the GType of GeanyDocument + * + * @return the GeanyDocument type */ +GEANY_API_SYMBOL +GType document_get_type (void); + +G_DEFINE_BOXED_TYPE(GeanyDocument, document, copy_, free_);
Modified: src/document.h 3 lines changed, 3 insertions(+), 0 deletions(-) =================================================================== @@ -70,6 +70,9 @@ typedef struct GeanyFilePrefs GeanyFilePrefs;
+#define GEANY_TYPE_DOCUMENT (document_get_type()) +GType document_get_type (void); + /** * Structure for representing an open tab with all its properties. **/
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).