[vala] atk: make Atk.State inherit from uint64
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] atk: make Atk.State inherit from uint64
- Date: Wed, 28 Apr 2010 00:33:40 +0000 (UTC)
commit 36de13782eb7da2427b048bbead58e75acdfe256
Author: Evan Nemerson <evan coeus-group com>
Date: Tue Apr 27 17:29:09 2010 -0700
atk: make Atk.State inherit from uint64
Fixes bug 613949.
vapi/atk.vapi | 15 ++++++++-------
vapi/packages/atk/atk.metadata | 1 +
2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/vapi/atk.vapi b/vapi/atk.vapi
index ea6e91d..6114340 100644
--- a/vapi/atk.vapi
+++ b/vapi/atk.vapi
@@ -186,13 +186,6 @@ namespace Atk {
public unowned Atk.Relation get_relation_by_type (Atk.RelationType relationship);
public void remove (Atk.Relation relation);
}
- [Compact]
- [CCode (cheader_filename = "atk/atk.h")]
- public class State {
- public static Atk.StateType type_for_name (string name);
- public static unowned string type_get_name (Atk.StateType type);
- public static Atk.StateType type_register (string name);
- }
[CCode (cheader_filename = "atk/atk.h")]
public class StateSet : GLib.Object {
[CCode (has_construct_function = false)]
@@ -425,6 +418,14 @@ namespace Atk {
public int width;
public int height;
}
+ [CCode (cheader_filename = "atk/atk.h")]
+ [SimpleType]
+ [IntegerType (rank = 11)]
+ public struct State : uint64 {
+ public static Atk.StateType type_for_name (string name);
+ public static unowned string type_get_name (Atk.StateType type);
+ public static Atk.StateType type_register (string name);
+ }
[CCode (cprefix = "ATK_XY_", cheader_filename = "atk/atk.h")]
public enum CoordType {
SCREEN,
diff --git a/vapi/packages/atk/atk.metadata b/vapi/packages/atk/atk.metadata
index b0c2f95..a0087b6 100644
--- a/vapi/packages/atk/atk.metadata
+++ b/vapi/packages/atk/atk.metadata
@@ -1,3 +1,4 @@
Atk cheader_filename="atk/atk.h" gir_namespace="Atk" gir_version="1.0"
+AtkState is_value_type="1" simple_type="1" base_type="uint64" rank="11"
AtkRectangle is_value_type="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]