vala: Allow read-only properties
[vala-gnome.git] / vapi / libgnome-menu-3.0.vapi
blobc6848f7d8af98b2b4c5bba67e577501f9e6274cc
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_")]
4 namespace 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;
18                 [NoAccessorMethod]
19                 public GMenu.TreeFlags flags { get; construct; }
20                 [NoAccessorMethod]
21                 public string menu_basename { owned get; construct; }
22                 [NoAccessorMethod]
23                 public string menu_path { owned get; construct; }
24                 public signal void changed ();
25         }
26         [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_alias_get_type ()")]
27         [Compact]
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 ();
35         }
36         [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_directory_get_type ()")]
37         [Compact]
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);
50         }
51         [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_entry_get_type ()")]
52         [Compact]
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 ();
62         }
63         [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_header_get_type ()")]
64         [Compact]
65         public class TreeHeader {
66                 public GMenu.TreeDirectory get_directory ();
67                 public GMenu.TreeDirectory get_parent ();
68                 public GMenu.Tree get_tree ();
69         }
70         [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_iter_get_type ()")]
71         [Compact]
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 ();
79         }
80         [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_separator_get_type ()")]
81         [Compact]
82         public class TreeSeparator {
83                 public GMenu.TreeDirectory get_parent ();
84                 public GMenu.Tree get_tree ();
85         }
86         [CCode (cheader_filename = "gmenu-tree.h", cprefix = "GMENU_TREE_FLAGS_", type_id = "gmenu_tree_flags_get_type ()")]
87         [Flags]
88         public enum TreeFlags {
89                 NONE,
90                 INCLUDE_EXCLUDED,
91                 SHOW_EMPTY,
92                 INCLUDE_NODISPLAY,
93                 SHOW_ALL_SEPARATORS,
94                 SORT_DISPLAY_NAME,
95                 [CCode (cname = "GMENU_TREE_FLAGS_INCLUDE_UNALLOCATED,")]
96                 INCLUDE_UNALLOCATED
97         }
98         [CCode (cheader_filename = "gmenu-tree.h", cprefix = "GMENU_TREE_ITEM_", has_type_id = false)]
99         public enum TreeItemType {
100                 INVALID,
101                 DIRECTORY,
102                 ENTRY,
103                 SEPARATOR,
104                 HEADER,
105                 ALIAS
106         }