[Github-comments] [geany/geany] Gi signals (#1038)

Thomas Martitz notifications at xxxxx
Mon May 23 14:36:48 UTC 2016


> @@ -380,3 +389,13 @@ GObject *geany_object_new(void)
>  {
>  	return g_object_new(GEANY_OBJECT_TYPE, NULL);
>  }
> +
> +/** Get the global GeanyObject instance
> + *
> + * @return @transfer{none} The instance
> + */
> +GEANY_API_SYMBOL
> +GObject *geany_object_get_instance(void)

pygobject only provides the facility to use python functions for signal callbacks for g_signal_connect (it acually maps GObject.connect() internally to g_signal_connect_closure() with a custom closure that creates PyGObject instances from whatever is passed to the signal handlers. this is also one reason that signal callback parameters must have a associated GType).

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1038/files/df4e17e853e84a23f4fe27ba9bca0a614460b103..bdd0720128df6afda95851dd529baffa689431f5#r64233456
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160523/d81b5cdf/attachment.html>


More information about the Github-comments mailing list