Re: libseed-list GLib.main_loop_new()



thanks, I finally succeeded with another solution: I moved
gobject-introspection to 0.9.12 to be able to use clutter, cluttergst,
json etc. with their 1.2 gir files. The missing part still was the
GLib-2.0.gir which surprisingly marked the essential
GLib.main_loop_new() with  introspectable="0". So I changed the
respective section in GLib-2.0.gir (provided with gobject-introspection)
into: 

<function name="main_loop_new"
              c:identifier="g_main_loop_new">
      <return-value transfer-ownership="full">
        <type name="MainLoop" c:type="GMainLoop*"/>
      </return-value> 
      <parameters>
        <parameter name="context" transfer-ownership="none"
allow-none="1">
          <type name="MainContext" c:type="GMainContext*"/>
        </parameter>
        <parameter name="is_running" transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </parameter>
      </parameters>
    </function>

and compiled the typelib from that. Using this, the mainloop can be
launched and hence the DBus infrastructure can be used. I'm not sure
whether I'm missing something, but so far it works just fine.

Best, tomw 




On Fri, 2010-12-31 at 17:08 +0800, Alan Knowles wrote:
> It's not feasible to use both together, I did try modifying the version in 1.2 file to set it to 1.1, but unfortunatly g-ir-compiler just segfaults..
> 
> I'm supprised clutter requires 0.9.6, you could probably modify the clutter configure.am to only require 0.9.3
> 
> You should be ok using the Clutter.gir from the gir collection - just modify the library
> shared-library="libclutter-glx-1.0.so.0" to point to the clutter 1.5.8 binary.
> 
> Regards
> Alan
>  --- On 30/Dec/2010, tomw wrote: 
> > well, that's certainly a way to fix it and it may work for this
> > particular case. I'm afraid the issue is a bit bigger as I'm using for
> > instance Clutter 1.5.8 which requires gobject-introspection >= 0.9.6. So
> > my point was rather whether where is a way to harmonize the
> > gobject-introspection infrastructure or at least to use 1.1 and 1.2 girs
> > in parallel. Otherwise I would possibly have gained the dbus support,
> > but I can not use Clutter any more...
> > more /
> > Best tomw  
> > 
> > On Thu, 2010-12-30 at 21:12 +0800, Alan Knowles wrote:
> > > little bit of googling...
> > > http://hany.sk/~hany/RPM/f-14-i386/clutter-gst-devel-1.2.0-1.fc14.i686.html
> > > 
> > > I've added it to the stuff on github
> > > 
> > > Regards
> > > Alan
> > > 
> > >  --- On 30/Dec/2010, tomw wrote: 
> > > > ok, after this works fine now I'm running as usual into the next bunch
> > > > of issues: As I'm using some gir's which hare not part of your gir-1.1
> > > > repository and are of version 1.2. This leads then to typelib version
> > > > mismatches. Is there a way to simply modify the gir's (and their
> > > > includes) to make the whole thing consistent?   
> > > > 
> > > > GIrepositoryError Failed to load typelib file
> > > > '/usr/local/lib/girepository-1.0/ClutterGst-1.0.typelib' for namespace
> > > > 'ClutterGst': Typelib version mismatch; expected 3, found 4
> > > > 
> > > > Best, tomw
> > > > 
> > > > 
> > > > On Thu, 2010-12-30 at 07:47 +0800, Alan Knowles wrote:
> > > > > I'm hoping that when Gtk-3.0 comes out, that everything will stabilize.
> > > > > 
> > > > > The big problem I have is that gobject-introspection communication appears to be done pretty much all on IRC, and there is no mailing list for it.. so there is no easy way to track development.
> > > > > 
> > > > > I've pretty much ended up with this workaround at present
> > > > > a) use instrospection 0.9.3
> > > > > 
> > > > > b) use https://github.com/roojs/gir-1.1 
> > > > > 
> > > > > c) compile gir's to a local directory
> > > > > https://github.com/roojs/app.Builder.js/blob/master/install.sh
> > > > > 
> > > > > d) modify the include path when you start the application.
> > > > > imports.gi.GIRepository.IRepository.prepend_search_path(
> > > > >    imports.gi.GLib.get_home_dir() + '/.Builder/girepository-1.1');
> > > > > 
> > > > > Not perfect, but it's at least a predictable enviroment.
> > > > > 
> > > > > Regards
> > > > > Alan
> > > > > 
> > > > >  --- On 30/Dec/2010, Jonatan Liljedahl wrote: 
> > > > > > I'm here also, lurking.. :)
> > > > > > ..and wondering when there will be an actually working and stable 
> > > > > > gnome/js environment that could be used for real applications, not 
> > > > > > needing the user to download and build the right versions from 
> > > > > > sourcecode repo's. any ideas?
> > > > > > 
> > > > > > /Jonatan
> > > > > > 
> > > > > > On 12/29/2010 05:31 PM, tomw wrote:
> > > > > > > Thanks, Alan for your help. Sometimes it seems it's just the two of us
> > > > > > > on the mailing list...
> > > > > > > What is the GLib version you are using with introspection?
> > > > > > >
> > > > > > > best tomw
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Wed, 2010-12-29 at 23:28 +0800, Alan Knowles wrote:
> > > > > > >> I'd avoid introspection head at present - it's pretty borked. I've had a bug in there for GArgument being broken for a while.
> > > > > > >>
> > > > > > >> 0.9.3 is the best working version at present.
> > > > > > >>
> > > > > > >> File this as a bug on Glib ->  gobject-introspection - see if you get lucky...
> > > > > > >>
> > > > > > >> Regards
> > > > > > >> Alan
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >>   --- On 29/Dec/2010, tomw wrote:
> > > > > > >>> Hi, I was trying to use some of the seed-examples porting my DBus
> > > > > > >>> communication to seed. It seems that the examples are outdated as the
> > > > > > >>> GLib.main_loop_new() method is marked with introspectable="0" in the
> > > > > > >>> current GLib gir. Unfortunately I have not found any other way to create
> > > > > > >>> a new GLibMainLoop structure. Any idea?
> > > > > > >>>
> > > > > > >>> Thanks, tomw
> > > > > > >>>
> > > > > > >>> _______________________________________________
> > > > > > >>> libseed-list mailing list
> > > > > > >>> libseed-list gnome org
> > > > > > >>> http://mail.gnome.org/mailman/listinfo/libseed-list
> > > > > > >>
> > > > > > >> _______________________________________________
> > > > > > >> libseed-list mailing list
> > > > > > >> libseed-list gnome org
> > > > > > >> http://mail.gnome.org/mailman/listinfo/libseed-list
> > > > > > >
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > libseed-list mailing list
> > > > > > > libseed-list gnome org
> > > > > > > http://mail.gnome.org/mailman/listinfo/libseed-list
> > > > > > 
> > > > > > _______________________________________________
> > > > > > libseed-list mailing list
> > > > > > libseed-list gnome org
> > > > > > http://mail.gnome.org/mailman/listinfo/libseed-list
> > > > > 
> > > > > _______________________________________________
> > > > > libseed-list mailing list
> > > > > libseed-list gnome org
> > > > > http://mail.gnome.org/mailman/listinfo/libseed-list
> > >
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]