[vala] add libgnome-menu-3.0 bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] add libgnome-menu-3.0 bindings
- Date: Wed, 12 Sep 2012 06:52:52 +0000 (UTC)
commit 7a6698988be7ff5a9146f894462fb00d70b5b60b
Author: Rico Tzschichholz <ricotz t-online de>
Date: Wed Sep 12 08:52:19 2012 +0200
add libgnome-menu-3.0 bindings
vapi/Makefile.am | 5 ++
vapi/libgnome-menu-3.0.vapi | 107 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 112 insertions(+), 0 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index 7084b25..8c09365 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -178,6 +178,7 @@ dist_vapi_DATA = \
libglade-2.0.vapi \
libgnome-2.0.vapi \
libgnome-menu.vapi \
+ libgnome-menu-3.0.vapi \
libgnomeui-2.0.deps \
libgnomeui-2.0.vapi \
libgsf-1.deps \
@@ -376,6 +377,7 @@ GIR_BINDINGS = \
gudev-1.0 \
json-glib-1.0 \
libgdata \
+ libgnome-menu-3.0.vapi \
libpeas-1.0 \
libsoup-2.4 \
libwnck-3.0 \
@@ -629,6 +631,9 @@ libgnome-2.0:
libgnome-menu:
$(GENVAPI) --library $(srcdir)/libgnome-menu $(PACKAGESDIR)/libgnome-menu/libgnome-menu-custom.vala $(PACKAGESDIR)/libgnome-menu/libgnome-menu.gi
+libgnome-menu-3.0:
+ $(GENVAPI) --library $(srcdir)/libgnome-menu-3.0 --metadatadir $(METADATADIR) --pkg gio-unix-2.0 --pkg gtk+-3.0 $(GIRDIR)/GMenu-3.0.gir
+
libgnomeui-2.0:
$(GENVAPI) --library $(srcdir)/libgnomeui-2.0 $(PACKAGESDIR)/libgnomeui-2.0/libgnomeui-2.0-custom.vala $(PACKAGESDIR)/libgnomeui-2.0/libgnomeui-2.0.gi
diff --git a/vapi/libgnome-menu-3.0.vapi b/vapi/libgnome-menu-3.0.vapi
new file mode 100644
index 0000000..c6848f7
--- /dev/null
+++ b/vapi/libgnome-menu-3.0.vapi
@@ -0,0 +1,107 @@
+/* libgnome-menu-3.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "GMenu", gir_namespace = "GMenu", gir_version = "3.0", lower_case_cprefix = "gmenu_")]
+namespace GMenu {
+ [CCode (cheader_filename = "gmenu-tree.h", type_id = "gmenu_tree_get_type ()")]
+ public class Tree : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public Tree (string menu_basename, GMenu.TreeFlags flags);
+ [CCode (has_construct_function = false)]
+ public Tree.for_path (string menu_path, GMenu.TreeFlags flags);
+ public unowned string get_canonical_menu_path ();
+ public GMenu.TreeDirectory get_directory_from_path (string path);
+ public GMenu.TreeEntry get_entry_by_id (string id);
+ public GMenu.TreeDirectory get_root_directory ();
+ public static void* item_ref (void* item);
+ public static void item_unref (void* item);
+ public bool load_sync () throws GLib.Error;
+ [NoAccessorMethod]
+ public GMenu.TreeFlags flags { get; construct; }
+ [NoAccessorMethod]
+ public string menu_basename { owned get; construct; }
+ [NoAccessorMethod]
+ public string menu_path { owned get; construct; }
+ public signal void changed ();
+ }
+ [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_alias_get_type ()")]
+ [Compact]
+ public class TreeAlias {
+ public GMenu.TreeDirectory get_aliased_directory ();
+ public GMenu.TreeEntry get_aliased_entry ();
+ public GMenu.TreeItemType get_aliased_item_type ();
+ public GMenu.TreeDirectory get_directory ();
+ public GMenu.TreeDirectory get_parent ();
+ public GMenu.Tree get_tree ();
+ }
+ [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_directory_get_type ()")]
+ [Compact]
+ public class TreeDirectory {
+ public unowned string get_comment ();
+ public unowned string get_desktop_file_path ();
+ public unowned string get_generic_name ();
+ public unowned GLib.Icon get_icon ();
+ public bool get_is_nodisplay ();
+ public unowned string get_menu_id ();
+ public unowned string get_name ();
+ public GMenu.TreeDirectory get_parent ();
+ public GMenu.Tree get_tree ();
+ public GMenu.TreeIter iter ();
+ public string make_path (GMenu.TreeEntry entry);
+ }
+ [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_entry_get_type ()")]
+ [Compact]
+ public class TreeEntry {
+ public unowned GLib.DesktopAppInfo get_app_info ();
+ public unowned string get_desktop_file_id ();
+ public unowned string get_desktop_file_path ();
+ public bool get_is_excluded ();
+ public bool get_is_nodisplay_recurse ();
+ public bool get_is_unallocated ();
+ public GMenu.TreeDirectory get_parent ();
+ public GMenu.Tree get_tree ();
+ }
+ [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_header_get_type ()")]
+ [Compact]
+ public class TreeHeader {
+ public GMenu.TreeDirectory get_directory ();
+ public GMenu.TreeDirectory get_parent ();
+ public GMenu.Tree get_tree ();
+ }
+ [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_iter_get_type ()")]
+ [Compact]
+ public class TreeIter {
+ public GMenu.TreeAlias get_alias ();
+ public GMenu.TreeDirectory get_directory ();
+ public GMenu.TreeEntry get_entry ();
+ public GMenu.TreeHeader get_header ();
+ public GMenu.TreeSeparator get_separator ();
+ public GMenu.TreeItemType next ();
+ }
+ [CCode (cheader_filename = "gmenu-tree.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gmenu_tree_separator_get_type ()")]
+ [Compact]
+ public class TreeSeparator {
+ public GMenu.TreeDirectory get_parent ();
+ public GMenu.Tree get_tree ();
+ }
+ [CCode (cheader_filename = "gmenu-tree.h", cprefix = "GMENU_TREE_FLAGS_", type_id = "gmenu_tree_flags_get_type ()")]
+ [Flags]
+ public enum TreeFlags {
+ NONE,
+ INCLUDE_EXCLUDED,
+ SHOW_EMPTY,
+ INCLUDE_NODISPLAY,
+ SHOW_ALL_SEPARATORS,
+ SORT_DISPLAY_NAME,
+ [CCode (cname = "GMENU_TREE_FLAGS_INCLUDE_UNALLOCATED,")]
+ INCLUDE_UNALLOCATED
+ }
+ [CCode (cheader_filename = "gmenu-tree.h", cprefix = "GMENU_TREE_ITEM_", has_type_id = false)]
+ public enum TreeItemType {
+ INVALID,
+ DIRECTORY,
+ ENTRY,
+ SEPARATOR,
+ HEADER,
+ ALIAS
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]