/usr/share/gir-1.0/Keybinder-3.0.gir is in libkeybinder-3.0-dev 0.3.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GObject" version="2.0"/>
<namespace name="Keybinder"
version="3.0"
shared-library="libkeybinder-3.0.so.0"
c:identifier-prefixes="Keybinder"
c:symbol-prefixes="keybinder">
<callback name="Handler" c:type="KeybinderHandler">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="keystring" transfer-ownership="none">
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" closure="1">
<type name="gpointer" c:type="void*"/>
</parameter>
</parameters>
</callback>
<function name="bind"
c:identifier="keybinder_bind"
shadowed-by="bind_full"
introspectable="0">
<doc xml:space="preserve">Grab a key combination globally and register a callback to be called each
time the key combination is pressed.
This function is excluded from introspected bindings and is replaced by
keybinder_bind_full.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the accelerator could be grabbed</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="keystring" transfer-ownership="none">
<doc xml:space="preserve">an accelerator description (gtk_accelerator_parse() format)</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="handler" transfer-ownership="none" closure="2">
<doc xml:space="preserve">callback function</doc>
<type name="Handler" c:type="KeybinderHandler"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">data to pass to @handler</doc>
<type name="gpointer" c:type="void*"/>
</parameter>
</parameters>
</function>
<function name="bind_full"
c:identifier="keybinder_bind_full"
shadows="bind"
version="0.3.0">
<doc xml:space="preserve">Grab a key combination globally and register a callback to be called each
time the key combination is pressed.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the accelerator could be grabbed</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="keystring" transfer-ownership="none">
<doc xml:space="preserve">an accelerator description (gtk_accelerator_parse() format)</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="handler"
transfer-ownership="none"
scope="notified"
closure="2"
destroy="3">
<doc xml:space="preserve">callback function</doc>
<type name="Handler" c:type="KeybinderHandler"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">data to pass to @handler</doc>
<type name="gpointer" c:type="void*"/>
</parameter>
<parameter name="notify"
transfer-ownership="none"
allow-none="1"
scope="async">
<doc xml:space="preserve">called when @handler is unregistered</doc>
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
</parameter>
</parameters>
</function>
<function name="get_current_event_time"
c:identifier="keybinder_get_current_event_time">
<return-value transfer-ownership="none">
<doc xml:space="preserve">the current event timestamp</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
</function>
<function name="init" c:identifier="keybinder_init">
<doc xml:space="preserve">Initialize the keybinder library.
This function must be called after initializing GTK, before calling any
other function in the library. Can only be called once.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</function>
<function name="set_use_cooked_accelerators"
c:identifier="keybinder_set_use_cooked_accelerators">
<doc xml:space="preserve">"Cooked" accelerators use symbols produced by using modifiers such
as shift or altgr, for example if "!" is produced by "Shift+1".
If cooked accelerators are enabled, use "&lt;Ctrl&gt;exclam" to bind
"Ctrl+!" If disabled, use "&lt;Ctrl&gt;&lt;Shift&gt;1" to bind
"Ctrl+Shift+1". These two examples are not equal on all keymaps.
The cooked accelerator keyvalue and modifiers are provided by the
function gdk_keymap_translate_keyboard_state()
Cooked accelerators are useful if you receive keystrokes from GTK to bind,
but raw accelerators can be useful if you or the user inputs accelerators as
text.
Default: Enabled. Should be set before binding anything.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="use_cooked" transfer-ownership="none">
<doc xml:space="preserve">if %FALSE disable cooked accelerators</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</function>
<function name="unbind"
c:identifier="keybinder_unbind"
shadowed-by="unbind_all"
introspectable="0">
<doc xml:space="preserve">Unregister a previously bound callback for this keystring.
NOTE: multiple callbacks per keystring are not properly supported. You
might as well use keybinder_unbind_all().
This function is excluded from introspected bindings and is replaced by
keybinder_unbind_all().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="keystring" transfer-ownership="none">
<doc xml:space="preserve">an accelerator description (gtk_accelerator_parse() format)</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="handler" transfer-ownership="none">
<doc xml:space="preserve">callback function</doc>
<type name="Handler" c:type="KeybinderHandler"/>
</parameter>
</parameters>
</function>
<function name="unbind_all"
c:identifier="keybinder_unbind_all"
shadows="unbind"
version="0.3.0">
<doc xml:space="preserve">Unregister all previously bound callbacks for this keystring.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="keystring" transfer-ownership="none">
<doc xml:space="preserve">an accelerator description (gtk_accelerator_parse() format)</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</function>
</namespace>
</repository>
|