]> git.pld-linux.org Git - packages/vala.git/blob - vala-atk-update.patch
1ce37d2e8f64925e8081475e5a40ecca0af01d20
[packages/vala.git] / vala-atk-update.patch
1 --- vala-0.24.0/vapi/atk.vapi.orig      2013-12-22 19:40:23.000000000 +0100
2 +++ vala-0.24.0/vapi/atk.vapi   2014-03-29 22:07:46.838336595 +0100
3 @@ -41,12 +41,15 @@
4         public class Misc : GLib.Object {
5                 [CCode (has_construct_function = false)]
6                 protected Misc ();
7 +               [Deprecated]
8                 public static unowned Atk.Misc get_instance ();
9 +               [Deprecated]
10                 public virtual void threads_enter ();
11 +               [Deprecated]
12                 public virtual void threads_leave ();
13         }
14         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_no_op_object_get_type ()")]
15 -       public class NoOpObject : Atk.Object, Atk.Action, Atk.Component, Atk.Document, Atk.EditableText, Atk.Hypertext, Atk.Image, Atk.Selection, Atk.Table, Atk.Text, Atk.Value, Atk.Window {
16 +       public class NoOpObject : Atk.Object, Atk.Action, Atk.Component, Atk.Document, Atk.EditableText, Atk.Hypertext, Atk.Image, Atk.Selection, Atk.Table, Atk.TableCell, Atk.Text, Atk.Value, Atk.Window {
17                 [CCode (has_construct_function = false, type = "AtkObject*")]
18                 public NoOpObject (GLib.Object obj);
19         }
20 @@ -65,6 +68,7 @@
21                 [CCode (has_construct_function = false)]
22                 protected Object ();
23                 public bool add_relationship (Atk.RelationType relationship, Atk.Object target);
24 +               [Deprecated]
25                 public virtual uint connect_property_change_handler (Atk.PropertyChangeHandler handler);
26                 public virtual Atk.AttributeSet get_attributes ();
27                 public virtual unowned string get_description ();
28 @@ -82,9 +86,11 @@
29                 public virtual Atk.Role get_role ();
30                 public virtual void initialize (void* data);
31                 public void notify_state_change (Atk.State state, bool value);
32 +               public unowned Atk.Object peek_parent ();
33                 public Atk.Object ref_accessible_child (int i);
34                 public virtual Atk.RelationSet ref_relation_set ();
35                 public virtual Atk.StateSet ref_state_set ();
36 +               [Deprecated]
37                 public virtual void remove_property_change_handler (uint handler_id);
38                 public bool remove_relationship (Atk.RelationType relationship, Atk.Object target);
39                 public virtual void set_description (string description);
40 @@ -105,20 +111,26 @@
41                 public Atk.Object accessible_parent { owned get; set; }
42                 [NoAccessorMethod]
43                 public int accessible_role { get; set; }
44 +               [Deprecated]
45                 [NoAccessorMethod]
46                 public string accessible_table_caption { owned get; set; }
47                 [NoAccessorMethod]
48                 public Atk.Object accessible_table_caption_object { owned get; set; }
49 +               [Deprecated]
50                 [NoAccessorMethod]
51                 public string accessible_table_column_description { owned get; set; }
52 +               [Deprecated]
53                 [NoAccessorMethod]
54                 public Atk.Object accessible_table_column_header { owned get; set; }
55 +               [Deprecated]
56                 [NoAccessorMethod]
57                 public string accessible_table_row_description { owned get; set; }
58 +               [Deprecated]
59                 [NoAccessorMethod]
60                 public Atk.Object accessible_table_row_header { owned get; set; }
61                 [NoAccessorMethod]
62                 public Atk.Object accessible_table_summary { owned get; set; }
63 +               [Deprecated]
64                 [NoAccessorMethod]
65                 public double accessible_value { get; set; }
66                 public virtual signal void active_descendant_changed (void* child);
67 @@ -145,6 +157,17 @@
68                 [NoWrapper]
69                 public virtual string get_object_id ();
70         }
71 +       [CCode (cheader_filename = "atk/atk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atk_range_get_type ()")]
72 +       [Compact]
73 +       public class Range {
74 +               [CCode (has_construct_function = false)]
75 +               public Range (double lower_limit, double upper_limit, string description);
76 +               public Atk.Range copy ();
77 +               public void free ();
78 +               public unowned string get_description ();
79 +               public double get_lower_limit ();
80 +               public double get_upper_limit ();
81 +       }
82         [CCode (cheader_filename = "atk/atk.h")]
83         public class Registry : GLib.Object {
84                 [Deprecated]
85 @@ -280,7 +303,9 @@
86                 public abstract void get_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
87                 public abstract Atk.Layer get_layer ();
88                 public abstract int get_mdi_zorder ();
89 +               [Deprecated]
90                 public abstract void get_position (int x, int y, Atk.CoordType coord_type);
91 +               [Deprecated]
92                 public abstract void get_size (int width, int height);
93                 public abstract bool grab_focus ();
94                 public abstract Atk.Object ref_accessible_at_point (int x, int y, Atk.CoordType coord_type);
95 @@ -293,23 +318,23 @@
96         }
97         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_document_get_type ()")]
98         public interface Document : GLib.Object {
99 -               [CCode (vfunc_name = "get_document_attribute_value")]
100 -               public virtual unowned string get_attribute_value (string attribute_name);
101 -               [CCode (vfunc_name = "get_document_attributes")]
102 -               public virtual unowned Atk.AttributeSet get_attributes ();
103 +               public unowned string get_attribute_value (string attribute_name);
104 +               public unowned Atk.AttributeSet get_attributes ();
105                 public virtual int get_current_page_number ();
106                 [Deprecated]
107                 public virtual void* get_document ();
108 +               [NoWrapper]
109 +               public virtual unowned string get_document_attribute_value (string attribute_name);
110                 [Deprecated (replacement = "Document.get_locale", since = "vala-0.22")]
111                 public virtual unowned string get_document_locale ();
112                 [Deprecated]
113                 public virtual unowned string get_document_type ();
114 -               [CCode (vfunc_name = "get_document_locale")]
115                 [Deprecated]
116 -               public virtual unowned string get_locale ();
117 +               public unowned string get_locale ();
118                 public virtual int get_page_count ();
119 -               [CCode (vfunc_name = "set_document_attribute")]
120 -               public virtual bool set_attribute_value (string attribute_name, string attribute_value);
121 +               public bool set_attribute_value (string attribute_name, string attribute_value);
122 +               [NoWrapper]
123 +               public virtual bool set_document_attribute (string attribute_name, string attribute_value);
124                 public signal void load_complete ();
125                 public signal void load_stopped ();
126                 public signal void page_changed (int page_number);
127 @@ -344,7 +369,7 @@
128                 public abstract void get_image_size (int width, int height);
129                 public abstract bool set_image_description (string description);
130         }
131 -       [CCode (cheader_filename = "atk/atk.h")]
132 +       [CCode (cheader_filename = "atk/atk.h", type_id = "atk_document_get_type ()")]
133         public interface Implementor : GLib.Object {
134                 public abstract unowned Atk.Object ref_accessible ();
135         }
136 @@ -371,13 +396,16 @@
137                 public abstract bool add_column_selection (int column);
138                 public abstract bool add_row_selection (int row);
139                 public abstract unowned Atk.Object get_caption ();
140 +               [Deprecated]
141                 public abstract int get_column_at_index (int index_);
142                 public abstract unowned string get_column_description (int column);
143                 public abstract int get_column_extent_at (int row, int column);
144                 public abstract unowned Atk.Object get_column_header (int column);
145 +               [Deprecated]
146                 public abstract int get_index_at (int row, int column);
147                 public abstract int get_n_columns ();
148                 public abstract int get_n_rows ();
149 +               [Deprecated]
150                 public abstract int get_row_at_index (int index_);
151                 public abstract unowned string get_row_description (int row);
152                 public abstract int get_row_extent_at (int row, int column);
153 @@ -405,6 +433,16 @@
154                 public virtual signal void row_inserted (int row, int num_inserted);
155                 public virtual signal void row_reordered ();
156         }
157 +       [CCode (cheader_filename = "atk/atk.h", type_id = "atk_table_cell_get_type ()")]
158 +       public interface TableCell : Atk.Object {
159 +               public abstract GLib.GenericArray<Atk.Object> get_column_header_cells ();
160 +               public abstract int get_column_span ();
161 +               public abstract bool get_position (out int row, out int column);
162 +               public abstract bool get_row_column_span (out int row, out int column, out int row_span, out int column_span);
163 +               public abstract GLib.GenericArray<Atk.Object> get_row_header_cells ();
164 +               public abstract int get_row_span ();
165 +               public abstract Atk.Object get_table ();
166 +       }
167         [CCode (cheader_filename = "atk/atk.h")]
168         public interface Text : GLib.Object {
169                 public abstract bool add_selection (int start_offset, int end_offset);
170 @@ -417,8 +455,8 @@
171                 [Deprecated (replacement = "TextAttribute.register", since = "vala-0.16")]
172                 public static Atk.TextAttribute attribute_register (string name);
173                 public static void free_ranges ([CCode (array_length = false)] Atk.TextRange[] ranges);
174 -               [CCode (array_length = false, array_null_terminated = true)]
175 -               public virtual Atk.TextRange[] get_bounded_ranges (Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
176 +               [NoWrapper]
177 +               public virtual Atk.TextRange get_bounded_ranges (Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
178                 public abstract int get_caret_offset ();
179                 public abstract unichar get_character_at_offset (int offset);
180                 public abstract int get_character_count ();
181 @@ -450,11 +488,22 @@
182         }
183         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_value_get_type ()")]
184         public interface Value : GLib.Object {
185 +               [Deprecated]
186                 public abstract void get_current_value (GLib.Value value);
187 +               public abstract double get_increment ();
188 +               [Deprecated]
189                 public abstract void get_maximum_value (GLib.Value value);
190 +               [Deprecated]
191                 public abstract void get_minimum_increment (GLib.Value value);
192 +               [Deprecated]
193                 public abstract void get_minimum_value (GLib.Value value);
194 +               public abstract Atk.Range get_range ();
195 +               public abstract GLib.SList<Atk.Range> get_sub_ranges ();
196 +               public abstract void get_value_and_text (out double value, out string text);
197 +               [Deprecated]
198                 public abstract bool set_current_value (GLib.Value value);
199 +               public abstract void set_value (double new_value);
200 +               public signal void value_changed (double value, string text);
201         }
202         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_window_get_type ()")]
203         public interface Window : Atk.Object {
204 @@ -649,7 +698,8 @@
205                 RULER,
206                 APPLICATION,
207                 AUTOCOMPLETE,
208 -               EDITBAR,
209 +               [CCode (cname = "ATK_ROLE_EDITBAR")]
210 +               EDIT_BAR,
211                 EMBEDDED,
212                 ENTRY,
213                 CHART,
214 @@ -688,6 +738,9 @@
215                 MATH,
216                 RATING,
217                 TIMER,
218 +               DESCRIPTION_LIST,
219 +               DESCRIPTION_TERM,
220 +               DESCRIPTION_VALUE,
221                 LAST_DEFINED;
222                 [CCode (cheader_filename = "atk/atk.h")]
223                 public static Atk.Role for_name (string name);
224 @@ -696,6 +749,7 @@
225                 [CCode (cheader_filename = "atk/atk.h")]
226                 public static unowned string get_name (Atk.Role role);
227                 [CCode (cheader_filename = "atk/atk.h")]
228 +               [Deprecated]
229                 public static Atk.Role register (string name);
230         }
231         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_STATE_", type_id = "atk_state_type_get_type ()")]
232 @@ -814,6 +868,29 @@
233                 LINE,
234                 PARAGRAPH
235         }
236 +       [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_VALUE_", type_id = "atk_value_type_get_type ()")]
237 +       public enum ValueType {
238 +               VERY_WEAK,
239 +               WEAK,
240 +               ACCEPTABLE,
241 +               STRONG,
242 +               VERY_STRONG,
243 +               VERY_LOW,
244 +               LOW,
245 +               MEDIUM,
246 +               HIGH,
247 +               VERY_HIGH,
248 +               VERY_BAD,
249 +               BAD,
250 +               GOOD,
251 +               VERY_GOOD,
252 +               BEST,
253 +               LAST_DEFINED;
254 +               [CCode (cheader_filename = "atk/atk.h")]
255 +               public static unowned string get_localized_name (Atk.ValueType value_type);
256 +               [CCode (cheader_filename = "atk/atk.h")]
257 +               public static unowned string get_name (Atk.ValueType value_type);
258 +       }
259         [CCode (cheader_filename = "atk/atk.h", has_target = false)]
260         public delegate void EventListener (Atk.Object obj);
261         [CCode (cheader_filename = "atk/atk.h", has_target = false)]
This page took 0.085988 seconds and 2 git commands to generate.