[vala/staging] signalmodule: Fix deprecation of signals



commit b5ae45ed77c7eb5d93c04bb16828ab164859f498
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Mar 7 16:49:20 2017 +0100

    signalmodule: Fix deprecation of signals

 codegen/valagsignalmodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagsignalmodule.vala b/codegen/valagsignalmodule.vala
index 6e87a42..9eb567c 100644
--- a/codegen/valagsignalmodule.vala
+++ b/codegen/valagsignalmodule.vala
@@ -366,7 +366,7 @@ public class Vala.GSignalModule : GObjectModule {
                        flags += "G_SIGNAL_NO_HOOKS";
                }
 
-               if (sig.get_attribute ("Deprecated") != null) {
+               if (sig.version.deprecated) {
                        flags += "G_SIGNAL_DEPRECATED";
                }
 


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