]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
atk: Update to 2.9.4
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 21 Aug 2013 09:05:00 +0000 (11:05 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 21 Aug 2013 09:05:00 +0000 (11:05 +0200)
vapi/atk.vapi
vapi/metadata/Atk-1.0-custom.vala

index d200154331883127d193a3c29593fb2b41d631fa..4050c03aeb02b98d76977f8839485641a15847f3 100644 (file)
@@ -23,7 +23,6 @@ namespace Atk {
                public virtual int get_start_index ();
                public virtual string get_uri (int i);
                public bool is_inline ();
-               [NoWrapper]
                public virtual bool is_selected_link ();
                public virtual bool is_valid ();
                [NoWrapper]
@@ -68,9 +67,7 @@ namespace Atk {
                public virtual Atk.AttributeSet get_attributes ();
                public virtual unowned string get_description ();
                public virtual int get_index_in_parent ();
-               [NoWrapper]
                public virtual Atk.Layer get_layer ();
-               [NoWrapper]
                public virtual int get_mdi_zorder ();
                public int get_n_accessible_children ();
                [NoWrapper]
@@ -123,7 +120,7 @@ namespace Atk {
                public virtual signal void active_descendant_changed (void* child);
                public virtual signal void children_changed (uint change_index, void* changed_child);
                public virtual signal void focus_event (bool focus_in);
-               public signal void property_change (void* object);
+               public signal void property_change (void* arg1);
                public virtual signal void state_change (string name, bool state_set);
                public virtual signal void visible_data_changed ();
        }
@@ -290,9 +287,11 @@ namespace Atk {
                [CCode (vfunc_name = "get_document_attributes")]
                public virtual unowned Atk.AttributeSet get_attributes ();
                public virtual void* get_document ();
-               [NoWrapper]
+               [Deprecated (replacement = "Document.get_locale", since = "vala-0.22")]
                public virtual unowned string get_document_locale ();
                public virtual unowned string get_document_type ();
+               [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 ();
@@ -413,6 +412,7 @@ namespace Atk {
                public abstract void get_range_extents (int start_offset, int end_offset, Atk.CoordType coord_type, Atk.TextRectangle rect);
                public abstract Atk.AttributeSet get_run_attributes (int offset, out int start_offset, out int end_offset);
                public abstract string get_selection (int selection_num, out int start_offset, out int end_offset);
+               public abstract string get_string_at_offset (int offset, Atk.TextGranularity granularity, out int start_offset, out int end_offset);
                public abstract string get_text (int start_offset, int end_offset);
                public abstract string get_text_after_offset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
                public abstract string get_text_at_offset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
@@ -423,10 +423,9 @@ namespace Atk {
                public virtual signal void text_attributes_changed ();
                public virtual signal void text_caret_moved (int location);
                public virtual signal void text_changed (int position, int length);
-               public signal void text_insert (int object, int p0, string p1);
-               public signal void text_remove (int object, int p0, string p1);
+               public signal void text_insert (int arg1, int arg2, string arg3);
+               public signal void text_remove (int arg1, int arg2, string arg3);
                public virtual signal void text_selection_changed ();
-               public signal void text_update (int object, int p0, int p1, string p2);
        }
        [CCode (cheader_filename = "atk/atk.h", type_id = "atk_value_get_type ()")]
        public interface Value : GLib.Object {
@@ -551,8 +550,11 @@ namespace Atk {
        }
        [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_ROLE_", type_id = "atk_role_get_type ()")]
        public enum Role {
-               INVALID,
+               [Deprecated (replacement = "Role.ACCELERATOR_LABEL", since = "vala-0.22")]
                ACCEL_LABEL,
+               INVALID,
+               [CCode (cname = "ATK_ROLE_ACCEL_LABEL")]
+               ACCELERATOR_LABEL,
                ALERT,
                ANIMATION,
                ARROW,
@@ -769,12 +771,20 @@ namespace Atk {
                MAX,
                BOTH
        }
+       [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_GRANULARITY_", type_id = "atk_text_granularity_get_type ()")]
+       public enum TextGranularity {
+               CHAR,
+               WORD,
+               SENTENCE,
+               LINE,
+               PARAGRAPH
+       }
        [CCode (cheader_filename = "atk/atk.h", has_target = false)]
        public delegate void EventListener (Atk.Object obj);
        [CCode (cheader_filename = "atk/atk.h", has_target = false)]
        public delegate void EventListenerInit ();
        [CCode (cheader_filename = "atk/atk.h", has_target = false)]
-       public delegate void FocusHandler (Atk.Object arg0, bool arg1);
+       public delegate void FocusHandler (Atk.Object object, bool focus_in);
        [CCode (cheader_filename = "atk/atk.h", instance_pos = 0.9)]
        public delegate bool Function ();
        [CCode (cheader_filename = "atk/atk.h", instance_pos = 1.9)]
index a6f9e76d21ab0e2b720734822224ddf7e88b4e58..1c26d62ef81da4eca05104d6ec3e95c5828c66a3 100644 (file)
@@ -2,6 +2,11 @@ namespace Atk {
        [Compact]
        public class AttributeSet : GLib.SList<Atk.Attribute?> {
        }
+       [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")]
+               public virtual unowned string get_document_locale ();
+       }
        public interface Implementor : GLib.Object {
                public abstract unowned Atk.Object ref_accessible ();
        }
@@ -39,6 +44,12 @@ namespace Atk {
                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")]
+               ACCEL_LABEL
+       }
+
        [CCode (has_target = false)]
        public delegate void PropertyChangeHandler (Atk.Object obj, Atk.PropertyValues vals);
        [CCode (cname = "GSignalEmissionHook", has_target = false)]