[vala/x-version: 2/16] atk-1.0: Use [Version] instead of [Deprecated] and [Experimental]



commit a82e665ccd29e510b8c93c2b431a82e62c8b5391
Author: Florian Brosch <flo brosch gmail com>
Date:   Sat May 17 23:05:46 2014 +0200

    atk-1.0: Use [Version] instead of [Deprecated] and [Experimental]

 vapi/metadata/Atk-1.0-custom.vala |   69 +++++++++++++++++++------------------
 1 files changed, 35 insertions(+), 34 deletions(-)
---
diff --git a/vapi/metadata/Atk-1.0-custom.vala b/vapi/metadata/Atk-1.0-custom.vala
index 58fb07a..65411e7 100644
--- a/vapi/metadata/Atk-1.0-custom.vala
+++ b/vapi/metadata/Atk-1.0-custom.vala
@@ -4,89 +4,90 @@ namespace Atk {
        }
        [CCode (cheader_filename = "atk/atk.h", type_id = "atk_document_get_type ()")]
        public interface Document : GLib.Object {
-               [Deprecated (replacement = "Document.get_locale", since = "vala-0.22")]
+               [Version (replacement = "Document.get_locale", deprecated_since = "vala-0.22")]
                public virtual unowned string get_document_locale ();
        }
        public interface Implementor : GLib.Object {
                public abstract unowned Atk.Object ref_accessible ();
        }
        public class Registry : GLib.Object {
-               [Deprecated]
+               [Version (deprecated = true)]
                public weak GLib.HashTable<GLib.Type,Atk.ObjectFactory> factory_singleton_cache;
-               [Deprecated]
+               [Version (deprecated = true)]
                public weak GLib.HashTable<GLib.Type,GLib.Type> factory_type_registry;
-     }
+       }
        public class Relation : GLib.Object {
-               [Deprecated (replacement = "RelationType.for_name", since = "vala-0.16")]
+               [Version (replacement = "RelationType.for_name", deprecated_since = "vala-0.16")]
                public static Atk.RelationType type_for_name (string name);
-               [Deprecated (replacement = "RelationType.get_name", since = "vala-0.16")]
+               [Version (replacement = "RelationType.get_name", deprecated_since = "vala-0.16")]
                public static unowned string type_get_name (Atk.RelationType type);
-               [Deprecated (replacement = "RelationType.register", since = "vala-0.16")]
+               [Version (replacement = "RelationType.register", deprecated_since = "vala-0.16")]
                public static Atk.RelationType type_register (string name);
        }
        [SimpleType]
        public struct State : uint64 {
-               [Deprecated (replacement = "StateType.for_name", since = "vala-0.16")]
+               [Version (replacement = "StateType.for_name", deprecated_since = "vala-0.16")]
                public static Atk.StateType type_for_name (string name);
-               [Deprecated (replacement = "StateType.get_name", since = "vala-0.16")]
+               [Version (replacement = "StateType.get_name", deprecated_since = "vala-0.16")]
                public static unowned string type_get_name (Atk.StateType type);
-               [Deprecated (replacement = "StateType.register", since = "vala-0.16")]
+               [Version (replacement = "StateType.register", deprecated_since = "vala-0.16")]
                public static Atk.StateType type_register (string name);
        }
        public interface Text : GLib.Object {
-    [CCode (array_length = false, array_null_terminated = true, cname = "atk_text_get_bounded_ranges")]
-    public virtual Atk.TextRange[] get_bounded_ranges (Atk.TextRectangle rect, Atk.CoordType coord_type, 
Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
-               [Deprecated (replacement = "TextAttribute.for_name", since = "vala-0.16")]
+               [Version (since = "1.3")]
+               [CCode (array_length = false, array_null_terminated = true, cname = 
"atk_text_get_bounded_ranges")]
+               public virtual Atk.TextRange[] get_bounded_ranges (Atk.TextRectangle rect, Atk.CoordType 
coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
+               [Version (replacement = "TextAttribute.for_name", deprecated_since = "vala-0.16")]
                public static Atk.TextAttribute attribute_for_name (string name);
-               [Deprecated (replacement = "TextAttribute.get_name", since = "vala-0.16")]
+               [Version (replacement = "TextAttribute.get_name", deprecated_since = "vala-0.16")]
                public static unowned string attribute_get_name (Atk.TextAttribute attr);
-               [Deprecated (replacement = "TextAttribute.get_value", since = "vala-0.16")]
+               [Version (replacement = "TextAttribute.get_value", deprecated_since = "vala-0.16")]
                public static unowned string attribute_get_value (Atk.TextAttribute attr, int index_);
-               [Deprecated (replacement = "TextAttribute.register", since = "vala-0.16")]
+               [Version (replacement = "TextAttribute.register", deprecated_since = "vala-0.16")]
                public static Atk.TextAttribute attribute_register (string name);
        }
 
        [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_ROLE_", type_id = "atk_role_get_type ()")]
        public enum Role {
-               [Deprecated (replacement = "Role.ACCELERATOR_LABEL", since = "vala-0.22")]
+               [Version (replacement = "Role.ACCELERATOR_LABEL", deprecated_since = "vala-0.22")]
                ACCEL_LABEL
        }
 
        [CCode (cname = "GSignalEmissionHook", has_target = false)]
        public delegate bool SignalEmissionHook (GLib.SignalInvocationHint ihint, [CCode (array_length_pos = 
1.9)] Value[] param_values, void* data);
 
-       [Deprecated (replacement = "Atk.Util.add_focus_tracker", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.add_focus_tracker", deprecated_since = "vala-0.16")]
        public static uint add_focus_tracker (Atk.EventListener focus_tracker);
-       [Deprecated (replacement = "Atk.Util.add_global_event_listener", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.add_global_event_listener", deprecated_since = "vala-0.16")]
        public static uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
-       [Deprecated (replacement = "Atk.Util.focus_tracker_init", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.focus_tracker_init", deprecated_since = "vala-0.16")]
        public static void focus_tracker_init (Atk.EventListenerInit init);
-       [Deprecated (replacement = "Atk.Util.focus_tracker_notify", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.focus_tracker_notify", deprecated_since = "vala-0.16")]
        public static void focus_tracker_notify (Atk.Object object);
-       [Deprecated (replacement = "Atk.Registry.get_default.", since = "vala-0.16")]
+       [Version (replacement = "Atk.Registry.get_default.", deprecated_since = "vala-0.16")]
        public static unowned Atk.Registry get_default_registry ();
-       [Deprecated (replacement = "Atk.Util.get_focus_object", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.get_focus_object", deprecated_since = "vala-0.16")]
        public static unowned Atk.Object get_focus_object ();
-       [Deprecated (replacement = "Atk.Util.get_root", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.get_root", deprecated_since = "vala-0.16")]
        public static unowned Atk.Object get_root ();
-       [Deprecated (replacement = "Atk.Util.get_toolkit_name", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.get_toolkit_name", deprecated_since = "vala-0.16")]
        public static unowned string get_toolkit_name ();
-       [Deprecated (replacement = "Atk.Util.get_toolkit_version", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.get_toolkit_version", deprecated_since = "vala-0.16")]
        public static unowned string get_toolkit_version ();
-       [Deprecated (replacement = "Atk.Util.get_version", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.get_version", deprecated_since = "vala-0.16")]
        public static unowned string get_version ();
-       [Deprecated (replacement = "Atk.Util.remove_focus_tracker", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.remove_focus_tracker", deprecated_since = "vala-0.16")]
        public static void remove_focus_tracker (uint tracker_id);
-       [Deprecated (replacement = "Atk.Util.remove_global_event_listener", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.remove_global_event_listener", deprecated_since = "vala-0.16")]
        public static void remove_global_event_listener (uint listener_id);
-       [Deprecated (replacement = "Atk.Util.remove_key_event_listener", since = "vala-0.16")]
+       [Version (replacement = "Atk.Util.remove_key_event_listener", deprecated_since = "vala-0.16")]
        public static void remove_key_event_listener (uint listener_id);
-       [Deprecated (replacement = "Atk.Role.for_name", since = "vala-0.16")]
+       [Version (replacement = "Atk.Role.for_name", deprecated_since = "vala-0.16")]
        public static Atk.Role role_for_name (string name);
-       [Deprecated (replacement = "Atk.Role.get_localized_name", since = "vala-0.16")]
+       [Version (replacement = "Atk.Role.get_localized_name", deprecated_since = "vala-0.16")]
        public static unowned string role_get_localized_name (Atk.Role role);
-       [Deprecated (replacement = "Atk.Role.get_name", since = "vala-0.16")]
+       [Version (replacement = "Atk.Role.get_name", deprecated_since = "vala-0.16")]
        public static unowned string role_get_name (Atk.Role role);
-       [Deprecated (replacement = "Atk.Role.register", since = "vala-0.16")]
+       [Version (replacement = "Atk.Role.register", deprecated_since = "vala-0.16")]
        public static Atk.Role role_register (string name);
 }


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