1 /* libgnome-menu.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "GMenu", lower_case_cprefix = "gmenu_")]
6 [CCode (ref_function = "gmenu_tree_ref", unref_function = "gmenu_tree_unref", cheader_filename = "gnome-menus/gmenu-tree.h")]
8 public void add_monitor (GMenu.TreeChangedFunc callback);
9 public unowned GMenu.TreeDirectory get_directory_from_path (string path);
10 public unowned string get_menu_file ();
11 public unowned GMenu.TreeDirectory get_root_directory ();
12 public void* get_user_data ();
13 public static unowned GMenu.Tree lookup (string menu_file, GMenu.TreeFlags flags);
14 public void remove_monitor (GMenu.TreeChangedFunc callback);
15 public void set_user_data (void* user_data, GLib.DestroyNotify dnotify);
18 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
19 public class TreeAlias : GMenu.TreeItem {
20 public unowned GMenu.TreeDirectory get_directory ();
21 public unowned GMenu.TreeItem get_item ();
24 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
25 public class TreeDirectory : GMenu.TreeItem {
26 public unowned string get_comment ();
27 public unowned GLib.SList<GMenu.TreeItem> get_contents ();
28 public unowned string get_desktop_file_path ();
29 public unowned string get_icon ();
30 public bool get_is_nodisplay ();
31 public unowned string get_menu_id ();
32 public unowned string get_name ();
33 public unowned GMenu.Tree get_tree ();
34 public unowned string make_path (GMenu.TreeEntry entry);
37 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
38 public class TreeEntry : GMenu.TreeItem {
39 public unowned string get_comment ();
40 public unowned string get_desktop_file_id ();
41 public unowned string get_desktop_file_path ();
42 public unowned string get_exec ();
43 public unowned string get_icon ();
44 public bool get_is_excluded ();
45 public bool get_is_nodisplay ();
46 public bool get_launch_in_terminal ();
47 public unowned string get_name ();
50 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
51 public class TreeHeader : GMenu.TreeItem {
52 public unowned GMenu.TreeDirectory get_directory ();
55 [CCode (ref_function = "gmenu_tree_item_ref", unref_function = "gmenu_tree_item_unref", cheader_filename = "gnome-menus/gmenu-tree.h")]
56 public class TreeItem {
57 public unowned GMenu.TreeDirectory get_parent ();
58 public GMenu.TreeItemType get_type ();
59 public void* get_user_data ();
60 public void set_user_data (void* user_data, GLib.DestroyNotify dnotify);
63 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
64 public class TreeSeparator : GMenu.TreeItem {
66 [CCode (cprefix = "GMENU_TREE_FLAGS_", has_type_id = "0", cheader_filename = "gnome-menus/gmenu-tree.h")]
67 public enum TreeFlags {
74 [CCode (cprefix = "GMENU_TREE_ITEM_", has_type_id = "0", cheader_filename = "gnome-menus/gmenu-tree.h")]
75 public enum TreeItemType {
83 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
84 public delegate void TreeChangedFunc (GMenu.Tree tree);