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 681896 - Can't compile code with GLib.ActionEntry
Can't compile code with GLib.ActionEntry
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings: GLib
0.19.x
Other All
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-15 08:16 UTC by Arnel Borja
Modified: 2014-06-12 03:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix binding (927 bytes, patch)
2012-08-15 08:16 UTC, Arnel Borja
none Details | Review
Test File (2.61 KB, application/octet-stream)
2012-08-15 08:26 UTC, Arnel Borja
  Details
Updated patch for metadata (1.86 KB, patch)
2013-02-18 04:15 UTC, Arnel Borja
none Details | Review

Description Arnel Borja 2012-08-15 08:16:57 UTC
Created attachment 221236 [details] [review]
Patch to fix binding

Seems like there's a problem with the GLib.ActionEntry in GIO's bindings. Vala is trying to free the callbacks. Changing it by basing from Gtk.ActionEntry, the problem is fixed by adding [CCode (delegate_target = false)] in its callbacks.
Comment 1 Arnel Borja 2012-08-15 08:26:38 UTC
Created attachment 221238 [details]
Test File

Sample application using GLib.ActionEntry

compile with "--pkg gtk+-3.0 --pkg gio-2.0"
Comment 2 Arnel Borja 2013-02-18 04:15:48 UTC
Created attachment 236522 [details] [review]
Updated patch for metadata
Comment 3 Evan Nemerson 2014-06-12 03:54:24 UTC
commit dc9b711a9ecddbb4e68bb5ec1519eacc6da3f84a
Author: Evan Nemerson <evan@nemerson.com>
Date:   Wed Jun 11 20:52:49 2014 -0700

    gio-2.0: callbacks in ActionEntry must not have a target
    
    Fixes bug 681896.