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

Colomban Wendling notifications at xxxxx
Mon May 23 14:29:21 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)

meh.  If *really* you can't use a custom `signal_connect()` (why, as anyway you need to fake the object?), I'd really rather add the object to `GeanyData` or something like that than a `get_instance()` method (like main widgets, etc.).

It's even nicer API-wise IMO to do `self.geany_data.object.connect(...)` than `Geany.Object.get_instance().connect(...)`

---
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#r64232113
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160523/23143cfc/attachment.html>


More information about the Github-comments mailing list