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 522059 - Callbacks in ActionEntry are not pre-declared if private
Callbacks in ActionEntry are not pre-declared if private
Status: RESOLVED DUPLICATE of bug 501584
Product: vala
Classification: Core
Component: Code Generator
Other All
: Normal normal
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks: 522060
Reported: 2008-03-12 17:20 UTC by Emmanuele Bassi (:ebassi)
Modified: 2008-03-16 21:21 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Emmanuele Bassi (:ebassi) 2008-03-12 17:20:45 UTC
if I declare an ActionEntry array as:

  const ActionEntry[] entries = {
    { "Open", Gtk.STOCK_OPEN, "Open files", (GLib.Callback) on_open, "<control>O" },

and on_open is:

  void on_open (Gtk.Action action) {

the "on_open" callback is correctly translated to namespace_class_on_open, but since it's private it will not be declared before the entries array, thus producing a warning.
Comment 1 Jürg Billeter 2008-03-14 15:39:15 UTC
Comment 2 Jürg Billeter 2008-03-16 21:21:16 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of 501584 ***