Commit 890351d7 authored by Simon Werbeck's avatar Simon Werbeck Committed by Luca Bruno

Set G_SIGNAL_DEPRECATED on annotated signals

When using the [Deprecated] attribute on a signal, the corresponding
signal flag is now set upon signal creation. This requires that
--target-glib is set accordingly

Fixes bug 732381
parent 57367c50
......@@ -333,6 +333,10 @@ public class Vala.GSignalModule : GObjectModule {
flags += "G_SIGNAL_NO_HOOKS";
}
if (sig.get_attribute ("Deprecated") != null && CodeContext.get ().require_glib_version (2, 31)) {
flags += "G_SIGNAL_DEPRECATED";
}
csignew.add_argument (new CCodeConstant (string.joinv (" | ", flags)));
if (sig.default_handler == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment