Re: [Solved] Re: [gobject-introspection] callback without GDestroyNotify

2012-10-24 Thread Mohan R
On Wed, 2012-10-24 at 10:42 +0100, Emmanuele Bassi wrote: > you should not be using the g_*/G* namespace unless you're > contributing code to GLib (glib, gobject, gio) — not GNOME. > > using the g_* namespace from other components may very well lead to > symbol collision. Sorry, I was confused.

Re: [Solved] Re: [gobject-introspection] callback without GDestroyNotify

2012-10-24 Thread Emmanuele Bassi
hi; On 24 October 2012 07:04, Mohan R wrote: > On Tue, 2012-10-23 at 19:43 +0100, Emmanuele Bassi wrote: >> hi; >> >> don't use the G namespace for you code unless you plan on submitting >> it for inclusion in GLib. >> >> If you're writing a gtweet library, then the namespace ought to be >> Gtwee

Re: [Solved] Re: [gobject-introspection] callback without GDestroyNotify

2012-10-24 Thread Alexander Larsson
On ons, 2012-10-24 at 11:34 +0530, Mohan R wrote: > On Tue, 2012-10-23 at 19:43 +0100, Emmanuele Bassi wrote: > > hi; > > > > don't use the G namespace for you code unless you plan on submitting > > it for inclusion in GLib. > > > > If you're writing a gtweet library, then the namespace ought to

Re: [Solved] Re: [gobject-introspection] callback without GDestroyNotify

2012-10-23 Thread Mohan R
On Tue, 2012-10-23 at 19:43 +0100, Emmanuele Bassi wrote: > hi; > > don't use the G namespace for you code unless you plan on submitting > it for inclusion in GLib. > > If you're writing a gtweet library, then the namespace ought to be > Gtweet. > > ciao, > Emmanuele. Of course I'm going to

Re: [Solved] Re: [gobject-introspection] callback without GDestroyNotify

2012-10-23 Thread Emmanuele Bassi
hi; don't use the G namespace for you code unless you plan on submitting it for inclusion in GLib. If you're writing a gtweet library, then the namespace ought to be Gtweet. ciao, Emmanuele. On Oct 23, 2012 7:15 PM, "Mohan R" wrote: > Fixed it, > > My mistake, annotations are wrong, because th

[Solved] Re: [gobject-introspection] callback without GDestroyNotify

2012-10-23 Thread Mohan R
Fixed it, My mistake, annotations are wrong, because the name of the function is 'g_tweet_object_samplestream', but the anotation says 'tweet_object_samplestream'. Sorry to distrub you all. On Tue, 2012-10-23 at 21:11 +0530, Mohan R wrote: > /** > * tweet_object_samplestream: > * @tweetObject:

[gobject-introspection] callback without GDestroyNotify

2012-10-23 Thread Mohan R
Hi, May be a noob question. I am very new to this introspection world and learning. One of the function in a library which I'm trying to export to javascript look like this, /** * tweet_object_samplestream: * @tweetObject: a #TweetObject * @func: (closure userdata) (scope async): a callback fu