commit 44c75fb5c6601804e8ae1554ea176a2b62fef84e
Author: Jakub Bogusz <[email protected]>
Date:   Sun Mar 30 06:22:50 2014 +0200

    - added atk-update patch (update atk vapi for atk 2.12)
    - release 2

 vala-atk-update.patch | 261 ++++++++++++++++++++++++++++++++++++++++++++++++++
 vala.spec             |   4 +-
 2 files changed, 264 insertions(+), 1 deletion(-)
---
diff --git a/vala.spec b/vala.spec
index 36392aa..1c96de7 100644
--- a/vala.spec
+++ b/vala.spec
@@ -3,12 +3,13 @@ Summary:      GObject-based language compiler
 Summary(pl.UTF-8):     Kompilator języka opartego na bibliotece GObject
 Name:          vala
 Version:       0.24.0
-Release:       1
+Release:       2
 Epoch:         2
 License:       LGPL v2+
 Group:         Development/Languages
 Source0:       
http://ftp.gnome.org/pub/GNOME/sources/vala/0.24/%{name}-%{version}.tar.xz
 # Source0-md5: beddeff9c06d3c278988b237da0e7401
+Patch0:                %{name}-atk-update.patch
 URL:           http://live.gnome.org/Vala
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake >= 1:1.11
@@ -69,6 +70,7 @@ Dokumentacja API vala.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/vala-atk-update.patch b/vala-atk-update.patch
new file mode 100644
index 0000000..1ce37d2
--- /dev/null
+++ b/vala-atk-update.patch
@@ -0,0 +1,261 @@
+--- vala-0.24.0/vapi/atk.vapi.orig     2013-12-22 19:40:23.000000000 +0100
++++ vala-0.24.0/vapi/atk.vapi  2014-03-29 22:07:46.838336595 +0100
+@@ -41,12 +41,15 @@
+       public class Misc : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected Misc ();
++              [Deprecated]
+               public static unowned Atk.Misc get_instance ();
++              [Deprecated]
+               public virtual void threads_enter ();
++              [Deprecated]
+               public virtual void threads_leave ();
+       }
+       [CCode (cheader_filename = "atk/atk.h", type_id = 
"atk_no_op_object_get_type ()")]
+-      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 {
++      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 {
+               [CCode (has_construct_function = false, type = "AtkObject*")]
+               public NoOpObject (GLib.Object obj);
+       }
+@@ -65,6 +68,7 @@
+               [CCode (has_construct_function = false)]
+               protected Object ();
+               public bool add_relationship (Atk.RelationType relationship, 
Atk.Object target);
++              [Deprecated]
+               public virtual uint connect_property_change_handler 
(Atk.PropertyChangeHandler handler);
+               public virtual Atk.AttributeSet get_attributes ();
+               public virtual unowned string get_description ();
+@@ -82,9 +86,11 @@
+               public virtual Atk.Role get_role ();
+               public virtual void initialize (void* data);
+               public void notify_state_change (Atk.State state, bool value);
++              public unowned Atk.Object peek_parent ();
+               public Atk.Object ref_accessible_child (int i);
+               public virtual Atk.RelationSet ref_relation_set ();
+               public virtual Atk.StateSet ref_state_set ();
++              [Deprecated]
+               public virtual void remove_property_change_handler (uint 
handler_id);
+               public bool remove_relationship (Atk.RelationType relationship, 
Atk.Object target);
+               public virtual void set_description (string description);
+@@ -105,20 +111,26 @@
+               public Atk.Object accessible_parent { owned get; set; }
+               [NoAccessorMethod]
+               public int accessible_role { get; set; }
++              [Deprecated]
+               [NoAccessorMethod]
+               public string accessible_table_caption { owned get; set; }
+               [NoAccessorMethod]
+               public Atk.Object accessible_table_caption_object { owned get; 
set; }
++              [Deprecated]
+               [NoAccessorMethod]
+               public string accessible_table_column_description { owned get; 
set; }
++              [Deprecated]
+               [NoAccessorMethod]
+               public Atk.Object accessible_table_column_header { owned get; 
set; }
++              [Deprecated]
+               [NoAccessorMethod]
+               public string accessible_table_row_description { owned get; 
set; }
++              [Deprecated]
+               [NoAccessorMethod]
+               public Atk.Object accessible_table_row_header { owned get; set; 
}
+               [NoAccessorMethod]
+               public Atk.Object accessible_table_summary { owned get; set; }
++              [Deprecated]
+               [NoAccessorMethod]
+               public double accessible_value { get; set; }
+               public virtual signal void active_descendant_changed (void* 
child);
+@@ -145,6 +157,17 @@
+               [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_range_get_type ()")]
++      [Compact]
++      public class Range {
++              [CCode (has_construct_function = false)]
++              public Range (double lower_limit, double upper_limit, string 
description);
++              public Atk.Range copy ();
++              public void free ();
++              public unowned string get_description ();
++              public double get_lower_limit ();
++              public double get_upper_limit ();
++      }
+       [CCode (cheader_filename = "atk/atk.h")]
+       public class Registry : GLib.Object {
+               [Deprecated]
+@@ -280,7 +303,9 @@
+               public abstract void get_extents (int x, int y, int width, int 
height, Atk.CoordType coord_type);
+               public abstract Atk.Layer get_layer ();
+               public abstract int get_mdi_zorder ();
++              [Deprecated]
+               public abstract void get_position (int x, int y, Atk.CoordType 
coord_type);
++              [Deprecated]
+               public abstract void get_size (int width, int height);
+               public abstract bool grab_focus ();
+               public abstract Atk.Object ref_accessible_at_point (int x, int 
y, Atk.CoordType coord_type);
+@@ -293,23 +318,23 @@
+       }
+       [CCode (cheader_filename = "atk/atk.h", type_id = 
"atk_document_get_type ()")]
+       public interface Document : GLib.Object {
+-              [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 Atk.AttributeSet get_attributes ();
++              public unowned string get_attribute_value (string 
attribute_name);
++              public unowned Atk.AttributeSet get_attributes ();
+               public virtual int get_current_page_number ();
+               [Deprecated]
+               public virtual void* get_document ();
++              [NoWrapper]
++              public virtual unowned string get_document_attribute_value 
(string attribute_name);
+               [Deprecated (replacement = "Document.get_locale", since = 
"vala-0.22")]
+               public virtual unowned string get_document_locale ();
+               [Deprecated]
+               public virtual unowned string get_document_type ();
+-              [CCode (vfunc_name = "get_document_locale")]
+               [Deprecated]
+-              public virtual unowned string get_locale ();
++              public unowned string get_locale ();
+               public virtual int get_page_count ();
+-              [CCode (vfunc_name = "set_document_attribute")]
+-              public virtual bool set_attribute_value (string attribute_name, 
string attribute_value);
++              public bool set_attribute_value (string attribute_name, string 
attribute_value);
++              [NoWrapper]
++              public virtual bool set_document_attribute (string 
attribute_name, string attribute_value);
+               public signal void load_complete ();
+               public signal void load_stopped ();
+               public signal void page_changed (int page_number);
+@@ -344,7 +369,7 @@
+               public abstract void get_image_size (int width, int height);
+               public abstract bool set_image_description (string description);
+       }
+-      [CCode (cheader_filename = "atk/atk.h")]
++      [CCode (cheader_filename = "atk/atk.h", type_id = 
"atk_document_get_type ()")]
+       public interface Implementor : GLib.Object {
+               public abstract unowned Atk.Object ref_accessible ();
+       }
+@@ -371,13 +396,16 @@
+               public abstract bool add_column_selection (int column);
+               public abstract bool add_row_selection (int row);
+               public abstract unowned Atk.Object get_caption ();
++              [Deprecated]
+               public abstract int get_column_at_index (int index_);
+               public abstract unowned string get_column_description (int 
column);
+               public abstract int get_column_extent_at (int row, int column);
+               public abstract unowned Atk.Object get_column_header (int 
column);
++              [Deprecated]
+               public abstract int get_index_at (int row, int column);
+               public abstract int get_n_columns ();
+               public abstract int get_n_rows ();
++              [Deprecated]
+               public abstract int get_row_at_index (int index_);
+               public abstract unowned string get_row_description (int row);
+               public abstract int get_row_extent_at (int row, int column);
+@@ -405,6 +433,16 @@
+               public virtual signal void row_inserted (int row, int 
num_inserted);
+               public virtual signal void row_reordered ();
+       }
++      [CCode (cheader_filename = "atk/atk.h", type_id = 
"atk_table_cell_get_type ()")]
++      public interface TableCell : Atk.Object {
++              public abstract GLib.GenericArray<Atk.Object> 
get_column_header_cells ();
++              public abstract int get_column_span ();
++              public abstract bool get_position (out int row, out int column);
++              public abstract bool get_row_column_span (out int row, out int 
column, out int row_span, out int column_span);
++              public abstract GLib.GenericArray<Atk.Object> 
get_row_header_cells ();
++              public abstract int get_row_span ();
++              public abstract Atk.Object get_table ();
++      }
+       [CCode (cheader_filename = "atk/atk.h")]
+       public interface Text : GLib.Object {
+               public abstract bool add_selection (int start_offset, int 
end_offset);
+@@ -417,8 +455,8 @@
+               [Deprecated (replacement = "TextAttribute.register", since = 
"vala-0.16")]
+               public static Atk.TextAttribute attribute_register (string 
name);
+               public static void free_ranges ([CCode (array_length = false)] 
Atk.TextRange[] ranges);
+-              [CCode (array_length = false, array_null_terminated = true)]
+-              public virtual Atk.TextRange[] get_bounded_ranges 
(Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType 
x_clip_type, Atk.TextClipType y_clip_type);
++              [NoWrapper]
++              public virtual Atk.TextRange get_bounded_ranges 
(Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType 
x_clip_type, Atk.TextClipType y_clip_type);
+               public abstract int get_caret_offset ();
+               public abstract unichar get_character_at_offset (int offset);
+               public abstract int get_character_count ();
+@@ -450,11 +488,22 @@
+       }
+       [CCode (cheader_filename = "atk/atk.h", type_id = "atk_value_get_type 
()")]
+       public interface Value : GLib.Object {
++              [Deprecated]
+               public abstract void get_current_value (GLib.Value value);
++              public abstract double get_increment ();
++              [Deprecated]
+               public abstract void get_maximum_value (GLib.Value value);
++              [Deprecated]
+               public abstract void get_minimum_increment (GLib.Value value);
++              [Deprecated]
+               public abstract void get_minimum_value (GLib.Value value);
++              public abstract Atk.Range get_range ();
++              public abstract GLib.SList<Atk.Range> get_sub_ranges ();
++              public abstract void get_value_and_text (out double value, out 
string text);
++              [Deprecated]
+               public abstract bool set_current_value (GLib.Value value);
++              public abstract void set_value (double new_value);
++              public signal void value_changed (double value, string text);
+       }
+       [CCode (cheader_filename = "atk/atk.h", type_id = "atk_window_get_type 
()")]
+       public interface Window : Atk.Object {
+@@ -649,7 +698,8 @@
+               RULER,
+               APPLICATION,
+               AUTOCOMPLETE,
+-              EDITBAR,
++              [CCode (cname = "ATK_ROLE_EDITBAR")]
++              EDIT_BAR,
+               EMBEDDED,
+               ENTRY,
+               CHART,
+@@ -688,6 +738,9 @@
+               MATH,
+               RATING,
+               TIMER,
++              DESCRIPTION_LIST,
++              DESCRIPTION_TERM,
++              DESCRIPTION_VALUE,
+               LAST_DEFINED;
+               [CCode (cheader_filename = "atk/atk.h")]
+               public static Atk.Role for_name (string name);
+@@ -696,6 +749,7 @@
+               [CCode (cheader_filename = "atk/atk.h")]
+               public static unowned string get_name (Atk.Role role);
+               [CCode (cheader_filename = "atk/atk.h")]
++              [Deprecated]
+               public static Atk.Role register (string name);
+       }
+       [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_STATE_", type_id 
= "atk_state_type_get_type ()")]
+@@ -814,6 +868,29 @@
+               LINE,
+               PARAGRAPH
+       }
++      [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_VALUE_", type_id 
= "atk_value_type_get_type ()")]
++      public enum ValueType {
++              VERY_WEAK,
++              WEAK,
++              ACCEPTABLE,
++              STRONG,
++              VERY_STRONG,
++              VERY_LOW,
++              LOW,
++              MEDIUM,
++              HIGH,
++              VERY_HIGH,
++              VERY_BAD,
++              BAD,
++              GOOD,
++              VERY_GOOD,
++              BEST,
++              LAST_DEFINED;
++              [CCode (cheader_filename = "atk/atk.h")]
++              public static unowned string get_localized_name (Atk.ValueType 
value_type);
++              [CCode (cheader_filename = "atk/atk.h")]
++              public static unowned string get_name (Atk.ValueType 
value_type);
++      }
+       [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)]
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vala.git/commitdiff/44c75fb5c6601804e8ae1554ea176a2b62fef84e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to