1 /* libgnome-menu-3.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "GMenu", gir_namespace = "GMenu", gir_version = "3.0", lower_case_cprefix = "gmenu_")]
5 [CCode (cheader_filename = "gmenu-tree.h", type_id = "gmenu_tree_get_type ()")]
6 public class Tree : GLib.Object {
7 [CCode (has_construct_function = false)]
8 public Tree (string menu_basename, GMenu.TreeFlags flags);
9 [CCode (has_construct_function = false)]
10 public Tree.for_path (string menu_path, GMenu.TreeFlags flags);
11 public unowned string get_canonical_menu_path ();
12 public GMenu.TreeDirectory get_directory_from_path (string path);
13 public GMenu.TreeEntry get_entry_by_id (string id);
14 public GMenu.TreeDirectory get_root_directory ();
15 public static void* item_ref (void* item);
16 public static void item_unref (void* item);
17 public bool load_sync () throws GLib.Error;
19 public GMenu.TreeFlags flags { get; construct; }
21 public string menu_basename { owned get; construct; }
23 public string menu_path { owned get; construct; }
24 public signal void changed ();
26 [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_alias_get_type ()")]
28 public class TreeAlias {
29 public GMenu.TreeDirectory get_aliased_directory ();
30 public GMenu.TreeEntry get_aliased_entry ();
31 public GMenu.TreeItemType get_aliased_item_type ();
32 public GMenu.TreeDirectory get_directory ();
33 public GMenu.TreeDirectory get_parent ();
34 public GMenu.Tree get_tree ();
36 [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_directory_get_type ()")]
38 public class TreeDirectory {
39 public unowned string get_comment ();
40 public unowned string get_desktop_file_path ();
41 public unowned string get_generic_name ();
42 public unowned GLib.Icon get_icon ();
43 public bool get_is_nodisplay ();
44 public unowned string get_menu_id ();
45 public unowned string get_name ();
46 public GMenu.TreeDirectory get_parent ();
47 public GMenu.Tree get_tree ();
48 public GMenu.TreeIter iter ();
49 public string make_path (GMenu.TreeEntry entry);
51 [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_entry_get_type ()")]
53 public class TreeEntry {
54 public unowned GLib.DesktopAppInfo get_app_info ();
55 public unowned string get_desktop_file_id ();
56 public unowned string get_desktop_file_path ();
57 public bool get_is_excluded ();
58 public bool get_is_nodisplay_recurse ();
59 public bool get_is_unallocated ();
60 public GMenu.TreeDirectory get_parent ();
61 public GMenu.Tree get_tree ();
63 [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_header_get_type ()")]
65 public class TreeHeader {
66 public GMenu.TreeDirectory get_directory ();
67 public GMenu.TreeDirectory get_parent ();
68 public GMenu.Tree get_tree ();
70 [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_iter_get_type ()")]
72 public class TreeIter {
73 public GMenu.TreeAlias get_alias ();
74 public GMenu.TreeDirectory get_directory ();
75 public GMenu.TreeEntry get_entry ();
76 public GMenu.TreeHeader get_header ();
77 public GMenu.TreeSeparator get_separator ();
78 public GMenu.TreeItemType next ();
80 [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_separator_get_type ()")]
82 public class TreeSeparator {
83 public GMenu.TreeDirectory get_parent ();
84 public GMenu.Tree get_tree ();
86 [CCode (cheader_filename = "gmenu-tree.h", cprefix = "GMENU_TREE_FLAGS_", type_id = "gmenu_tree_flags_get_type ()")]
88 public enum TreeFlags {
95 [CCode (cname = "GMENU_TREE_FLAGS_INCLUDE_UNALLOCATED,")]
98 [CCode (cheader_filename = "gmenu-tree.h", cprefix = "GMENU_TREE_ITEM_", has_type_id = false)]
99 public enum TreeItemType {