<p>In <a href="https://github.com/geany/geany/pull/1038#discussion_r64232113">src/geanyobject.c</a>:</p>
<pre style='color:#555'>> @@ -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)
</pre>
<p>meh.  If <em>really</em> you can't use a custom <code>signal_connect()</code> (why, as anyway you need to fake the object?), I'd really rather add the object to <code>GeanyData</code> or something like that than a <code>get_instance()</code> method (like main widgets, etc.).</p>

<p>It's even nicer API-wise IMO to do <code>self.geany_data.object.connect(...)</code> than <code>Geany.Object.get_instance().connect(...)</code></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/geany/geany/pull/1038/files/df4e17e853e84a23f4fe27ba9bca0a614460b103..bdd0720128df6afda95851dd529baffa689431f5#r64232113">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ1Cp5S0WYj02hnD-_2I66K77UGIkks5qEbnBgaJpZM4Ifw_7.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/1038/files/df4e17e853e84a23f4fe27ba9bca0a614460b103..bdd0720128df6afda95851dd529baffa689431f5#r64232113"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>