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 669507 - Wrong parameter type in TreeView.get_tooltip_context
Wrong parameter type in TreeView.get_tooltip_context
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings: GTK+ GStreamer WebKitGTK+
0.14.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-06 21:29 UTC by Illia Korchemkin
Modified: 2012-06-08 01:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Illia Korchemkin 2012-02-06 21:29:01 UTC
TreeView.get_tooltip_context is defined as 

public bool get_tooltip_context (out int x, out int y, bool keyboard_tip, out TreeModel model, out TreePath path, out TreeIter iter) 

Howewer, x and y should be 'ref' instead of 'out'.

Related message in the vala mailing list
http://mail.gnome.org/archives/vala-list/2012-February/msg00011.html
Comment 1 Illia Korchemkin 2012-02-10 22:03:15 UTC
Indeed, I edited /usr/share/vala-0.14/vapi/gtk+-2.0.vapi, replaced 'out' with 'ref', now it works as it should. 
Probably the same problem occurs if you are using IconView.get_tooltip_context
Comment 2 Evan Nemerson 2012-06-08 01:16:28 UTC
commit 7eb8b6427d2cde8167a8f5a991f6e9f6816c888f
Author: Evan Nemerson <evan@coeus-group.com>
Date:   Thu Jun 7 18:14:22 2012 -0700

    gtk+-2.0, gtk+-3.0: make TreeView.get_tooltip_context.x and y ref
    
    Fixes bug 669507.