D-Bus: Emit cast to avoid C warning for signal handling in clients
[vala-lang.git] / vapi / libgnome-menu.vapi
blob844fa5a07dcf1cc0eea53000a58728cbedfa563c
1 /* libgnome-menu.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "GMenu", lower_case_cprefix = "gmenu_")]
4 namespace GMenu {
5         [Compact]
6         [CCode (ref_function = "gmenu_tree_ref", unref_function = "gmenu_tree_unref", cheader_filename = "gnome-menus/gmenu-tree.h")]
7         public class Tree {
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);
18         }
19         [Compact]
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 ();
24         }
25         [Compact]
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);
37         }
38         [Compact]
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 ();
52         }
53         [Compact]
54         [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
55         public class TreeHeader : GMenu.TreeItem {
56                 public unowned GMenu.TreeDirectory get_directory ();
57         }
58         [Compact]
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);
65         }
66         [Compact]
67         [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
68         public class TreeSeparator : GMenu.TreeItem {
69         }
70         [CCode (cprefix = "GMENU_TREE_FLAGS_", has_type_id = false, cheader_filename = "gnome-menus/gmenu-tree.h")]
71         public enum TreeFlags {
72                 NONE,
73                 INCLUDE_EXCLUDED,
74                 SHOW_EMPTY,
75                 INCLUDE_NODISPLAY,
76                 SHOW_ALL_SEPARATORS,
77                 MASK
78         }
79         [CCode (cprefix = "GMENU_TREE_ITEM_", has_type_id = false, cheader_filename = "gnome-menus/gmenu-tree.h")]
80         public enum TreeItemType {
81                 INVALID,
82                 DIRECTORY,
83                 ENTRY,
84                 SEPARATOR,
85                 HEADER,
86                 ALIAS
87         }
88         [CCode (cprefix = "GMENU_TREE_SORT_", has_type_id = false, cheader_filename = "gnome-menus/gmenu-tree.h")]
89         public enum TreeSortKey {
90                 NAME,
91                 DISPLAY_NAME
92         }
93         [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
94         public delegate void TreeChangedFunc (GMenu.Tree tree);