]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
atk: various improvements, including some regressions fixes
authorEvan Nemerson <evan@coeus-group.com>
Fri, 23 Sep 2011 20:52:02 +0000 (13:52 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Fri, 23 Sep 2011 20:52:02 +0000 (13:52 -0700)
vapi/atk.vapi
vapi/metadata/Atk-1.0-custom.vala
vapi/metadata/Atk-1.0.metadata

index a57d93b6f6642b5c3c5ccabea1f821a9174fe341..801ef4615d3a7d053134f7e3ed47ba4de60b478c 100644 (file)
@@ -138,14 +138,6 @@ namespace Atk {
                [NoWrapper]
                public virtual string get_object_id ();
        }
-       [CCode (cheader_filename = "atk/atk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atk_rectangle_get_type ()")]
-       [Compact]
-       public class Rectangle {
-               public int height;
-               public int width;
-               public int x;
-               public int y;
-       }
        [CCode (cheader_filename = "atk/atk.h")]
        public class Registry : GLib.Object {
                [Deprecated]
@@ -269,6 +261,7 @@ namespace Atk {
        }
        [CCode (cheader_filename = "atk/atk.h", type_id = "atk_component_get_type ()")]
        public interface Component : GLib.Object {
+               public abstract uint add_focus_handler (Atk.FocusHandler handler);
                public abstract bool contains (int x, int y, Atk.CoordType coord_type);
                public abstract double get_alpha ();
                public abstract void get_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
@@ -286,19 +279,16 @@ namespace Atk {
        }
        [CCode (cheader_filename = "atk/atk.h", type_id = "atk_document_get_type ()")]
        public interface Document : GLib.Object {
-               public unowned string get_attribute_value (string attribute_name);
+               [CCode (vfunc_name = "get_document_attribute_value")]
+               public virtual unowned string get_attribute_value (string attribute_name);
                [CCode (vfunc_name = "get_document_attributes")]
                public virtual unowned GLib.SList<Atk.Attribute?> get_attributes ();
                public abstract void* get_document ();
-               [NoWrapper]
-               public abstract unowned string get_document_attribute_value (string attribute_name);
-               [NoWrapper]
-               public abstract unowned string get_document_locale ();
                public abstract unowned string get_document_type ();
-               public unowned string get_locale ();
-               public bool set_attribute_value (string attribute_name, string attribute_value);
-               [NoWrapper]
-               public abstract bool set_document_attribute (string attribute_name, string attribute_value);
+               [CCode (vfunc_name = "get_document_locale")]
+               public virtual unowned string get_locale ();
+               [CCode (vfunc_name = "set_document_attribute")]
+               public virtual bool set_attribute_value (string attribute_name, string attribute_value);
                public signal void load_complete ();
                public signal void load_stopped ();
                public signal void reload ();
@@ -336,9 +326,6 @@ namespace Atk {
        public interface Implementor : GLib.Object {
                public abstract unowned Atk.Object ref_accessible ();
        }
-       [CCode (cheader_filename = "atk/atk.h", lower_case_csuffix = "implementor", type_id = "atk_implementor_get_type ()")]
-       public interface ImplementorIface : GLib.Object {
-       }
        [CCode (cheader_filename = "atk/atk.h", type_id = "atk_selection_get_type ()")]
        public interface Selection : GLib.Object {
                public abstract bool add_selection (int i);
@@ -478,8 +465,21 @@ namespace Atk {
                public GLib.Value new_value;
        }
        [CCode (cheader_filename = "atk/atk.h")]
+       public struct Rectangle {
+               public int x;
+               public int y;
+               public int width;
+               public int height;
+       }
+       [CCode (cheader_filename = "atk/atk.h")]
        [SimpleType]
        public struct State : uint64 {
+               [Deprecated (replacement = "StateType.for_name", since = "vala-0.16")]
+               public static Atk.StateType type_for_name (string name);
+               [Deprecated (replacement = "StateType.get_name", since = "vala-0.16")]
+               public static unowned string type_get_name (Atk.StateType type);
+               [Deprecated (replacement = "StateType.register", since = "vala-0.16")]
+               public static Atk.StateType type_register (string name);
        }
        [CCode (cheader_filename = "atk/atk.h")]
        public struct TextRectangle {
index d2d721f9ce0e5ddaa40508ca05d211a21312b22a..b194222cfc9af7f34ce7d5b3910e108b1cc92e24 100644 (file)
@@ -20,7 +20,16 @@ namespace Atk {
                public static unowned string type_get_name (Atk.RelationType type);
                [Deprecated (replacement = "RelationType.register", 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")]
+               public static Atk.StateType type_for_name (string name);
+               [Deprecated (replacement = "StateType.get_name", since = "vala-0.16")]
+               public static unowned string type_get_name (Atk.StateType type);
+               [Deprecated (replacement = "StateType.register", since = "vala-0.16")]
+               public static Atk.StateType type_register (string name);
+       }
        [CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atk_text_range_get_type ()", has_destroy_function = false)]
        [Compact]
        public class TextRange {
index 90fcdd7736403f1341329e37a45f3bd24c8083cd..de22f0a0680d0a4b9ef14ecd4b0b15f35d7fce1a 100644 (file)
@@ -12,6 +12,7 @@ Text
   .get_run_attributes type="GLib.SList<Attribute?>"
 
 KeyEventStruct.string name="str"
+Rectangle struct
 TextRange.content skip
 Text.get_bounded_ranges skip
 
@@ -41,8 +42,12 @@ _PropertyValues name="PropertyValues"
 _Registry* skip
 
 // Should be fixed upstream
-Implementor skip // g-ir-scanner doesn't realize this is an interface
+Implementor* skip // g-ir-scanner doesn't realize this is an interface
+Component.add_focus_handler skip=false
 Document.get_attributes vfunc_name="get_document_attributes"
+Document.get_attribute_value vfunc_name="get_document_attribute_value"
+Document.get_locale vfunc_name="get_document_locale"
+Document.set_attribute_value vfunc_name="set_document_attribute"
 Object.connect_property_change_handler skip=false
 Relation.get_target type_arguments="Atk.Object"
 Relation.new.targets array array_length_idx=1