/usr/share/gir-1.0/GMenu-3.0.gir is in libgnome-menu-3-dev 3.4.0-0ubuntu1.
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 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 | <?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="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
<package name="libgnome-menu-3.0"/>
<namespace name="GMenu"
version="3.0"
shared-library="libgnome-menu-3.so.0"
c:identifier-prefixes="GMenu"
c:symbol-prefixes="gmenu">
<class name="Tree"
c:symbol-prefix="tree"
c:type="GMenuTree"
parent="GObject.Object"
glib:type-name="GMenuTree"
glib:get-type="gmenu_tree_get_type"
glib:type-struct="TreeClass">
<constructor name="new" c:identifier="gmenu_tree_new">
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A new #GMenuTree instance</doc>
<type name="Tree" c:type="GMenuTree*"/>
</return-value>
<parameters>
<parameter name="menu_basename" transfer-ownership="none">
<doc xml:whitespace="preserve">Basename of menu file</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="flags" transfer-ownership="none">
<doc xml:whitespace="preserve">Flags controlling menu content</doc>
<type name="TreeFlags" c:type="GMenuTreeFlags"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_for_path" c:identifier="gmenu_tree_new_for_path">
<return-value transfer-ownership="full">
<type name="Tree" c:type="GMenuTree*"/>
</return-value>
<parameters>
<parameter name="menu_path" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="flags" transfer-ownership="none">
<type name="TreeFlags" c:type="GMenuTreeFlags"/>
</parameter>
</parameters>
</constructor>
<function name="item_ref" c:identifier="gmenu_tree_item_ref">
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">The same @item, or %NULL if @item is not a valid #GMenuTreeItem</doc>
<type name="gpointer" c:type="gpointer"/>
</return-value>
<parameters>
<parameter name="item" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GMenuTreeItem</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="item_unref" c:identifier="gmenu_tree_item_unref">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="item" transfer-ownership="none">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<method name="get_canonical_menu_path"
c:identifier="gmenu_tree_get_canonical_menu_path">
<doc xml:whitespace="preserve">This function is only available if the tree has been loaded via
gmenu_tree_load_sync() or a variant thereof.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The absolute and canonicalized path to the loaded menu file</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_directory_from_path"
c:identifier="gmenu_tree_get_directory_from_path">
<return-value transfer-ownership="full">
<type name="TreeDirectory" c:type="GMenuTreeDirectory*"/>
</return-value>
<parameters>
<parameter name="path" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_entry_by_id" c:identifier="gmenu_tree_get_entry_by_id">
<doc xml:whitespace="preserve">Look up the entry corresponding to the given "desktop file id".</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly referenced #GMenuTreeEntry, or %NULL if none</doc>
<type name="TreeEntry" c:type="GMenuTreeEntry*"/>
</return-value>
<parameters>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="preserve">a desktop file ID</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_root_directory"
c:identifier="gmenu_tree_get_root_directory">
<doc xml:whitespace="preserve">Get the root directory; you must have loaded the tree first (at
least once) via gmenu_tree_load_sync() or a variant thereof.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">Root of the tree</doc>
<type name="TreeDirectory" c:type="GMenuTreeDirectory*"/>
</return-value>
</method>
<method name="load_sync" c:identifier="gmenu_tree_load_sync" throws="1">
<doc xml:whitespace="preserve">Synchronously load the menu contents. This function
performs a significant amount of blocking I/O if the
tree has not been loaded yet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE on success, %FALSE on error</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<property name="flags"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:whitespace="preserve">Flags controlling the content of the menu.</doc>
<type name="TreeFlags"/>
</property>
<property name="menu-basename"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:whitespace="preserve">The name of the menu file; must be a basename or a relative path. The file
will be looked up in $XDG_CONFIG_DIRS/menus/. See the Desktop Menu
specification.</doc>
<type name="utf8"/>
</property>
<property name="menu-path"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:whitespace="preserve">The full path of the menu file. If set, GMenuTree:menu-basename will get
ignored.</doc>
<type name="utf8"/>
</property>
<glib:signal name="changed" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
</glib:signal>
</class>
<record name="TreeAlias"
c:type="GMenuTreeAlias"
glib:type-name="GMenuTreeAlias"
glib:get-type="gmenu_tree_alias_get_type"
c:symbol-prefix="tree_alias">
<method name="get_aliased_directory"
c:identifier="gmenu_tree_alias_get_aliased_directory">
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">The aliased directory entry</doc>
<type name="TreeDirectory" c:type="GMenuTreeDirectory*"/>
</return-value>
</method>
<method name="get_aliased_entry"
c:identifier="gmenu_tree_alias_get_aliased_entry">
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">The aliased entry</doc>
<type name="TreeEntry" c:type="GMenuTreeEntry*"/>
</return-value>
</method>
<method name="get_aliased_item_type"
c:identifier="gmenu_tree_alias_get_aliased_item_type">
<return-value transfer-ownership="none">
<type name="TreeItemType" c:type="GMenuTreeItemType"/>
</return-value>
</method>
<method name="get_directory"
c:identifier="gmenu_tree_alias_get_directory">
<return-value transfer-ownership="full">
<type name="TreeDirectory" c:type="GMenuTreeDirectory*"/>
</return-value>
</method>
</record>
<record name="TreeClass"
c:type="GMenuTreeClass"
glib:is-gtype-struct-for="Tree">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<record name="TreeDirectory"
c:type="GMenuTreeDirectory"
glib:type-name="GMenuTreeDirectory"
glib:get-type="gmenu_tree_directory_get_type"
c:symbol-prefix="tree_directory">
<method name="get_comment"
c:identifier="gmenu_tree_directory_get_comment">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_desktop_file_path"
c:identifier="gmenu_tree_directory_get_desktop_file_path">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_generic_name"
c:identifier="gmenu_tree_directory_get_generic_name">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_icon" c:identifier="gmenu_tree_directory_get_icon">
<doc xml:whitespace="preserve">Gets the icon for the directory.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The #GIcon for this directory</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</return-value>
</method>
<method name="get_is_nodisplay"
c:identifier="gmenu_tree_directory_get_is_nodisplay">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="get_menu_id"
c:identifier="gmenu_tree_directory_get_menu_id">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_name" c:identifier="gmenu_tree_directory_get_name">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_parent" c:identifier="gmenu_tree_directory_get_parent">
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">The parent directory, or %NULL if none</doc>
<type name="TreeDirectory" c:type="GMenuTreeDirectory*"/>
</return-value>
</method>
<method name="iter" c:identifier="gmenu_tree_directory_iter">
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A new iterator over the directory contents</doc>
<type name="TreeIter" c:type="GMenuTreeIter*"/>
</return-value>
</method>
<method name="make_path" c:identifier="gmenu_tree_directory_make_path">
<return-value transfer-ownership="full">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="entry" transfer-ownership="none">
<type name="TreeEntry" c:type="GMenuTreeEntry*"/>
</parameter>
</parameters>
</method>
</record>
<record name="TreeEntry"
c:type="GMenuTreeEntry"
glib:type-name="GMenuTreeEntry"
glib:get-type="gmenu_tree_entry_get_type"
c:symbol-prefix="tree_entry">
<method name="get_app_info" c:identifier="gmenu_tree_entry_get_app_info">
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The #GDesktopAppInfo for this entry</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</return-value>
</method>
<method name="get_desktop_file_id"
c:identifier="gmenu_tree_entry_get_desktop_file_id">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_desktop_file_path"
c:identifier="gmenu_tree_entry_get_desktop_file_path">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_is_excluded"
c:identifier="gmenu_tree_entry_get_is_excluded">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="get_parent" c:identifier="gmenu_tree_entry_get_parent">
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">The parent directory, or %NULL if none</doc>
<type name="TreeDirectory" c:type="GMenuTreeDirectory*"/>
</return-value>
</method>
</record>
<bitfield name="TreeFlags"
glib:type-name="GMenuTreeFlags"
glib:get-type="gmenu_tree_flags_get_type"
c:type="GMenuTreeFlags">
<member name="none"
value="0"
c:identifier="GMENU_TREE_FLAGS_NONE"
glib:nick="none"/>
<member name="include_excluded"
value="1"
c:identifier="GMENU_TREE_FLAGS_INCLUDE_EXCLUDED"
glib:nick="include-excluded"/>
<member name="show_empty"
value="256"
c:identifier="GMENU_TREE_FLAGS_SHOW_EMPTY"
glib:nick="show-empty"/>
<member name="include_nodisplay"
value="2"
c:identifier="GMENU_TREE_FLAGS_INCLUDE_NODISPLAY"
glib:nick="include-nodisplay"/>
<member name="show_all_separators"
value="512"
c:identifier="GMENU_TREE_FLAGS_SHOW_ALL_SEPARATORS"
glib:nick="show-all-separators"/>
<member name="sort_display_name"
value="65536"
c:identifier="GMENU_TREE_FLAGS_SORT_DISPLAY_NAME"
glib:nick="sort-display-name"/>
</bitfield>
<record name="TreeHeader"
c:type="GMenuTreeHeader"
glib:type-name="GMenuTreeHeader"
glib:get-type="gmenu_tree_header_get_type"
c:symbol-prefix="tree_header">
<method name="get_directory"
c:identifier="gmenu_tree_header_get_directory">
<return-value transfer-ownership="full">
<type name="TreeDirectory" c:type="GMenuTreeDirectory*"/>
</return-value>
</method>
</record>
<enumeration name="TreeItemType" c:type="GMenuTreeItemType">
<member name="invalid" value="0" c:identifier="GMENU_TREE_ITEM_INVALID"/>
<member name="directory"
value="1"
c:identifier="GMENU_TREE_ITEM_DIRECTORY"/>
<member name="entry" value="2" c:identifier="GMENU_TREE_ITEM_ENTRY"/>
<member name="separator"
value="3"
c:identifier="GMENU_TREE_ITEM_SEPARATOR"/>
<member name="header" value="4" c:identifier="GMENU_TREE_ITEM_HEADER"/>
<member name="alias" value="5" c:identifier="GMENU_TREE_ITEM_ALIAS"/>
</enumeration>
<record name="TreeIter"
c:type="GMenuTreeIter"
glib:type-name="GMenuTreeIter"
glib:get-type="gmenu_tree_iter_get_type"
c:symbol-prefix="tree_iter">
<method name="get_alias" c:identifier="gmenu_tree_iter_get_alias">
<doc xml:whitespace="preserve">This method may only be called if gmenu_tree_iter_next()
returned GMENU_TREE_ITEM_ALIAS.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">An alias</doc>
<type name="TreeAlias" c:type="GMenuTreeAlias*"/>
</return-value>
</method>
<method name="get_directory"
c:identifier="gmenu_tree_iter_get_directory">
<doc xml:whitespace="preserve">This method may only be called if gmenu_tree_iter_next()
returned GMENU_TREE_ITEM_DIRECTORY.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A directory</doc>
<type name="TreeDirectory" c:type="GMenuTreeDirectory*"/>
</return-value>
</method>
<method name="get_entry" c:identifier="gmenu_tree_iter_get_entry">
<doc xml:whitespace="preserve">This method may only be called if gmenu_tree_iter_next()
returned GMENU_TREE_ITEM_ENTRY.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">An entry</doc>
<type name="TreeEntry" c:type="GMenuTreeEntry*"/>
</return-value>
</method>
<method name="get_header" c:identifier="gmenu_tree_iter_get_header">
<doc xml:whitespace="preserve">This method may only be called if gmenu_tree_iter_next()
returned GMENU_TREE_ITEM_HEADER.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A header</doc>
<type name="TreeHeader" c:type="GMenuTreeHeader*"/>
</return-value>
</method>
<method name="next" c:identifier="gmenu_tree_iter_next">
<doc xml:whitespace="preserve">Change the iterator to the next item, and return its type. If
there are no more items, %GMENU_TREE_ITEM_INVALID is returned.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The type of the next item that can be retrived from the iterator</doc>
<type name="TreeItemType" c:type="GMenuTreeItemType"/>
</return-value>
</method>
<method name="ref" c:identifier="gmenu_tree_iter_ref" introspectable="0">
<doc xml:whitespace="preserve">Increment the reference count of @iter</doc>
<return-value transfer-ownership="full">
<type name="TreeIter" c:type="GMenuTreeIter*"/>
</return-value>
</method>
<method name="unref"
c:identifier="gmenu_tree_iter_unref"
introspectable="0">
<doc xml:whitespace="preserve">Decrement the reference count of @iter</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
</record>
<record name="TreeSeparator"
c:type="GMenuTreeSeparator"
glib:type-name="GMenuTreeSeparator"
glib:get-type="gmenu_tree_separator_get_type"
c:symbol-prefix="tree_separator">
</record>
</namespace>
</repository>
|