From 31eeeab37a34e64973da531104d06cbc76063b1d Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sat, 16 Apr 2016 09:45:43 +0200 Subject: [PATCH] vapi: Update bamf bindings to 0.5.3+ --- vapi/Makefile.am | 1 + vapi/libbamf3.deps | 1 + vapi/libbamf3.vapi | 13 +++++++++++-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 vapi/libbamf3.deps diff --git a/vapi/Makefile.am b/vapi/Makefile.am index b5434ce9..6c583258 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -9,6 +9,7 @@ VAPIS = \ $(NULL) DEPS = \ + libbamf3.deps \ libmutter.deps \ gnome-desktop-3.0.deps \ $(NULL) diff --git a/vapi/libbamf3.deps b/vapi/libbamf3.deps new file mode 100644 index 00000000..cd10dfde --- /dev/null +++ b/vapi/libbamf3.deps @@ -0,0 +1 @@ +gio-2.0 diff --git a/vapi/libbamf3.vapi b/vapi/libbamf3.vapi index dffbeac3..75ed2fec 100644 --- a/vapi/libbamf3.vapi +++ b/vapi/libbamf3.vapi @@ -6,6 +6,7 @@ namespace Bamf { public class Application : Bamf.View { [CCode (has_construct_function = false)] protected Application (); + [Deprecated (since = "0.5.0")] public bool get_application_menu (out string name, out string object_path); public unowned string get_application_type (); public unowned string get_desktop_file (); @@ -13,6 +14,7 @@ namespace Bamf { public bool get_show_menu_stubs (); [CCode (array_length = false, array_null_terminated = true)] public string[] get_supported_mime_types (); + public unowned Bamf.Window get_window_for_xid (uint32 xid); public GLib.List get_windows (); public GLib.Array get_xids (); public signal void desktop_file_updated (string object); @@ -43,6 +45,7 @@ namespace Bamf { public static Bamf.Matcher get_default (); public GLib.List get_running_applications (); public GLib.List get_tabs (); + public unowned Bamf.Window get_window_for_xid (uint32 xid); public GLib.List get_window_stack_for_monitor (int monitor); public GLib.List get_windows (); public GLib.Array get_xids_for_application (string desktop_file); @@ -63,7 +66,7 @@ namespace Bamf { public virtual unowned string get_location (); public virtual uint64 get_xid (); public bool raise (); - public void request_preview (Bamf.TabPreviewReadyCallback callback); + public void request_preview ([CCode (scope = "async")] Bamf.TabPreviewReadyCallback callback); [NoAccessorMethod] public string desktop_id { owned get; } public bool is_foreground_tab { get; } @@ -82,15 +85,18 @@ namespace Bamf { public virtual string get_name (); [CCode (vfunc_name = "view_type")] public virtual unowned string get_view_type (); + public bool has_child (Bamf.View child); public virtual bool is_active (); public bool is_closed (); public virtual bool is_running (); + public virtual bool is_starting (); public bool is_sticky (); public virtual bool is_urgent (); #if !HAVE_BAMF_0_4 [CCode (cname = "bamf_view_user_visible")] #endif public virtual bool is_user_visible (); + public unowned GLib.List peek_children (); [NoWrapper] public virtual void set_path (string path); public virtual void set_sticky (bool value); @@ -101,6 +107,8 @@ namespace Bamf { [NoAccessorMethod] public bool running { get; } [NoAccessorMethod] + public bool starting { get; } + [NoAccessorMethod] public bool urgent { get; } [NoAccessorMethod] public bool user_visible { get; } @@ -112,6 +120,7 @@ namespace Bamf { public virtual signal void icon_changed (string icon); public virtual signal void name_changed (string old_name, string new_name); public virtual signal void running_changed (bool running); + public virtual signal void starting_changed (bool starting); public virtual signal void urgent_changed (bool urgent); public virtual signal void user_visible_changed (bool user_visible); } @@ -121,7 +130,7 @@ namespace Bamf { protected Window (); public virtual int get_monitor (); public virtual uint32 get_pid (); - public virtual unowned Bamf.Window get_transient (); + public virtual unowned Bamf.Window? get_transient (); public virtual string get_utf8_prop (string prop); public virtual Bamf.WindowType get_window_type (); public virtual uint32 get_xid ();