[Vala] Inheriting from GLib.Action



When implementing the interface Glib.Action, the implementing class requires both a property enabled and a 
function get_enabled().The emitted C code encounters a conflict with both implemented:

TestAction.c:145:17: error: redefinition of ‘working_test_action_real_get_enabled’
 static gboolean working_test_action_real_get_enabled (GAction* base) {
                 ^
TestAction.c:72:17: note: previous definition of ‘working_test_action_real_get_enabled’ was here
 static gboolean working_test_action_real_get_enabled (GAction* base) {
                 ^
Similar errors exist for the other properties and functions.

Anyone have suggestions for a workaround?

Ed


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]