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 695979 - Vala bindings - .vapi file is unusable
Vala bindings - .vapi file is unusable
Status: RESOLVED FIXED
Product: gucharmap
Classification: Core
Component: general
3.6.x
Other Linux
: Normal minor
: ---
Assigned To: gucharmap maintainers
gucharmap maintainers
Depends on:
Blocks:
 
 
Reported: 2013-03-16 23:16 UTC by Jerry Casiano
Modified: 2013-03-17 17:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add doc to function (2.50 KB, patch)
2013-03-17 01:27 UTC, Jerry Casiano
none Details | Review

Description Jerry Casiano 2013-03-16 23:16:13 UTC
Gucharmap.ChaptersModel.id_to_iter 

 - iter should be an out parameter

cheader_filename = "Gucharmap-2.90.h"

 - should probably be cheader_filename = "gucharmap/gucharmap.h"

Gucharmap-2.90.vapi

 - should probably be gucharmap-2.90.vapi


By the way, thank you, this library made adding a full blown character map to Font Manager a breeze. :-)
Comment 1 Jerry Casiano 2013-03-16 23:41:02 UTC
I also meant to ask if the code used to generate the character details tab could be exposed. Maybe split that from gucharmap-charmap.c and make that TextView available as a separate widget?

Sorry for the noise but I didn't see any mailing list for the project so figured I would ask here before filing another issue.
Comment 2 Christian Persch 2013-03-17 00:13:53 UTC
(In reply to comment #0)
> Gucharmap.ChaptersModel.id_to_iter 
> 
>  - iter should be an out parameter

I added an annotation; can you check that this fixes the problem?

> cheader_filename = "Gucharmap-2.90.h"
> 
>  - should probably be cheader_filename = "gucharmap/gucharmap.h"

Should be fixed now on git master. 

> Gucharmap-2.90.vapi
> 
>  - should probably be gucharmap-2.90.vapi

Not sure we can change this now, wouldn't that be an ABI break?
Comment 3 Jerry Casiano 2013-03-17 00:36:58 UTC
Thanks for the quick response.

The cheader_filename issue is definitely fixed.

The id_to_iter is not. It's still not marked as an "out" parameter.


As far as an ABI break goes. That I have no clue. :-( 

But, unfortunately, I *think* that change is a must since that's what pkg-config lists.
Comment 4 Jerry Casiano 2013-03-17 01:27:24 UTC
Created attachment 239049 [details] [review]
Add doc to function

Sorry if the patch isn't proper, but those changes work here.
Comment 5 Christian Persch 2013-03-17 09:56:40 UTC
Comitted to master. I'll ask the vala guys about the vapi name.
Comment 6 Jerry Casiano 2013-03-17 14:34:13 UTC
Nevermind about the name change, not needed. My mistake.

However, can you please revert the changes to gucharmap_chapters_model_get_codepoint_list that TreeIter is now marked as an out parameter which it isn't.

Thanks again.
Comment 7 Christian Persch 2013-03-17 14:42:19 UTC
Right, reverted that bit. So it works fine now using git master? If so, I'll release that as 3.7.92.
Comment 8 Jerry Casiano 2013-03-17 15:35:47 UTC
Looks good here.
Comment 9 Christian Persch 2013-03-17 17:18:38 UTC
Renamed the vapi too on advice from #vala.