The seed rpms
Find a file
Michel Alexandre Salim 7d2fdd93cb Multilib fix: Seed.js now searches both lib64 and lib directories
Documentation subpackage no longer depends on gtk-doc (# 707571)
2011-08-07 23:50:14 +02:00
.gitignore 3.0.0 2011-04-03 21:56:37 -07:00
README.Fedora - Only build against GTK+ 3.0 on Fedora > 14 2010-11-05 01:16:23 +01:00
seed-3.0.0-multilib.patch Multilib fix: Seed.js now searches both lib64 and lib directories 2011-08-07 23:50:14 +02:00
seed.spec Multilib fix: Seed.js now searches both lib64 and lib directories 2011-08-07 23:50:14 +02:00
sources 3.0.0 2011-04-03 21:56:37 -07:00

There is a known problem importing the Gtk library from seed on
systems where seed is built against Gtk2, if Gtk3 is also installed;
this is because both Gtk versions install gobject-introspection
typelib files in the repository, and unless the desired version is
explicitly specified.

Simply importing Gtk fails as such:

> imports.gi.Gtk
seed: symbol lookup error: /usr/lib64/libgtk-x11-3.0.so.0: undefined
symbol: g_application_get_type

The workaround is to specify the version as such:

> // note the quotes; otherwise 2.0 gets evaluated as just 2
> imports.gi.versions.Gtk = "2.0";
2.0
> Gtk = imports.gi.Gtk;
[object Object]
> 

See example 3 on the Reference Manual's Importer section:
http://library.gnome.org/devel/seed/stable/seed-importer.html