From 6d122ed99c830ef8767bb1b28f0c7e0ff47085c6 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 9 Oct 2021 11:51:08 -0400 Subject: [PATCH] caribou: restore package Upstream patches allow build to succeed with new vala and gobject-introspection. It seems libcaribou is still required by the lock screen in Cinnamon, so the package must be restored. This reverts commit 5b0c846dd8798d337dc6fd54beeffa2ab92fe28e. --- srcpkgs/caribou-devel | 1 + .../patches/autostart-set-nodisplay.patch | 21 + srcpkgs/caribou/patches/fix-crash.patch | 46 + .../fix-font-property-in-style.css.patch | 26 + srcpkgs/caribou/patches/fix-gir-vala.patch | 1039 +++++++++++++++++ srcpkgs/caribou/template | 51 + srcpkgs/libcaribou | 1 + 7 files changed, 1185 insertions(+) create mode 120000 srcpkgs/caribou-devel create mode 100644 srcpkgs/caribou/patches/autostart-set-nodisplay.patch create mode 100644 srcpkgs/caribou/patches/fix-crash.patch create mode 100644 srcpkgs/caribou/patches/fix-font-property-in-style.css.patch create mode 100644 srcpkgs/caribou/patches/fix-gir-vala.patch create mode 100644 srcpkgs/caribou/template create mode 120000 srcpkgs/libcaribou diff --git a/srcpkgs/caribou-devel b/srcpkgs/caribou-devel new file mode 120000 index 0000000000..7f932efc02 --- /dev/null +++ b/srcpkgs/caribou-devel @@ -0,0 +1 @@ +caribou \ No newline at end of file diff --git a/srcpkgs/caribou/patches/autostart-set-nodisplay.patch b/srcpkgs/caribou/patches/autostart-set-nodisplay.patch new file mode 100644 index 0000000000..10087f3f80 --- /dev/null +++ b/srcpkgs/caribou/patches/autostart-set-nodisplay.patch @@ -0,0 +1,21 @@ +From 286582f90fbbc9b3baa6b055bba1141cc30e6e94 Mon Sep 17 00:00:00 2001 +From: Jeremy Bicha +Date: Thu, 12 Oct 2017 18:14:35 -0400 +Subject: autostart: Set NoDisplay=true + +https://bugzilla.gnome.org/show_bug.cgi?id=788906 +https://launchpad.net/bugs/1723266 +--- + data/caribou-autostart.desktop.in.in | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/data/caribou-autostart.desktop.in.in b/data/caribou-autostart.desktop.in.in +index 4bd1c03..bf73a94 100644 +--- a/data/caribou-autostart.desktop.in.in ++++ b/data/caribou-autostart.desktop.in.in +@@ -5,4 +5,5 @@ Exec=@libexecdir@/caribou + AutostartCondition=GSettings org.gnome.desktop.a11y.applications screen-keyboard-enabled + X-GNOME-AutoRestart=true + #X-GNOME-Autostart-Phase=Initialization ++NoDisplay=true + OnlyShowIn=GNOME;Unity; diff --git a/srcpkgs/caribou/patches/fix-crash.patch b/srcpkgs/caribou/patches/fix-crash.patch new file mode 100644 index 0000000000..a6fa3d7cd3 --- /dev/null +++ b/srcpkgs/caribou/patches/fix-crash.patch @@ -0,0 +1,46 @@ +From d41c8e44b12222a290eaca16703406b113a630c6 Mon Sep 17 00:00:00 2001 +From: Michael Webster +Date: Tue, 12 Jan 2021 18:01:47 +0000 +Subject: [PATCH] xadapter.vala: Remove XkbKeyTypesMask and fields from + XKbChangeMap call. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This was originally a workaround for xFree86 4.3 - see: +https://bugzilla.gnome.org/show_bug.cgi?id=673547 +​ +As of https://gitlab.freedesktop.org/xorg/xserver/-/commit/87c64fc5b0 this +causes a BadLength error when attempting to use shifted characters. +​ +Ref: +https://www.x.org/releases/X11R7.7/doc/libX11/XKB/xkblib.html#Changing_Map_Components_in_the_Server +--- + libcaribou/xadapter.vala | 9 ++------- + 1 file changed, 2 insertions(+), 7 deletions(-) + +diff --git a/libcaribou/xadapter.vala b/libcaribou/xadapter.vala +index 22858b7..1da5a78 100644 +--- a/libcaribou/xadapter.vala ++++ b/libcaribou/xadapter.vala +@@ -195,15 +195,10 @@ namespace Caribou { + + Xkb.MapChanges changes = Xkb.MapChanges (); + +- // We don't touch key types here but include the +- // information in XkbSetMap request to the server, because +- // some X servers need the information to check the sanity +- // of the keysyms change. +- changes.changed = (ushort) (Xkb.KeySymsMask | Xkb.KeyTypesMask); ++ changes.changed = (ushort) Xkb.KeySymsMask; + changes.first_key_sym = (char) this.reserved_keycode; + changes.num_key_syms = this.xkbdesc.map.key_sym_map[this.reserved_keycode].width; +- changes.first_type = 0; +- changes.num_types = this.xkbdesc.map.num_types; ++ + Xkb.change_map (this.xdisplay, this.xkbdesc, changes); + + this.xdisplay.flush (); +-- +GitLab + diff --git a/srcpkgs/caribou/patches/fix-font-property-in-style.css.patch b/srcpkgs/caribou/patches/fix-font-property-in-style.css.patch new file mode 100644 index 0000000000..722fae54eb --- /dev/null +++ b/srcpkgs/caribou/patches/fix-font-property-in-style.css.patch @@ -0,0 +1,26 @@ +From 13df8b92ae89c796238e669ee6ef4447a42d6355 Mon Sep 17 00:00:00 2001 +From: Jeremy Bicha +Date: Fri, 1 Dec 2017 12:11:35 -0500 +Subject: style.css: Fix failure to start in GNOME Flashback + +The order for 'font' properties matters +https://developer.gnome.org/gtk3/stable/chap-css-properties.html + +https://bugzilla.gnome.org/show_bug.cgi?id=791001 +--- + data/antler/style.css | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/data/antler/style.css b/data/antler/style.css +index 5ab6f71..4d84904 100644 +--- a/data/antler/style.css ++++ b/data/antler/style.css +@@ -13,7 +13,7 @@ + border-width: 0px; + border-radius: 2px; + border-image: url("dark-key-border.svg") 2 2 2 2 repeat stretch; +- font: Sans 14px; ++ font: 14px Sans; + background-image: -gtk-gradient (linear, + left top, + left bottom, diff --git a/srcpkgs/caribou/patches/fix-gir-vala.patch b/srcpkgs/caribou/patches/fix-gir-vala.patch new file mode 100644 index 0000000000..bb11d8a296 --- /dev/null +++ b/srcpkgs/caribou/patches/fix-gir-vala.patch @@ -0,0 +1,1039 @@ +From 76fbd11575f918fc898cb0f5defe07f67c11ec38 Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz +Date: Wed, 20 Jan 2021 23:09:38 +0100 +Subject: [PATCH 1/5] Fix build with newer valac versions + +Fixes https://gitlab.gnome.org/GNOME/caribou/issues/7 +--- + libcaribou/key-model.vala | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libcaribou/key-model.vala b/libcaribou/key-model.vala +index 89015bc..e88342e 100644 +--- a/libcaribou/key-model.vala ++++ b/libcaribou/key-model.vala +@@ -101,7 +101,7 @@ namespace Caribou { + unichar uc; + while (text.get_next_char (ref index, out uc)) { + uint keyval = Gdk.unicode_to_keyval (uc); +- if (keyval != uc | 0x01000000) ++ if (keyval != (uc | 0x01000000)) + _keyvals += keyval; + } + } else { +-- +GitLab + + +From 3700b5396f0b5995d6911037f91863f7b0aa0cb4 Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz +Date: Wed, 20 Jan 2021 23:05:44 +0100 +Subject: [PATCH 2/5] Bump vala requirement to 0.40 + +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index eb84eae..539e451 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -61,7 +61,7 @@ PKG_CHECK_MODULES(CARIBOU, [ + AC_SUBST(CARIBOU_CFLAGS) + AC_SUBST(CARIBOU_LIBS) + +-AM_PROG_VALAC([0.13]) ++AM_PROG_VALAC([0.40]) + AC_SUBST(VALAC) + AC_SUBST(VALAFLAGS) + +-- +GitLab + + +From 7a9992235ad3f4fdaa8f8e1cbdc358a8989a1af1 Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz +Date: Wed, 20 Jan 2021 23:08:01 +0100 +Subject: [PATCH 3/5] No need to check valadoc version + +--- + configure.ac | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 539e451..52dea73 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -48,7 +48,6 @@ PYGOBJECT_REQUIRED=2.90.3 + GTK_REQUIRED=3.0.0 + CLUTTER_REQUIRED=1.5.11 + GDK_REQUIRED=3.0.0 +-VALADOC_REQUIRED=0.3.1 + + PKG_CHECK_MODULES(CARIBOU, [ + pygobject-3.0 >= $PYGOBJECT_REQUIRED, +@@ -137,8 +136,6 @@ AM_CONDITIONAL([ENABLE_DOCS], [test x$enable_docs = xyes]) + + have_valadoc=no + AS_IF([test x$enable_docs = xyes], [ +- # make sure the library is new enough and the program exists +- PKG_CHECK_MODULES([VALADOC], [valadoc-1.0 >= $VALADOC_REQUIRED]) + AC_PATH_PROG([VALADOC], [valadoc], [:]) + AS_IF([test "$VALADOC" != :], have_valadoc=yes) + ]) +-- +GitLab + + +From c52ce71c49dc8d6109a58d16cc8d491d7bd1d781 Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz +Date: Wed, 20 Jan 2021 22:59:49 +0100 +Subject: [PATCH 4/5] Stop patching the generated GIR + +--- + libcaribou/Makefile.am | 8 ++----- + tools/Makefile.am | 1 - + tools/fix_gir.py | 53 ------------------------------------------ + 3 files changed, 2 insertions(+), 60 deletions(-) + delete mode 100755 tools/fix_gir.py + +diff --git a/libcaribou/Makefile.am b/libcaribou/Makefile.am +index 05f2774..0634374 100644 +--- a/libcaribou/Makefile.am ++++ b/libcaribou/Makefile.am +@@ -7,7 +7,7 @@ libcaribou_la_VALAFLAGS = \ + --pkg xtst --pkg gee-0.8 --pkg gdk-x11-3.0 --pkg libxml-2.0 \ + --pkg libxklavier --pkg external-libs \ + --internal-vapi caribou-internals-1.0.vapi \ +- --library caribou-1.0 --gir _Caribou-1.0.gir \ ++ --library caribou-1.0 --gir Caribou-1.0.gir \ + --symbols libcaribou.symbols \ + $(VALAFLAGS) + +@@ -63,9 +63,6 @@ gir_DATA = Caribou-1.0.gir + typelibdir = $(libdir)/girepository-1.0 + typelib_DATA = Caribou-1.0.typelib + +-Caribou-1.0.gir: _Caribou-1.0.gir +- $(AM_V_GEN)$(PYTHON) -B $(top_srcdir)/tools/fix_gir.py $< > $@ +- + Caribou-1.0.typelib: Caribou-1.0.gir + @INTROSPECTION_COMPILER@ --shared-library=libcaribou.so.0 -o $@ $^ + +@@ -81,8 +78,7 @@ CLEANFILES = \ + caribou-1.0.vapi \ + caribou-internals-1.0.vapi \ + Caribou-1.0.typelib \ +- Caribou-1.0.gir \ +- _Caribou-1.0.gir ++ Caribou-1.0.gir + + DISTCLEANFILES = \ + caribou-1.0.pc +diff --git a/tools/Makefile.am b/tools/Makefile.am +index 3a9bcdb..89f753d 100644 +--- a/tools/Makefile.am ++++ b/tools/Makefile.am +@@ -1,5 +1,4 @@ + EXTRA_DIST = \ +- fix_gir.py \ + make_schema.py \ + convert_cldr.py \ + basic.xsl +diff --git a/tools/fix_gir.py b/tools/fix_gir.py +deleted file mode 100755 +index 182d108..0000000 +--- a/tools/fix_gir.py ++++ /dev/null +@@ -1,53 +0,0 @@ +-#!/usr/bin/python +- +-from xml.dom import minidom +- +-def purge_white_space_and_fix_namespace(node, indent=0): +- if getattr(node, "tagName", None) == "namespace": +- name = node.getAttribute("name") +- node.setAttribute("name", name.lstrip('_')) +- for child in [c for c in node.childNodes]: +- if child.nodeType == node.TEXT_NODE or \ +- getattr(child, "tagName", None) == "annotation": +- node.removeChild(child) +- continue +- purge_white_space_and_fix_namespace(child, indent+1) +- +-def find_ancestor(node, name): +- if getattr(node, "tagName", None) == name: +- return node +- parent = getattr(node, "parentNode", None) +- if not parent: +- return None +- return find_ancestor(parent, name) +- +-def fix_vfuncs(dom): +- for f in dom.getElementsByTagName("field"): +- callbacks = f.getElementsByTagName("callback") +- +- record = find_ancestor(f, "record") +- if not record: +- continue +- +- name = record.getAttribute("name") +- cname = record.getAttribute("c:type") +- +- assert(name.endswith("Class") or name.endswith("Iface")) +- assert(cname.endswith("Class") or name.endswith("Iface")) +- +- if len(callbacks) == 2: +- callbacks[-1].parentNode.removeChild(callbacks[-1]) +- +-if __name__ == "__main__": +- import sys +- +- if len(sys.argv) != 2: +- print("supply a gir file") +- sys.exit(1) +- +- dom = minidom.parse(sys.argv[-1]) +- +- purge_white_space_and_fix_namespace(dom) +- fix_vfuncs(dom) +- +- print(dom.toprettyxml(indent=" ", newl="\n")) +-- +GitLab + + +From af41f8a77b9e03a305a6169a6adfc767621d2217 Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz +Date: Wed, 20 Jan 2021 23:03:43 +0100 +Subject: [PATCH 5/5] Drop copy of atspi2.vapi + +--- + vapi/Makefile.am | 1 - + vapi/atspi-2.vapi | 803 ---------------------------------------------- + 2 files changed, 804 deletions(-) + delete mode 100644 vapi/atspi-2.vapi + +diff --git a/vapi/Makefile.am b/vapi/Makefile.am +index 1240b54..ea68a2a 100644 +--- a/vapi/Makefile.am ++++ b/vapi/Makefile.am +@@ -1,6 +1,5 @@ + EXTRA_DIST = \ + config.vapi \ +- atspi-2.vapi \ + external-libs.vapi \ + libxklavier.vapi + +diff --git a/vapi/atspi-2.vapi b/vapi/atspi-2.vapi +deleted file mode 100644 +index efb8e91..0000000 +--- a/vapi/atspi-2.vapi ++++ /dev/null +@@ -1,803 +0,0 @@ +-/* atspi-2.0.vapi generated by vapigen, do not modify. */ +- +-[CCode (cprefix = "Atspi", gir_namespace = "Atspi", gir_version = "2.0", lower_case_cprefix = "atspi_")] +-namespace Atspi { +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_accessible_get_type ()")] +- public class Accessible : Atspi.Object, Atspi.Action, Atspi.Collection, Atspi.Component, Atspi.Document, Atspi.EditableText, Atspi.Hypertext, Atspi.Image, Atspi.Selection, Atspi.Table, Atspi.Text, Atspi.Value { +- public weak Atspi.Accessible accessible_parent; +- public weak GLib.HashTable attributes; +- public uint cached_properties; +- public weak GLib.List children; +- public weak string description; +- public int interfaces; +- public weak string name; +- public Atspi.Role role; +- public weak Atspi.StateSet states; +- [CCode (has_construct_function = false)] +- protected Accessible (); +- public void clear_cache (); +- public Atspi.Action get_action (); +- public Atspi.Accessible get_application () throws GLib.Error; +- public string get_atspi_version () throws GLib.Error; +- public GLib.HashTable get_attributes () throws GLib.Error; +- public GLib.Array get_attributes_as_array () throws GLib.Error; +- public Atspi.Accessible get_child_at_index (int child_index) throws GLib.Error; +- public int get_child_count () throws GLib.Error; +- public Atspi.Collection get_collection (); +- public Atspi.Component get_component (); +- public string get_description () throws GLib.Error; +- public Atspi.Document get_document (); +- public Atspi.EditableText get_editable_text (); +- public Atspi.Hyperlink get_hyperlink (); +- public Atspi.Hypertext get_hypertext (); +- public int get_id () throws GLib.Error; +- public Atspi.Image get_image (); +- public int get_index_in_parent () throws GLib.Error; +- public GLib.Array get_interfaces (); +- public string get_localized_role_name () throws GLib.Error; +- public string get_name () throws GLib.Error; +- public Atspi.Accessible get_parent () throws GLib.Error; +- public uint get_process_id () throws GLib.Error; +- public GLib.Array get_relation_set () throws GLib.Error; +- public Atspi.Role get_role () throws GLib.Error; +- public string get_role_name () throws GLib.Error; +- public Atspi.Selection get_selection (); +- public Atspi.StateSet get_state_set (); +- public Atspi.Table get_table (); +- public Atspi.Text get_text (); +- public string get_toolkit_name () throws GLib.Error; +- public string get_toolkit_version () throws GLib.Error; +- public Atspi.Value get_value (); +- public void set_cache_mask (int mask); +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_device_listener_get_type ()")] +- public class DeviceListener : GLib.Object { +- public weak GLib.List callbacks; +- public uint id; +- [CCode (has_construct_function = false)] +- public DeviceListener (owned Atspi.DeviceListenerCB callback); +- public void add_callback ([CCode (delegate_target_pos = 1.2, destroy_notify_pos = 1.1)] owned Atspi.DeviceListenerCB callback); +- [NoWrapper] +- public virtual bool device_event (Atspi.DeviceEvent arg0); +- public void remove_callback (Atspi.DeviceListenerCB callback); +- [CCode (has_construct_function = false)] +- public DeviceListener.simple ([CCode (destroy_notify_pos = 1.1)] owned Atspi.DeviceListenerSimpleCB callback); +- } +- [CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_event_get_type ()")] +- [Compact] +- public class Event { +- public GLib.Value any_data; +- public int detail1; +- public int detail2; +- public weak Atspi.Accessible source; +- public weak string type; +- public static void main (); +- public static void quit (); +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_event_listener_get_type ()")] +- public class EventListener : GLib.Object { +- public weak Atspi.EventListenerCB callback; +- public weak GLib.DestroyNotify cb_destroyed; +- public void* user_data; +- [CCode (has_construct_function = false)] +- public EventListener (owned Atspi.EventListenerCB callback); +- public bool deregister (string event_type) throws GLib.Error; +- public static bool deregister_from_callback ([CCode (delegate_target_pos = 1.5)] Atspi.EventListenerCB callback, string event_type) throws GLib.Error; +- public static bool deregister_no_data (Atspi.EventListenerSimpleCB callback, string event_type) throws GLib.Error; +- public bool register (string event_type) throws GLib.Error; +- public static bool register_from_callback ([CCode (delegate_target_pos = 1.33333, destroy_notify_pos = 1.66667)] owned Atspi.EventListenerCB callback, string event_type) throws GLib.Error; +- public static bool register_no_data ([CCode (destroy_notify_pos = 1.5)] owned Atspi.EventListenerSimpleCB callback, string event_type) throws GLib.Error; +- [CCode (has_construct_function = false)] +- public EventListener.simple ([CCode (destroy_notify_pos = 1.1)] owned Atspi.EventListenerSimpleCB callback); +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_hyperlink_get_type ()")] +- public class Hyperlink : Atspi.Object { +- [CCode (has_construct_function = false)] +- protected Hyperlink (); +- public int get_end_index () throws GLib.Error; +- public Atspi.Range get_index_range () throws GLib.Error; +- public int get_n_anchors () throws GLib.Error; +- public Atspi.Accessible get_object (int i) throws GLib.Error; +- public int get_start_index () throws GLib.Error; +- public string get_uri (int i) throws GLib.Error; +- public bool is_valid () throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_key_definition_get_type ()")] +- [Compact] +- public class KeyDefinition { +- public int keycode; +- public weak string keystring; +- public int keysym; +- public int unused; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_match_rule_get_type ()")] +- public class MatchRule : GLib.Object { +- public Atspi.CollectionMatchType attributematchtype; +- public weak GLib.HashTable attributes; +- public Atspi.CollectionMatchType interfacematchtype; +- public weak GLib.Array interfaces; +- public bool invert; +- public Atspi.CollectionMatchType rolematchtype; +- [CCode (array_length = false, array_null_terminated = true)] +- public weak int[] roles; +- public Atspi.CollectionMatchType statematchtype; +- public weak Atspi.StateSet states; +- [CCode (has_construct_function = false)] +- public MatchRule (Atspi.StateSet states, Atspi.CollectionMatchType statematchtype, GLib.HashTable attributes, Atspi.CollectionMatchType attributematchtype, GLib.Array roles, Atspi.CollectionMatchType rolematchtype, GLib.Array interfaces, Atspi.CollectionMatchType interfacematchtype, bool invert); +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_object_get_type ()")] +- public class Object : GLib.Object { +- public Atspi.Application app; +- public weak string path; +- [CCode (has_construct_function = false)] +- protected Object (); +- } +- [CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_point_get_type ()")] +- [Compact] +- public class Point { +- public int x; +- public int y; +- public Atspi.Point copy (); +- } +- [CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_range_get_type ()")] +- [Compact] +- public class Range { +- public int end_offset; +- public int start_offset; +- public Atspi.Range copy (); +- } +- [CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_rect_get_type ()")] +- [Compact] +- public class Rect { +- public int height; +- public int width; +- public int x; +- public int y; +- public Atspi.Rect copy (); +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_relation_get_type ()")] +- public class Relation : GLib.Object { +- public Atspi.RelationType relation_type; +- public weak GLib.Array targets; +- [CCode (has_construct_function = false)] +- protected Relation (); +- public int get_n_targets (); +- public Atspi.RelationType get_relation_type (); +- public Atspi.Accessible get_target (int i); +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_state_set_get_type ()")] +- public class StateSet : GLib.Object { +- public void* accessible; +- public int64 states; +- [CCode (has_construct_function = false)] +- public StateSet (GLib.Array states); +- public void add (Atspi.StateType state); +- public Atspi.StateSet compare (Atspi.StateSet set2); +- public bool contains (Atspi.StateType state); +- public bool equals (Atspi.StateSet set2); +- public GLib.Array get_states (); +- public bool is_empty (); +- public void remove (Atspi.StateType state); +- public void set_by_name (string name, bool enabled); +- } +- [CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_text_range_get_type ()")] +- [Compact] +- public class TextRange { +- public weak string content; +- public int end_offset; +- public int start_offset; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_action_get_type ()")] +- public interface Action : GLib.Object { +- public bool do_action (int i) throws GLib.Error; +- public string get_description (int i) throws GLib.Error; +- public string get_key_binding (int i) throws GLib.Error; +- public string get_localized_name (int i) throws GLib.Error; +- public int get_n_actions () throws GLib.Error; +- public string get_name (int i) throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_collection_get_type ()")] +- public interface Collection : GLib.Object { +- public GLib.Array get_matches (Atspi.MatchRule rule, Atspi.CollectionSortOrder sortby, int count, bool traverse) throws GLib.Error; +- public GLib.Array get_matches_from (Atspi.Accessible current_object, Atspi.MatchRule rule, Atspi.CollectionSortOrder sortby, Atspi.CollectionTreeTraversalType tree, int count, bool traverse) throws GLib.Error; +- public GLib.Array get_matches_to (Atspi.Accessible current_object, Atspi.MatchRule rule, Atspi.CollectionSortOrder sortby, Atspi.CollectionTreeTraversalType tree, bool limit_scope, int count, bool traverse) throws GLib.Error; +- public bool is_ancestor_of (Atspi.Accessible test) throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_component_get_type ()")] +- public interface Component : GLib.Object { +- public bool contains (int x, int y, Atspi.CoordType ctype) throws GLib.Error; +- public Atspi.Accessible get_accessible_at_point (int x, int y, Atspi.CoordType ctype) throws GLib.Error; +- public double get_alpha () throws GLib.Error; +- public Atspi.Rect get_extents (Atspi.CoordType ctype) throws GLib.Error; +- public Atspi.ComponentLayer get_layer () throws GLib.Error; +- public short get_mdi_z_order () throws GLib.Error; +- public Atspi.Point get_position (Atspi.CoordType ctype) throws GLib.Error; +- public Atspi.Point get_size () throws GLib.Error; +- public bool grab_focus () throws GLib.Error; +- public bool set_extents (int x, int y, int width, int height, Atspi.CoordType ctype) throws GLib.Error; +- public bool set_position (int x, int y, Atspi.CoordType ctype) throws GLib.Error; +- public bool set_size (int width, int height) throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_document_get_type ()")] +- public interface Document : GLib.Object { +- public string get_attribute_value (string attribute) throws GLib.Error; +- public GLib.HashTable get_attributes () throws GLib.Error; +- public string get_locale () throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_editable_text_get_type ()")] +- public interface EditableText : GLib.Object { +- public bool copy_text (int start_pos, int end_pos) throws GLib.Error; +- public bool cut_text (int start_pos, int end_pos) throws GLib.Error; +- public bool delete_text (int start_pos, int end_pos) throws GLib.Error; +- public bool insert_text (int position, string text, int length) throws GLib.Error; +- public bool paste_text (int position) throws GLib.Error; +- public bool set_text_contents (string new_contents) throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_hypertext_get_type ()")] +- public interface Hypertext : GLib.Object { +- public Atspi.Hyperlink get_link (int link_index) throws GLib.Error; +- public int get_link_index (int character_offset) throws GLib.Error; +- public int get_n_links () throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_image_get_type ()")] +- public interface Image : GLib.Object { +- public string get_image_description () throws GLib.Error; +- public Atspi.Rect get_image_extents (Atspi.CoordType ctype) throws GLib.Error; +- public string get_image_locale () throws GLib.Error; +- public Atspi.Point get_image_position (Atspi.CoordType ctype) throws GLib.Error; +- public Atspi.Point get_image_size () throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_selection_get_type ()")] +- public interface Selection : GLib.Object { +- public bool clear_selection () throws GLib.Error; +- public bool deselect_child (int child_index) throws GLib.Error; +- public bool deselect_selected_child (int selected_child_index) throws GLib.Error; +- public int get_n_selected_children () throws GLib.Error; +- public Atspi.Accessible get_selected_child (int selected_child_index) throws GLib.Error; +- public bool is_child_selected (int child_index) throws GLib.Error; +- public bool select_all () throws GLib.Error; +- public bool select_child (int child_index) throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_table_get_type ()")] +- public interface Table : GLib.Object { +- public bool add_column_selection (int column) throws GLib.Error; +- public bool add_row_selection (int row) throws GLib.Error; +- public Atspi.Accessible get_accessible_at (int row, int column) throws GLib.Error; +- public Atspi.Accessible get_caption () throws GLib.Error; +- public int get_column_at_index (int index) throws GLib.Error; +- public string get_column_description (int column) throws GLib.Error; +- public int get_column_extent_at (int row, int column) throws GLib.Error; +- public Atspi.Accessible get_column_header (int column) throws GLib.Error; +- public int get_index_at (int row, int column) throws GLib.Error; +- public int get_n_columns () throws GLib.Error; +- public int get_n_rows () throws GLib.Error; +- public int get_n_selected_columns () throws GLib.Error; +- public int get_n_selected_rows () throws GLib.Error; +- public int get_row_at_index (int index) throws GLib.Error; +- public bool get_row_column_extents_at_index (int index, out int row, out int col, out int row_extents, out int col_extents, out bool is_selected) throws GLib.Error; +- public string get_row_description (int row) throws GLib.Error; +- public int get_row_extent_at (int row, int column) throws GLib.Error; +- public Atspi.Accessible get_row_header (int row) throws GLib.Error; +- public GLib.Array get_selected_columns () throws GLib.Error; +- public GLib.Array get_selected_rows () throws GLib.Error; +- public Atspi.Accessible get_summary () throws GLib.Error; +- public bool is_column_selected (int column) throws GLib.Error; +- public bool is_row_selected (int row) throws GLib.Error; +- public bool is_selected (int row, int column) throws GLib.Error; +- public bool remove_column_selection (int column) throws GLib.Error; +- public bool remove_row_selection (int row) throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_text_get_type ()")] +- public interface Text : GLib.Object { +- public bool add_selection (int start_offset, int end_offset) throws GLib.Error; +- public GLib.HashTable get_attribute_run (int offset, bool include_defaults, out int start_offset, out int end_offset) throws GLib.Error; +- public string get_attribute_value (int offset, string attribute_name) throws GLib.Error; +- public GLib.HashTable get_attributes (int offset, out int start_offset, out int end_offset) throws GLib.Error; +- public GLib.Array get_bounded_ranges (int x, int y, int width, int height, Atspi.CoordType type, Atspi.TextClipType clipTypeX, Atspi.TextClipType clipTypeY) throws GLib.Error; +- public int get_caret_offset () throws GLib.Error; +- public uint get_character_at_offset (int offset) throws GLib.Error; +- public int get_character_count () throws GLib.Error; +- public Atspi.Rect get_character_extents (int offset, Atspi.CoordType type) throws GLib.Error; +- public GLib.HashTable get_default_attributes () throws GLib.Error; +- public int get_n_selections () throws GLib.Error; +- public int get_offset_at_point (int x, int y, Atspi.CoordType type) throws GLib.Error; +- public Atspi.Rect get_range_extents (int start_offset, int end_offset, Atspi.CoordType type) throws GLib.Error; +- public Atspi.Range get_selection (int selection_num) throws GLib.Error; +- public string get_text (int start_offset, int end_offset) throws GLib.Error; +- public Atspi.TextRange get_text_after_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error; +- public Atspi.TextRange get_text_at_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error; +- public Atspi.TextRange get_text_before_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error; +- public bool remove_selection (int selection_num) throws GLib.Error; +- public bool set_caret_offset (int new_offset) throws GLib.Error; +- public bool set_selection (int selection_num, int start_offset, int end_offset) throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_value_get_type ()")] +- public interface Value : GLib.Object { +- public double get_current_value () throws GLib.Error; +- public double get_maximum_value () throws GLib.Error; +- public double get_minimum_increment () throws GLib.Error; +- public double get_minimum_value () throws GLib.Error; +- public bool set_current_value (double new_value) throws GLib.Error; +- } +- [CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)] +- public struct Application { +- public weak GLib.Object parent; +- public weak GLib.HashTable hash; +- public weak string bus_name; +- public void* root; +- public Atspi.Cache cache; +- public weak string toolkit_name; +- public weak string toolkit_version; +- public weak string atspi_version; +- public void* time_added; +- } +- [CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)] +- public struct ApplicationClass { +- public weak GLib.ObjectClass parent_class; +- } +- [CCode (cheader_filename = "atspi/atspi.h")] +- [SimpleType] +- public struct ControllerEventMask : uint { +- } +- [CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)] +- public struct DeviceEvent { +- public Atspi.EventType type; +- public uint id; +- public ushort hw_code; +- public ushort modifiers; +- public uint timestamp; +- public weak string event_string; +- public bool is_text; +- } +- [CCode (cheader_filename = "atspi/atspi.h")] +- [SimpleType] +- public struct DeviceEventMask : uint { +- } +- [CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)] +- public struct EventListenerMode { +- public bool synchronous; +- public bool preemptive; +- public bool global; +- } +- [CCode (cheader_filename = "atspi/atspi.h")] +- [SimpleType] +- public struct KeyEventMask : uint { +- } +- [CCode (cheader_filename = "atspi/atspi.h")] +- [SimpleType] +- public struct KeyMaskType : uint { +- } +- [CCode (cheader_filename = "atspi/atspi.h")] +- [SimpleType] +- public struct KeystrokeListener { +- } +- [CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)] +- public struct Reference { +- public weak string name; +- public weak string path; +- } +- [CCode (cheader_filename = "atspi/atspi.h", cname = "_AtspiKeySet", has_type_id = false)] +- public struct _KeySet { +- public uint keysyms; +- public ushort keycodes; +- public weak string keystrings; +- public short len; +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_CACHE_")] +- [Flags] +- public enum Cache { +- NONE, +- PARENT, +- CHILDREN, +- NAME, +- DESCRIPTION, +- STATES, +- ROLE, +- INTERFACES, +- ATTRIBUTES, +- ALL, +- DEFAULT, +- UNDEFINED +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_MATCH_")] +- public enum CollectionMatchType { +- INVALID, +- ALL, +- ANY, +- NONE, +- EMPTY, +- LAST_DEFINED +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_SORT_ORDER_")] +- public enum CollectionSortOrder { +- INVALID, +- CANONICAL, +- FLOW, +- TAB, +- REVERSE_CANONICAL, +- REVERSE_FLOW, +- REVERSE_TAB, +- LAST_DEFINED +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_TREE_")] +- public enum CollectionTreeTraversalType { +- RESTRICT_CHILDREN, +- RESTRICT_SIBLING, +- INORDER, +- LAST_DEFINED +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_LAYER_")] +- public enum ComponentLayer { +- INVALID, +- BACKGROUND, +- CANVAS, +- WIDGET, +- MDI, +- POPUP, +- OVERLAY, +- WINDOW, +- LAST_DEFINED +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_COORD_TYPE_")] +- public enum CoordType { +- SCREEN, +- WINDOW +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_ERROR_")] +- public enum Error { +- APPLICATION_GONE, +- IPC +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_")] +- public enum EventType { +- KEY_PRESSED_EVENT, +- KEY_RELEASED_EVENT, +- BUTTON_PRESSED_EVENT, +- BUTTON_RELEASED_EVENT +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEY_")] +- public enum KeyEventType { +- PRESSED, +- RELEASED +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEYLISTENER_")] +- public enum KeyListenerSyncType { +- NOSYNC, +- SYNCHRONOUS, +- CANCONSUME, +- ALL_WINDOWS +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEY_")] +- public enum KeySynthType { +- PRESS, +- RELEASE, +- PRESSRELEASE, +- SYM, +- STRING +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_LOCALE_TYPE_")] +- public enum LocaleType { +- MESSAGES, +- COLLATE, +- CTYPE, +- MONETARY, +- NUMERIC, +- TIME +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_MODIFIER_")] +- public enum ModifierType { +- SHIFT, +- SHIFTLOCK, +- CONTROL, +- ALT, +- META, +- META2, +- META3, +- NUMLOCK +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_RELATION_")] +- public enum RelationType { +- NULL, +- LABEL_FOR, +- LABELLED_BY, +- CONTROLLER_FOR, +- CONTROLLED_BY, +- MEMBER_OF, +- TOOLTIP_FOR, +- NODE_CHILD_OF, +- NODE_PARENT_OF, +- EXTENDED, +- FLOWS_TO, +- FLOWS_FROM, +- SUBWINDOW_OF, +- EMBEDS, +- EMBEDDED_BY, +- POPUP_FOR, +- PARENT_WINDOW_OF, +- DESCRIPTION_FOR, +- DESCRIBED_BY, +- LAST_DEFINED +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_ROLE_")] +- public enum Role { +- INVALID, +- ACCELERATOR_LABEL, +- ALERT, +- ANIMATION, +- ARROW, +- CALENDAR, +- CANVAS, +- CHECK_BOX, +- CHECK_MENU_ITEM, +- COLOR_CHOOSER, +- COLUMN_HEADER, +- COMBO_BOX, +- DATE_EDITOR, +- DESKTOP_ICON, +- DESKTOP_FRAME, +- DIAL, +- DIALOG, +- DIRECTORY_PANE, +- DRAWING_AREA, +- FILE_CHOOSER, +- FILLER, +- FOCUS_TRAVERSABLE, +- FONT_CHOOSER, +- FRAME, +- GLASS_PANE, +- HTML_CONTAINER, +- ICON, +- IMAGE, +- INTERNAL_FRAME, +- LABEL, +- LAYERED_PANE, +- LIST, +- LIST_ITEM, +- MENU, +- MENU_BAR, +- MENU_ITEM, +- OPTION_PANE, +- PAGE_TAB, +- PAGE_TAB_LIST, +- PANEL, +- PASSWORD_TEXT, +- POPUP_MENU, +- PROGRESS_BAR, +- PUSH_BUTTON, +- RADIO_BUTTON, +- RADIO_MENU_ITEM, +- ROOT_PANE, +- ROW_HEADER, +- SCROLL_BAR, +- SCROLL_PANE, +- SEPARATOR, +- SLIDER, +- SPIN_BUTTON, +- SPLIT_PANE, +- STATUS_BAR, +- TABLE, +- TABLE_CELL, +- TABLE_COLUMN_HEADER, +- TABLE_ROW_HEADER, +- TEAROFF_MENU_ITEM, +- TERMINAL, +- TEXT, +- TOGGLE_BUTTON, +- TOOL_BAR, +- TOOL_TIP, +- TREE, +- TREE_TABLE, +- UNKNOWN, +- VIEWPORT, +- WINDOW, +- EXTENDED, +- HEADER, +- FOOTER, +- PARAGRAPH, +- RULER, +- APPLICATION, +- AUTOCOMPLETE, +- EDITBAR, +- EMBEDDED, +- ENTRY, +- CHART, +- CAPTION, +- DOCUMENT_FRAME, +- HEADING, +- PAGE, +- SECTION, +- REDUNDANT_OBJECT, +- FORM, +- LINK, +- INPUT_METHOD_WINDOW, +- TABLE_ROW, +- TREE_ITEM, +- DOCUMENT_SPREADSHEET, +- DOCUMENT_PRESENTATION, +- DOCUMENT_TEXT, +- DOCUMENT_WEB, +- DOCUMENT_EMAIL, +- COMMENT, +- LIST_BOX, +- GROUPING, +- IMAGE_MAP, +- NOTIFICATION, +- INFO_BAR, +- LAST_DEFINED; +- public static string get_name (Atspi.Role role); +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_STATE_")] +- public enum StateType { +- INVALID, +- ACTIVE, +- ARMED, +- BUSY, +- CHECKED, +- COLLAPSED, +- DEFUNCT, +- EDITABLE, +- ENABLED, +- EXPANDABLE, +- EXPANDED, +- FOCUSABLE, +- FOCUSED, +- HAS_TOOLTIP, +- HORIZONTAL, +- ICONIFIED, +- MODAL, +- MULTI_LINE, +- MULTISELECTABLE, +- OPAQUE, +- PRESSED, +- RESIZABLE, +- SELECTABLE, +- SELECTED, +- SENSITIVE, +- SHOWING, +- SINGLE_LINE, +- STALE, +- TRANSIENT, +- VERTICAL, +- VISIBLE, +- MANAGES_DESCENDANTS, +- INDETERMINATE, +- REQUIRED, +- TRUNCATED, +- ANIMATED, +- INVALID_ENTRY, +- SUPPORTS_AUTOCOMPLETION, +- SELECTABLE_TEXT, +- IS_DEFAULT, +- VISITED, +- LAST_DEFINED +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_TEXT_BOUNDARY_")] +- public enum TextBoundaryType { +- CHAR, +- WORD_START, +- WORD_END, +- SENTENCE_START, +- SENTENCE_END, +- LINE_START, +- LINE_END +- } +- [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_TEXT_CLIP_")] +- public enum TextClipType { +- NONE, +- MIN, +- MAX, +- BOTH +- } +- [CCode (cheader_filename = "atspi/atspi.h", instance_pos = 1.9)] +- public delegate bool DeviceListenerCB (owned Atspi.DeviceEvent stroke); +- [CCode (cheader_filename = "atspi/atspi.h", has_target = false)] +- public delegate bool DeviceListenerSimpleCB (owned Atspi.DeviceEvent stroke); +- [CCode (cheader_filename = "atspi/atspi.h", instance_pos = 1.9)] +- public delegate void EventListenerCB (owned Atspi.Event event); +- [CCode (cheader_filename = "atspi/atspi.h", has_target = false)] +- public delegate void EventListenerSimpleCB (owned Atspi.Event event); +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_COMPONENTLAYER_COUNT")] +- public const int COMPONENTLAYER_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_COORD_TYPE_COUNT")] +- public const int COORD_TYPE_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_ACCESSIBLE")] +- public const string DBUS_INTERFACE_ACCESSIBLE; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_ACTION")] +- public const string DBUS_INTERFACE_ACTION; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_APPLICATION")] +- public const string DBUS_INTERFACE_APPLICATION; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_CACHE")] +- public const string DBUS_INTERFACE_CACHE; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_COLLECTION")] +- public const string DBUS_INTERFACE_COLLECTION; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_COMPONENT")] +- public const string DBUS_INTERFACE_COMPONENT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_DEC")] +- public const string DBUS_INTERFACE_DEC; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_DEVICE_EVENT_LISTENER")] +- public const string DBUS_INTERFACE_DEVICE_EVENT_LISTENER; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_DOCUMENT")] +- public const string DBUS_INTERFACE_DOCUMENT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EDITABLE_TEXT")] +- public const string DBUS_INTERFACE_EDITABLE_TEXT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EVENT_KEYBOARD")] +- public const string DBUS_INTERFACE_EVENT_KEYBOARD; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EVENT_MOUSE")] +- public const string DBUS_INTERFACE_EVENT_MOUSE; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EVENT_OBJECT")] +- public const string DBUS_INTERFACE_EVENT_OBJECT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_HYPERLINK")] +- public const string DBUS_INTERFACE_HYPERLINK; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_HYPERTEXT")] +- public const string DBUS_INTERFACE_HYPERTEXT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_IMAGE")] +- public const string DBUS_INTERFACE_IMAGE; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_REGISTRY")] +- public const string DBUS_INTERFACE_REGISTRY; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_SELECTION")] +- public const string DBUS_INTERFACE_SELECTION; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_SOCKET")] +- public const string DBUS_INTERFACE_SOCKET; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_TABLE")] +- public const string DBUS_INTERFACE_TABLE; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_TEXT")] +- public const string DBUS_INTERFACE_TEXT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_VALUE")] +- public const string DBUS_INTERFACE_VALUE; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_NAME_REGISTRY")] +- public const string DBUS_NAME_REGISTRY; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_DEC")] +- public const string DBUS_PATH_DEC; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_NULL")] +- public const string DBUS_PATH_NULL; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_REGISTRY")] +- public const string DBUS_PATH_REGISTRY; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_ROOT")] +- public const string DBUS_PATH_ROOT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_EVENTTYPE_COUNT")] +- public const int EVENTTYPE_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_KEYEVENTTYPE_COUNT")] +- public const int KEYEVENTTYPE_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_KEYSYNTHTYPE_COUNT")] +- public const int KEYSYNTHTYPE_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_MATCHTYPES_COUNT")] +- public const int MATCHTYPES_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_MODIFIERTYPE_COUNT")] +- public const int MODIFIERTYPE_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_RELATIONTYPE_COUNT")] +- public const int RELATIONTYPE_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_ROLE_COUNT")] +- public const int ROLE_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_SORTORDER_COUNT")] +- public const int SORTORDER_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_STATETYPE_COUNT")] +- public const int STATETYPE_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_TEXT_BOUNDARY_TYPE_COUNT")] +- public const int TEXT_BOUNDARY_TYPE_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_TEXT_CLIP_TYPE_COUNT")] +- public const int TEXT_CLIP_TYPE_COUNT; +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static bool deregister_device_event_listener (Atspi.DeviceListener listener, void* filter) throws GLib.Error; +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static bool deregister_keystroke_listener (Atspi.DeviceListener listener, GLib.Array? key_set, Atspi.KeyMaskType modmask, Atspi.KeyEventMask event_types) throws GLib.Error; +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static int exit (); +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static bool generate_keyboard_event (long keyval, string keystring, Atspi.KeySynthType synth_type) throws GLib.Error; +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static bool generate_mouse_event (long x, long y, string name) throws GLib.Error; +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static Atspi.Accessible get_desktop (int i); +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static int get_desktop_count (); +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static GLib.Array get_desktop_list (); +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static int init (); +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static bool register_device_event_listener (Atspi.DeviceListener listener, Atspi.DeviceEventMask event_types, void* filter) throws GLib.Error; +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static bool register_keystroke_listener (Atspi.DeviceListener listener, GLib.Array? key_set, Atspi.KeyMaskType modmask, Atspi.KeyEventMask event_types, int sync_type) throws GLib.Error; +- [CCode (cheader_filename = "atspi/atspi.h")] +- public static void set_timeout (int val, int startup_time); +-} +-- +GitLab + diff --git a/srcpkgs/caribou/template b/srcpkgs/caribou/template new file mode 100644 index 0000000000..626b357b92 --- /dev/null +++ b/srcpkgs/caribou/template @@ -0,0 +1,51 @@ +# Template file for 'caribou' +pkgname=caribou +version=0.4.21 +revision=5 +build_style=gnu-configure +build_helper="gir" +configure_args="--disable-schemas-compile --disable-static --disable-gtk2-module + PYTHON=/usr/bin/python3" +hostmakedepends="pkg-config intltool python3-gobject-devel libxslt vala + automake libtool gettext-devel-tools glib-devel" +makedepends="vala-devel libxklavier-devel libgee08-devel python3-gobject-devel + clutter-devel gtk+3-devel libXtst-devel gir-freedesktop" +depends="python3-gobject python3-atspi python3-dbus gir-freedesktop at-spi2-atk + desktop-file-utils libcaribou>=${version}_${revision}" +short_desc="Alternative to the Gnome On-screen Keyboard" +maintainer="Enno Boland " +license="LGPL-2.1-only" +homepage="https://wiki.gnome.org/Projects/Caribou" +distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" +checksum=9c43d9f4bd30f4fea7f780d4e8b14f7589107c52e9cb6bd202bd0d1c2064de55 +lib32disabled=yes + +pre_configure() { + autoreconf -f -i +} + +libcaribou_package() { + lib32disabled=yes + short_desc+=" - library" + pkg_install() { + vmove "usr/lib/*.so.*" + vmove usr/share/caribou + vmove usr/lib/girepository-1.0 + vmove "usr/lib/gtk*" + vmove "usr/lib/gnome-settings-daemon*" + } +} + +caribou-devel_package() { + lib32disabled=yes + depends="libXtst-devel libgee08-devel libxklavier-devel gtk+3-devel + libxml2-devel libcaribou>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/share/gir-1.0 + vmove usr/share/vala + vmove "usr/lib/*.so" + } +} diff --git a/srcpkgs/libcaribou b/srcpkgs/libcaribou new file mode 120000 index 0000000000..7f932efc02 --- /dev/null +++ b/srcpkgs/libcaribou @@ -0,0 +1 @@ +caribou \ No newline at end of file