After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 623017 - Add introspection support
Add introspection support
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: general
2.32.x (obsolete)
Other Linux
: Normal enhancement
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
evolution[cleanup]
Depends on:
Blocks: 630917 632109
 
 
Reported: 2010-06-28 08:37 UTC by André Klapper
Modified: 2013-09-14 16:54 UTC
See Also:
GNOME target: 3.0
GNOME version: ---


Attachments
Add introspection support (12.48 KB, patch)
2010-10-14 04:39 UTC, Maxim Ermilov
none Details | Review
Add introspection support (14.46 KB, patch)
2010-10-20 04:09 UTC, Maxim Ermilov
committed Details | Review
introspection: add search path for EDataServer-1.2.gir (905 bytes, patch)
2010-11-01 08:54 UTC, Maxim Ermilov
rejected Details | Review
Improve annotations on a couple of methods in libebook (5.87 KB, patch)
2011-02-02 18:51 UTC, Raul Gutierrez Segales
committed Details | Review

Comment 1 Maxim Ermilov 2010-10-14 04:39:30 UTC
Created attachment 172328 [details] [review]
Add introspection support

It work fine (example of use in Bug 632109).
Comment 2 Maxim Ermilov 2010-10-20 04:09:53 UTC
Created attachment 172789 [details] [review]
Add introspection support

merge with HEAD
add some annotations
Comment 3 Matthew Barnes 2010-10-21 03:09:50 UTC
I'm not an introspection expert, but the patch looks well written to me.  Thanks!

Committed to master branch:
http://git.gnome.org/browse/evolution-data-server/commit/?id=63744d4e49d8c91d99f61a51685bc6379c8968a6

Leaving the bug open since this only covers libecal and bits of libedataserver, but it's a good start  nonetheless.
Comment 4 Maxim Ermilov 2010-10-21 03:32:10 UTC
(In reply to comment #3)
> I'm not an introspection expert, but the patch looks well written to me. 
> Thanks!
> 
> Committed to master branch:
> http://git.gnome.org/browse/evolution-data-server/commit/?id=63744d4e49d8c91d99f61a51685bc6379c8968a6
> 
> Leaving the bug open since this only covers libecal and bits of libedataserver,
> but it's a good start  nonetheless.

m4/introspection.m4 was not commited (It was in original patch).
e-d-s require gobject-introspection to build without it.
Comment 5 Matthew Barnes 2010-10-21 04:02:41 UTC
Hmm, why was it added to .gitignore then?

Anyway, fixed in:
http://git.gnome.org/browse/evolution-data-server/commit/?id=6d1457e4c983bb26f8db84cdad6bdf1aed294d7b
Comment 6 André Klapper 2010-10-29 17:42:05 UTC
I'm trying to jhbuild e-d-s git master (and had ran "make distclean") but I get this - is it "intended" as introspection support is not yet finished?

Making all in libecal
make[3]: Entering directory `/home/andre/svn-gnome/evolution-data-server/calendar/libecal'
make  all-am
make[4]: Entering directory `/home/andre/svn-gnome/evolution-data-server/calendar/libecal'
  GISCAN ECalendar-1.2.gir
Couldn't find include 'EDataServer-1.2.gir' (search path: ['/home/andre/opt-gnome/share/gir-1.0', '/usr/share/gir-1.0'])
make[4]: *** [ECalendar-1.2.gir] Error 1
make[4]: Leaving directory `/home/andre/svn-gnome/evolution-data-server/calendar/libecal'
Comment 7 Maxim Ermilov 2010-11-01 08:54:05 UTC
Created attachment 173615 [details] [review]
introspection: add search path for EDataServer-1.2.gir

> is it "intended" as introspection support is not yet finished?
no. This patch should fix it.
Comment 8 Vincent Untz 2010-11-06 15:57:22 UTC
Maxim: I would use ECalendar_1_2_gir_SCANNERFLAGS instead of INTROSPECTION_SCANNER_ARGS in this case.  Bug 634174 would help too.
Comment 9 André Klapper 2010-11-09 21:33:14 UTC
Comment on attachment 173615 [details] [review]
introspection: add search path for EDataServer-1.2.gir

Already fixed by bug 634167.

What is left now to keep this bug opened?
Comment 10 Raul Gutierrez Segales 2010-12-11 02:01:50 UTC
This might be slightly unrelated. I am trying to generate the binding for Vala with:

vapigen --library=EDataServer-1.2 ./libedataserver/EDataServer-1.2.gir

and it fails with the following error:

EDataServer-1.2.gir:1670.9-1670.8: error: `SoapResponse' already contains a definition for `from_string'
EDataServer-1.2.gir:1642.9-1642.8: note: previous definition of `from_string' was here

I suspect from_string might be already defined in one of the base clases (Glib  Object?). Commenting out the definition of the from_string method on the GIR files allows me to build the binding. 

Ideas?
Comment 11 Matthew Barnes 2011-02-02 16:31:27 UTC
Introspection support has been added.  Doesn't seem like there's anything left to do here so I'm closing this to get it off the GNOME 3 blocker list.
Comment 12 Raul Gutierrez Segales 2011-02-02 18:51:24 UTC
Created attachment 179912 [details] [review]
Improve annotations on a couple of methods in libebook

This enhances introspection support (without these comments many methods are mark as not introspect-able by g-ir-scanner).