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 GMenu.TreeSortKey get_sort_key ();
13 public void* get_user_data ();
14 public static unowned GMenu.Tree lookup (string menu_file, GMenu.TreeFlags flags);
15 public void remove_monitor (GMenu.TreeChangedFunc callback);
16 public void set_sort_key (GMenu.TreeSortKey sort_key);
17 public void set_user_data (void* user_data, GLib.DestroyNotify dnotify);
20 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
21 public class TreeAlias : GMenu.TreeItem {
22 public unowned GMenu.TreeDirectory get_directory ();
23 public unowned GMenu.TreeItem get_item ();
26 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
27 public class TreeDirectory : GMenu.TreeItem {
28 public unowned string get_comment ();
29 public unowned GLib.SList<GMenu.TreeItem> get_contents ();
30 public unowned string get_desktop_file_path ();
31 public unowned string get_icon ();
32 public bool get_is_nodisplay ();
33 public unowned string get_menu_id ();
34 public unowned string get_name ();
35 public unowned GMenu.Tree get_tree ();
36 public unowned string make_path (GMenu.TreeEntry entry);
39 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
40 public class TreeEntry : GMenu.TreeItem {
41 public unowned string get_comment ();
42 public unowned string get_desktop_file_id ();
43 public unowned string get_desktop_file_path ();
44 public unowned string get_display_name ();
45 public unowned string get_exec ();
46 public unowned string get_generic_name ();
47 public unowned string get_icon ();
48 public bool get_is_excluded ();
49 public bool get_is_nodisplay ();
50 public bool get_launch_in_terminal ();
51 public unowned string get_name ();
54 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
55 public class TreeHeader : GMenu.TreeItem {
56 public unowned GMenu.TreeDirectory get_directory ();
59 [CCode (ref_function = "gmenu_tree_item_ref", unref_function = "gmenu_tree_item_unref", cheader_filename = "gnome-menus/gmenu-tree.h")]
60 public class TreeItem {
61 public unowned GMenu.TreeDirectory get_parent ();
62 public GMenu.TreeItemType get_type ();
63 public void* get_user_data ();
64 public void set_user_data (void* user_data, GLib.DestroyNotify dnotify);
67 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
68 public class TreeSeparator : GMenu.TreeItem {
70 [CCode (cprefix = "GMENU_TREE_FLAGS_", has_type_id = false, cheader_filename = "gnome-menus/gmenu-tree.h")]
71 public enum TreeFlags {
79 [CCode (cprefix = "GMENU_TREE_ITEM_", has_type_id = false, cheader_filename = "gnome-menus/gmenu-tree.h")]
80 public enum TreeItemType {
88 [CCode (cprefix = "GMENU_TREE_SORT_", has_type_id = false, cheader_filename = "gnome-menus/gmenu-tree.h")]
89 public enum TreeSortKey {
93 [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
94 public delegate void TreeChangedFunc (GMenu.Tree tree);