From: Peng Huang Date: Wed, 20 Oct 2010 10:48:01 +0000 (+0900) Subject: wip. X-Git-Tag: 1.4.0~227 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16304d0882068d01f897a64451041aebc389d045;p=platform%2Fupstream%2Fibus.git wip. --- diff --git a/bindings/vala/Makefile.am b/bindings/vala/Makefile.am index d1f1cf4..5252e3a 100644 --- a/bindings/vala/Makefile.am +++ b/bindings/vala/Makefile.am @@ -23,9 +23,11 @@ vapidir = $(datadir)/vala/vapi dist_vapi_DATA = \ ibus-@IBUS_API_VERSION@.vapi \ + ibus-@IBUS_API_VERSION@.deps \ $(NULL) -ibus-2.0.vapi: +ibus-@IBUS_API_VERSION@.vapi: vapigen --library ibus-@IBUS_API_VERSION@ \ + --pkg gio-2.0 \ ibus-@IBUS_API_VERSION@/ibus-@IBUS_API_VERSION@.gi \ ibus-@IBUS_API_VERSION@/ibus-@IBUS_API_VERSION@-custom.vala diff --git a/bindings/vala/ibus-1.0.deps b/bindings/vala/ibus-1.0.deps new file mode 100644 index 0000000..cd10dfd --- /dev/null +++ b/bindings/vala/ibus-1.0.deps @@ -0,0 +1 @@ +gio-2.0 diff --git a/bindings/vala/ibus-1.0.vapi b/bindings/vala/ibus-1.0.vapi index 218c03a..23c8c5d 100644 --- a/bindings/vala/ibus-1.0.vapi +++ b/bindings/vala/ibus-1.0.vapi @@ -1,6 +1,6 @@ /* ibus-1.0.vapi generated by vapigen, do not modify. */ -[CCode (cprefix = "IBus", lower_case_cprefix = "ibus_", gir_namespace = "IBus", gir_version = "2.0")] +[CCode (cprefix = "IBus", lower_case_cprefix = "ibus_", gir_namespace = "IBus", gir_version = "1.0")] namespace IBus { [CCode (cheader_filename = "ibus.h")] public class AttrList : IBus.Serializable { @@ -26,9 +26,9 @@ namespace IBus { public void add_match (string rule); public unowned IBus.InputContext create_input_context (string client_name); public unowned string current_input_context (); - public bool exit (bool restart); + public void exit (bool restart); public unowned IBus.Config get_config (); - public unowned IBus.Connection get_connection (); + public unowned GLib.DBusConnection get_connection (); public unowned IBus.EngineDesc get_global_engine (); public string get_name_owner (string name); public bool get_use_global_engine (); @@ -55,19 +55,11 @@ namespace IBus { } [CCode (cheader_filename = "ibus.h")] public class Component : IBus.Serializable { - public weak string author; public uint child_source_id; - public weak string description; public weak GLib.List engines; - public weak string exec; - public weak string homepage; - public weak string license; - public weak string name; public weak GLib.List observed_paths; public void* pdummy; public GLib.Pid pid; - public weak string textdomain; - public weak string version; [CCode (has_construct_function = false)] public Component (string name, string description, string version, string license, string author, string homepage, string exec, string textdomain); public void add_engine (IBus.EngineDesc engine); @@ -77,66 +69,53 @@ namespace IBus { public Component.from_file (string filename); [CCode (has_construct_function = false)] public Component.from_xml_node (IBus.XMLNode node); + public unowned string get_author (); + public unowned string get_description (); public unowned GLib.List get_engines (); + public unowned string get_exec (); public static unowned IBus.Component get_from_engine (IBus.EngineDesc engine); + public unowned string get_homepage (); + public unowned string get_license (); + public unowned string get_name (); + public unowned string get_textdomain (); + public unowned string get_version (); public bool is_running (); + [CCode (cname = "ibus_component_new2", has_construct_function = false)] + public Component.new2 (...); public void output (GLib.StringBuilder output, int indent); public void output_engines (GLib.StringBuilder output, int indent); + public void set_restart (bool restart); public bool start (bool verbose); public bool stop (); + public string author { get; construct; } + public string description { get; construct; } + public string exec { get; construct; } + public string homepage { get; construct; } + public string license { get; construct; } + public string name { get; construct; } + public string textdomain { get; construct; } + public string version { get; construct; } } [CCode (cheader_filename = "ibus.h")] - public class Config : IBus.Proxy { + public class Config : IBus.Proxy, GLib.Initable, GLib.AsyncInitable { [CCode (has_construct_function = false)] - public Config (IBus.Connection connection); - public bool get_value (string section, string name, GLib.Value value); - public bool set_value (string section, string name, GLib.Value value); + public Config (GLib.DBusConnection connection, GLib.Cancellable cancellable) throws GLib.Error; + public unowned GLib.Variant get_value (string section, string name); + public bool set_value (string section, string name, GLib.Variant value); public bool unset (string section, string name); - public virtual signal void value_changed (string p0, string p1, GLib.Value p2); + public virtual signal void value_changed (string p0, string p1, GLib.Variant p2); } [CCode (cheader_filename = "ibus.h")] public class ConfigService : IBus.Service { [CCode (has_construct_function = false)] - public ConfigService (IBus.Connection connection); + public ConfigService (GLib.DBusConnection connection); [NoWrapper] - public virtual bool get_value (string section, string name, GLib.Value value, out unowned IBus.Error error); + public virtual unowned GLib.Variant get_value (string section, string name) throws GLib.Error; [NoWrapper] - public virtual bool set_value (string section, string name, GLib.Value value, out unowned IBus.Error error); + public virtual bool set_value (string section, string name, GLib.Variant value) throws GLib.Error; [NoWrapper] - public virtual bool unset (string section, string name, out unowned IBus.Error error); - public void value_changed (string section, string name, GLib.Value value); - [NoAccessorMethod] - public IBus.Connection connection { owned get; construct; } - } - [CCode (cheader_filename = "ibus.h")] - public class Connection : IBus.Object { - [CCode (has_construct_function = false)] - public Connection (); - public bool call (string name, string path, string @interface, string member, out unowned IBus.Error error, ...); - public unowned IBus.Message call_with_reply (string name, string path, string @interface, string member, out unowned IBus.Error error, ...); - public void close (); - public void flush (); - public unowned IBus.DBusConnection get_connection (); - public long get_unix_user (); - public bool is_authenticated (); - public bool is_connected (); - public static unowned IBus.Connection open (string address); - public static unowned IBus.Connection open_private (string address); - public bool read_write_dispatch (int timeout); - public bool register_object_path (string path, IBus.MessageFunc message_func); - public bool send (IBus.Message message); - public bool send_signal (string path, string @interface, string name, ...); - public bool send_signal_valist (string path, string @interface, string name, GLib.Type first_arg_type, void* args); - public bool send_valist (int message_type, string path, string @interface, string name, GLib.Type first_arg_type, void* args); - public bool send_with_reply (IBus.Message message, out unowned IBus.PendingCall pending_return, int timeout_milliseconds); - public unowned IBus.Message send_with_reply_and_block (IBus.Message message, int timeout_milliseconds, out unowned IBus.Error error); - public void set_connection (IBus.DBusConnection dbus_connection, bool shared); - public bool unregister_object_path (string path); - public virtual signal bool authenticate_unix_user (ulong uid); - public virtual signal void disconnected (); - public virtual signal bool ibus_message (void* message); - public virtual signal void ibus_message_sent (void* message); - public virtual signal bool ibus_signal (void* message); + public virtual bool unset_value (string section, string name) throws GLib.Error; + public void value_changed (string section, string name, GLib.Variant value); } [Compact] [CCode (cheader_filename = "ibus.h")] @@ -144,22 +123,6 @@ namespace IBus { } [Compact] [CCode (cheader_filename = "ibus.h")] - public class DBusError { - } - [Compact] - [CCode (cheader_filename = "ibus.h")] - public class DBusMessage { - } - [Compact] - [CCode (cheader_filename = "ibus.h")] - public class DBusMessageIter { - } - [Compact] - [CCode (cheader_filename = "ibus.h")] - public class DBusPendingCall { - } - [Compact] - [CCode (cheader_filename = "ibus.h")] public class DBusServer { } [CCode (cheader_filename = "ibus.h")] @@ -169,7 +132,7 @@ namespace IBus { public bool enabled; public bool has_focus; [CCode (has_construct_function = false)] - public Engine (string name, string path, IBus.Connection connection); + public Engine (string engine_name, string object_path, GLib.DBusConnection connection); public void commit_text (IBus.Text text); public void delete_surrounding_text (int offset, uint nchars); public void forward_key_event (uint keyval, uint keycode, uint state); @@ -181,6 +144,8 @@ namespace IBus { public void show_auxiliary_text (); public void show_lookup_table (); public void show_preedit_text (); + [CCode (has_construct_function = false)] + public Engine.type (GLib.Type engine_type, string engine_name, string object_path, GLib.DBusConnection connection); public void update_auxiliary_text (IBus.Text text, bool visible); public void update_lookup_table (IBus.LookupTable lookup_table, bool visible); public void update_lookup_table_fast (IBus.LookupTable lookup_table, bool visible); @@ -188,8 +153,7 @@ namespace IBus { public void update_preedit_text_with_mode (IBus.Text text, uint cursor_pos, bool visible, IBus.PreeditFocusMode mode); public void update_property (IBus.Property prop); [NoAccessorMethod] - public IBus.Connection connection { owned get; construct; } - public string name { get; construct; } + public string engine_name { owned get; construct; } public virtual signal void candidate_clicked (uint index, uint button, uint state); public virtual signal void cursor_down (); public virtual signal void cursor_up (); @@ -209,40 +173,43 @@ namespace IBus { } [CCode (cheader_filename = "ibus.h")] public class EngineDesc : IBus.Serializable { - public weak string author; - public weak string description; - public weak string icon; - public weak string language; - public weak string layout; - public weak string license; - public weak string longname; - public weak string name; - public uint rank; [CCode (has_construct_function = false)] public EngineDesc (string name, string longname, string description, string language, string license, string author, string icon, string layout); [CCode (has_construct_function = false)] public EngineDesc.from_xml_node (IBus.XMLNode node); + public unowned string get_author (); + public unowned string get_description (); + public unowned string get_hotkeys (); + public unowned string get_icon (); + public unowned string get_language (); + public unowned string get_layout (); + public unowned string get_license (); + public unowned string get_longname (); + public unowned string get_name (); + public uint get_rank (); + [CCode (cname = "ibus_engine_desc_new2", has_construct_function = false)] + public EngineDesc.new2 (...); public void output (GLib.StringBuilder output, int indent); + public string author { get; construct; } + public string description { get; construct; } + public string hotkeys { get; construct; } + public string icon { get; construct; } + public string language { get; construct; } + public string layout { get; construct; } + public string license { get; construct; } + public string longname { get; construct; } + public string name { get; construct; } + public uint rank { get; construct; } } [Compact] [CCode (cheader_filename = "ibus.h")] public class Error { - [CCode (has_construct_function = false)] - public Error (); - [CCode (has_construct_function = false)] - public Error.from_message (IBus.DBusMessage message); - [CCode (has_construct_function = false)] - public Error.from_printf (string name, string format_message); - [CCode (has_construct_function = false)] - public Error.from_text (string name, string message); } [CCode (cheader_filename = "ibus.h")] public class Factory : IBus.Service { [CCode (has_construct_function = false)] - public Factory (IBus.Connection connection); + public Factory (GLib.DBusConnection connection); public void add_engine (string engine_name, GLib.Type engine_type); - [NoAccessorMethod] - public IBus.Connection connection { owned get; construct; } } [CCode (cheader_filename = "ibus.h")] public class HotkeyProfile : IBus.Serializable { @@ -251,20 +218,21 @@ namespace IBus { public bool add_hotkey (uint keyval, uint modifiers, GLib.Quark event); public bool add_hotkey_from_string (string str, GLib.Quark event); public GLib.Quark filter_key_event (uint keyval, uint modifiers, uint prev_keyval, uint prev_modifiers); + public GLib.Quark lookup_hotkey (uint keyval, uint modifiers); public bool remove_hotkey (uint keyval, uint modifiers); public bool remove_hotkey_by_event (GLib.Quark event); public virtual signal void trigger (uint event, void* user_data); } [CCode (cheader_filename = "ibus.h")] - public class InputContext : IBus.Proxy { + public class InputContext : IBus.Proxy, GLib.Initable, GLib.AsyncInitable { [CCode (has_construct_function = false)] - public InputContext (string path, IBus.Connection connection); + public InputContext (string path, GLib.DBusConnection connection, GLib.Cancellable cancellable) throws GLib.Error; public void disable (); public void enable (); public void focus_in (); public void focus_out (); public unowned IBus.EngineDesc get_engine (); - public static unowned IBus.InputContext get_input_context (string path, IBus.Connection connection); + public static unowned IBus.InputContext get_input_context (string path, GLib.DBusConnection connection); public bool is_enabled (); public bool process_key_event (uint32 keyval, uint32 keycode, uint32 state); public void property_activate (string prop_name, int32 state); @@ -338,63 +306,12 @@ namespace IBus { public void set_round (bool round); } [Compact] - [CCode (ref_function = "ibus_message_ref", unref_function = "ibus_message_unref", cheader_filename = "ibus.h")] + [CCode (cheader_filename = "ibus.h")] public class Message { - [CCode (has_construct_function = false)] - public Message (int message_type); - public bool append_args (...); - public bool append_args_valist (GLib.Type first_arg_type, void* va_args); - [CCode (has_construct_function = false)] - public Message.error (IBus.Message reply_to, string error_name, string error_message); - [CCode (has_construct_function = false)] - public Message.error_printf (IBus.Message reply_to, string error_name, string error_format); - public bool get_args (out unowned IBus.Error error, ...); - public bool get_args_valist (out unowned IBus.Error error, GLib.Type first_arg_type, void* va_args); - public unowned string get_destination (); - public unowned string get_error_message (); - public unowned string get_error_name (); - public unowned string get_interface (); - public unowned string get_member (); - public bool get_no_reply (); - public unowned string get_path (); - public uint32 get_reply_serial (); - public unowned string get_sender (); - public uint32 get_serial (); - public bool is_error (string error_name); - public bool is_method_call (string @interface, string method); - public bool is_signal (string @interface, string signal_name); - [CCode (has_construct_function = false)] - public Message.method_call (string destination, string path, string @interface, string method); - [CCode (has_construct_function = false)] - public Message.method_return (IBus.Message reply_to); - public bool set_destination (string destination); - public bool set_error_name (string error_name); - public bool set_interface (string @interface); - public bool set_member (string member); - public void set_no_reply (bool no_reply); - public bool set_path (string path); - public bool set_reply_serial (uint32 reply_serial); - public bool set_sender (string sender); - [CCode (has_construct_function = false)] - public Message.@signal (string path, string @interface, string method); - public unowned string to_string (); } [Compact] [CCode (cheader_filename = "ibus.h")] public class MessageIter { - public bool append (GLib.Type type, void* value); - public bool close_container (IBus.MessageIter sub); - public bool copy_data (IBus.MessageIter src); - public bool @get (GLib.Type type, void* value); - public GLib.Type get_arg_type (); - public void get_basic (void* value); - public GLib.Type get_element_type (); - public bool has_next (); - public static bool init (IBus.Message message, IBus.MessageIter iter); - public static void init_append (IBus.Message message, IBus.MessageIter iter); - public bool next (); - public bool open_container (GLib.Type type, string contained_signature, IBus.MessageIter sub); - public bool recurse (GLib.Type type, IBus.MessageIter sub); } [CCode (cheader_filename = "ibus.h")] public class Object : GLib.InitiallyUnowned { @@ -421,79 +338,67 @@ namespace IBus { [CCode (cheader_filename = "ibus.h")] public class PanelService : IBus.Service { [CCode (has_construct_function = false)] - public PanelService (IBus.Connection connection); + public PanelService (GLib.DBusConnection connection); public void candidate_clicked (uint index, uint button, uint state); public void cursor_down (); [NoWrapper] - public virtual bool cursor_down_lookup_table (out unowned IBus.Error error); + public virtual void cursor_down_lookup_table (); public void cursor_up (); [NoWrapper] - public virtual bool cursor_up_lookup_table (out unowned IBus.Error error); + public virtual void cursor_up_lookup_table (); [NoWrapper] - public virtual bool destroy (out unowned IBus.Error error); + public virtual void destroy (); [NoWrapper] - public virtual bool focus_in (string input_context_path, out unowned IBus.Error error); + public virtual void focus_in (string input_context_path); [NoWrapper] - public virtual bool focus_out (string input_context_path, out unowned IBus.Error error); + public virtual void focus_out (string input_context_path); [NoWrapper] - public virtual bool hide_auxiliary_text (out unowned IBus.Error error); + public virtual void hide_auxiliary_text (); [NoWrapper] - public virtual bool hide_language_bar (out unowned IBus.Error error); + public virtual void hide_language_bar (); [NoWrapper] - public virtual bool hide_lookup_table (out unowned IBus.Error error); + public virtual void hide_lookup_table (); [NoWrapper] - public virtual bool hide_preedit_text (out unowned IBus.Error error); + public virtual void hide_preedit_text (); public void page_down (); [NoWrapper] - public virtual bool page_down_lookup_table (out unowned IBus.Error error); + public virtual void page_down_lookup_table (); public void page_up (); [NoWrapper] - public virtual bool page_up_lookup_table (out unowned IBus.Error error); - public void property_active (string prop_name, int prop_state); + public virtual void page_up_lookup_table (); + public void property_active (string prop_name, uint prop_state); public void property_hide (string prop_name); public void property_show (string prop_name); [NoWrapper] - public virtual bool register_properties (IBus.PropList prop_list, out unowned IBus.Error error); + public virtual void register_properties (IBus.PropList prop_list); [NoWrapper] - public virtual bool reset (out unowned IBus.Error error); + public virtual void reset (); [NoWrapper] - public virtual bool set_cursor_location (int x, int y, int w, int h, out unowned IBus.Error error); + public virtual void set_cursor_location (int x, int y, int w, int h); [NoWrapper] - public virtual bool show_auxiliary_text (out unowned IBus.Error error); + public virtual void show_auxiliary_text (); [NoWrapper] - public virtual bool show_language_bar (out unowned IBus.Error error); + public virtual void show_language_bar (); [NoWrapper] - public virtual bool show_lookup_table (out unowned IBus.Error error); + public virtual void show_lookup_table (); [NoWrapper] - public virtual bool show_preedit_text (out unowned IBus.Error error); + public virtual void show_preedit_text (); [NoWrapper] - public virtual bool start_setup (out unowned IBus.Error error); + public virtual void start_setup (); [NoWrapper] - public virtual bool state_changed (out unowned IBus.Error error); + public virtual void state_changed (); [NoWrapper] - public virtual bool update_auxiliary_text (IBus.Text text, bool visible, out unowned IBus.Error error); + public virtual void update_auxiliary_text (IBus.Text text, bool visible); [NoWrapper] - public virtual bool update_lookup_table (IBus.LookupTable lookup_table, bool visible, out unowned IBus.Error error); + public virtual void update_lookup_table (IBus.LookupTable lookup_table, bool visible); [NoWrapper] - public virtual bool update_preedit_text (IBus.Text text, uint cursor_pos, bool visible, out unowned IBus.Error error); + public virtual void update_preedit_text (IBus.Text text, uint cursor_pos, bool visible); [NoWrapper] - public virtual bool update_property (IBus.Property prop, out unowned IBus.Error error); - [NoAccessorMethod] - public IBus.Connection connection { owned get; construct; } + public virtual void update_property (IBus.Property prop); } [Compact] - [CCode (ref_function = "ibus_pending_call_ref", unref_function = "ibus_pending_call_unref", cheader_filename = "ibus.h")] + [CCode (cheader_filename = "ibus.h")] public class PendingCall { - public static bool allocate_data_slot (int slot_p); - public void block (); - public void cancel (); - public static void free_data_slot (int slot_p); - public bool get_completed (); - public void* get_data (int slot); - public bool set_data (int slot, void* data, GLib.DestroyNotify free_data_func); - public bool set_notify (IBus.PendingCallNotifyFunction function, GLib.DestroyNotify free_user_data); - public unowned IBus.Message steal_reply (); - public void wait (); } [CCode (cheader_filename = "ibus.h")] public class PropList : IBus.Serializable { @@ -527,26 +432,12 @@ namespace IBus { public bool update (IBus.Property prop_update); } [CCode (cheader_filename = "ibus.h")] - public class Proxy : IBus.Object { + public class Proxy : GLib.DBusProxy, GLib.Initable, GLib.AsyncInitable { + public uint32 flags; [CCode (has_construct_function = false)] - public Proxy (string name, string path, IBus.Connection connection); - public bool call (string method, ...); - public bool call_with_reply (string method, out unowned IBus.PendingCall pending, int timeout_milliseconds, out unowned IBus.Error error, ...); - public unowned IBus.Message call_with_reply_and_block (string method, int timeout_milliseconds, out unowned IBus.Error error, ...); - public unowned IBus.Connection get_connection (); - public unowned string get_interface (); - public unowned string get_name (); - public unowned string get_path (); - public unowned string get_unique_name (); - public bool handle_signal (IBus.Message message); - public bool send (IBus.Message message); - public bool send_with_reply (IBus.Message message, out unowned IBus.PendingCall pending, int timeout_milliseconds); - public unowned IBus.Message send_with_reply_and_block (IBus.Message message); - public IBus.Connection connection { get; construct; } - public string @interface { get; construct; } - public string name { get; construct; } - public string path { get; construct; } - public virtual signal bool ibus_signal (void* message); + protected Proxy (); + [HasEmitter] + public virtual signal void destroy (); } [Compact] [CCode (cheader_filename = "ibus.h")] @@ -558,50 +449,42 @@ namespace IBus { } [CCode (cheader_filename = "ibus.h")] public class Serializable : IBus.Object { - public uint32 flags; [CCode (has_construct_function = false)] public Serializable (); public virtual bool copy (); - public virtual bool deserialize (IBus.MessageIter iter); + public virtual int deserialize (GLib.Variant variant); public GLib.Value get_qattachment (GLib.Quark key); public void remove_qattachment (GLib.Quark key); - public virtual bool serialize (IBus.MessageIter iter); + public virtual bool serialize (); public bool set_qattachment (GLib.Quark key, GLib.Value value); } [CCode (cheader_filename = "ibus.h")] - public class Server : IBus.Object { - [CCode (has_construct_function = false)] - public Server (); - public void disconnect (); - public unowned string get_address (); - public unowned string get_id (); - public bool is_connected (); - public bool listen (string address); - public bool set_auth_mechanisms (string mechanisms); - [NoAccessorMethod] - public GLib.Type connection_type { get; set; } - public virtual signal void new_connection (GLib.Object connectin); - } - [CCode (cheader_filename = "ibus.h")] public class Service : IBus.Object { [CCode (has_construct_function = false)] - public Service (string path); - public bool add_to_connection (IBus.Connection connection); - public GLib.List get_connections (); - public unowned string get_path (); - public bool handle_message (IBus.Connection connection, IBus.Message message); - public bool remove_from_all_connections (); - public bool remove_from_connection (IBus.Connection connection); - public bool send_signal (string @interface, string name, ...); - public string path { get; construct; } - public virtual signal bool ibus_message (void* connection, void* message); - public virtual signal bool ibus_signal (void* connection, void* message); + public Service (GLib.DBusConnection connection, string path); + [CCode (cname = "ibus_service_class_add_interfaces")] + public class bool add_interfaces (string xml_data); + public bool emit_signal (string dest_bus_name, string interface_name, string signal_name, GLib.Variant parameters) throws GLib.Error; + public unowned GLib.DBusConnection get_connection (); + public unowned string get_object_path (); + public bool register (GLib.DBusConnection connection) throws GLib.Error; + [NoWrapper] + public virtual unowned GLib.Variant service_get_property (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name) throws GLib.Error; + [NoWrapper] + public virtual void service_method_call (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.DBusMethodInvocation invocation); + [NoWrapper] + public virtual bool service_set_property (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value) throws GLib.Error; + public void unregister (GLib.DBusConnection connection); + public GLib.DBusConnection connection { get; construct; } + public string object_path { get; construct; } } [CCode (cheader_filename = "ibus.h")] public class Text : IBus.Serializable { public weak IBus.AttrList attrs; public bool is_static; public weak string text; + [CCode (has_construct_function = false)] + protected Text (); public void append_attribute (uint type, uint value, uint start_index, int end_index); [CCode (has_construct_function = false)] public Text.from_printf (string fmt); @@ -702,36 +585,16 @@ namespace IBus { MENU, SEPARATOR } - [CCode (cheader_filename = "ibus.h")] - public delegate void ConnectionReplyFunc (IBus.Connection connection, IBus.Message reply); - [CCode (cheader_filename = "ibus.h")] - public delegate void DBusConnectionSetupFunc (IBus.DBusConnection connection); - [CCode (cheader_filename = "ibus.h")] - public delegate void DBusServerSetupFunc (IBus.DBusServer server); [CCode (cheader_filename = "ibus.h", has_target = false)] public delegate void FreeFunc (void* object); [CCode (cheader_filename = "ibus.h", has_target = false)] - public delegate bool IBusMessageFunc (IBus.Connection connection, IBus.Message message); - [CCode (cheader_filename = "ibus.h", has_target = false)] - public delegate bool IBusSignalFunc (IBus.Connection connection, IBus.Message message); - [CCode (cheader_filename = "ibus.h")] - public delegate bool MessageFunc (IBus.Connection connection, IBus.Message message); - [CCode (cheader_filename = "ibus.h", has_target = false)] - public delegate void NewConnectionFunc (IBus.Server server, IBus.Connection connection); - [CCode (cheader_filename = "ibus.h", has_target = false)] public delegate void ObjectDestroyFunc (IBus.Object p1); - [CCode (cheader_filename = "ibus.h")] - public delegate void PendingCallNotifyFunction (IBus.PendingCall pending); [CCode (cheader_filename = "ibus.h", has_target = false)] public delegate bool SerializableCopyFunc (IBus.Serializable dest, IBus.Serializable src); [CCode (cheader_filename = "ibus.h", has_target = false)] - public delegate bool SerializableDeserializeFunc (IBus.Serializable object, IBus.MessageIter iter); + public delegate int SerializableDeserializeFunc (IBus.Serializable object, GLib.Variant variant); [CCode (cheader_filename = "ibus.h", has_target = false)] - public delegate bool SerializableSerializeFunc (IBus.Serializable object, IBus.MessageIter iter); - [CCode (cheader_filename = "ibus.h", has_target = false)] - public delegate bool ServiceIBusMessageFunc (IBus.Service service, IBus.Connection connection, IBus.Message message); - [CCode (cheader_filename = "ibus.h", has_target = false)] - public delegate bool ServiceIBusSignalFunc (IBus.Service service, IBus.Connection connection, IBus.Message message); + public delegate bool SerializableSerializeFunc (IBus.Serializable object, GLib.VariantBuilder builder); [CCode (cheader_filename = "ibus.h")] public const int @0; [CCode (cheader_filename = "ibus.h")] @@ -4757,10 +4620,6 @@ namespace IBus { [CCode (cheader_filename = "ibus.h")] public static unowned IBus.Attribute attr_underline_new (uint underline_type, uint start_index, uint end_index); [CCode (cheader_filename = "ibus.h")] - public static void dbus_connection_setup (IBus.DBusConnection connection); - [CCode (cheader_filename = "ibus.h")] - public static void dbus_server_setup (IBus.DBusServer server); - [CCode (cheader_filename = "ibus.h")] public static void free_strv (string strv); [CCode (cheader_filename = "ibus.h")] public static unowned string get_address (); @@ -4785,21 +4644,11 @@ namespace IBus { [CCode (cheader_filename = "ibus.h")] public static void main (); [CCode (cheader_filename = "ibus.h")] - public static void mainloop_setup (IBus.DBusConnectionSetupFunc connection_func, IBus.DBusServerSetupFunc server_func); - [CCode (cheader_filename = "ibus.h")] public static void quit (); [CCode (cheader_filename = "ibus.h")] public static void set_display (string display); [CCode (cheader_filename = "ibus.h")] - public static GLib.Type type_get_array (); - [CCode (cheader_filename = "ibus.h")] - public static GLib.Type type_get_dict_entry (); - [CCode (cheader_filename = "ibus.h")] - public static GLib.Type type_get_object_path (); - [CCode (cheader_filename = "ibus.h")] - public static GLib.Type type_get_struct (); - [CCode (cheader_filename = "ibus.h")] - public static GLib.Type type_get_variant (); + public static void set_log_handler (bool verbose); [CCode (cheader_filename = "ibus.h")] public static void write_address (string address); [CCode (cheader_filename = "ibus.h")] diff --git a/bindings/vala/ibus-1.0/ibus-1.0.defines b/bindings/vala/ibus-1.0/ibus-1.0.defines new file mode 100644 index 0000000..226b860 --- /dev/null +++ b/bindings/vala/ibus-1.0/ibus-1.0.defines @@ -0,0 +1 @@ +-DIBUS_COMPILATION diff --git a/bindings/vala/ibus-1.0/ibus-1.0.files b/bindings/vala/ibus-1.0/ibus-1.0.files index 5e2d7aa..04d147f 100644 --- a/bindings/vala/ibus-1.0/ibus-1.0.files +++ b/bindings/vala/ibus-1.0/ibus-1.0.files @@ -1,2 +1,2 @@ -include/ibus-1.0/ -lib/libibus.so +include/ibus-1.0 +lib/libibus-1.0.so diff --git a/bindings/vala/ibus-1.0/ibus-1.0.gi b/bindings/vala/ibus-1.0/ibus-1.0.gi index 17203f6..8728a9f 100644 --- a/bindings/vala/ibus-1.0/ibus-1.0.gi +++ b/bindings/vala/ibus-1.0/ibus-1.0.gi @@ -25,18 +25,6 @@ - - - - - - - - - - - - @@ -91,14 +79,6 @@ - - - - - - - - @@ -108,20 +88,11 @@ - - - - - - - - - - - - - - + + + + + @@ -154,76 +125,18 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -232,490 +145,32 @@ - + - + - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -856,7 +311,7 @@ - + @@ -869,7 +324,7 @@ - + @@ -1022,18 +477,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1053,6 +556,12 @@ + + + + + + @@ -1081,6 +590,13 @@ + + + + + + + @@ -1094,14 +610,14 @@ - - - - - - - - + + + + + + + + @@ -1109,19 +625,24 @@ + + + + - + - - + + + @@ -1130,7 +651,7 @@ - + @@ -1147,7 +668,7 @@ - + @@ -1155,7 +676,7 @@ - + @@ -1164,239 +685,37 @@ - + - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + + + - - + + + + + - - + + - - + + + + - + @@ -1450,9 +769,18 @@ - - - + + + + + + + + + + + + @@ -1530,8 +858,7 @@ - - + @@ -1649,6 +976,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1662,6 +1049,12 @@ + + + + + + @@ -1676,15 +1069,16 @@ - - - - - - - - - + + + + + + + + + + @@ -1698,10 +1092,9 @@ - + - @@ -1732,6 +1125,14 @@ + + + + + + + + @@ -1760,6 +1161,10 @@ + + + + @@ -1794,7 +1199,7 @@ - + @@ -1807,7 +1212,9 @@ - + + + @@ -2261,7 +1668,7 @@ - + @@ -2281,7 +1688,7 @@ - + @@ -2298,188 +1705,163 @@ - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - @@ -2591,115 +1973,24 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - - - - - - - + + - + @@ -2711,7 +2002,7 @@ - + @@ -2732,10 +2023,9 @@ - + - @@ -2754,145 +2044,113 @@ - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - + - + + + + + - - + + - + - - - - - - - - + - + + + - - + + - + - - + + + + - - - + + + + + + - - - - + + + - - + + + + + + + - - + + - - + + + + + + + - + @@ -3762,7 +3020,7 @@ - + diff --git a/bindings/vala/ibus-1.0/ibus-1.0.metadata b/bindings/vala/ibus-1.0/ibus-1.0.metadata index 161872e..962ef0f 100644 --- a/bindings/vala/ibus-1.0/ibus-1.0.metadata +++ b/bindings/vala/ibus-1.0/ibus-1.0.metadata @@ -5,3 +5,4 @@ ibus_bus_list_active_engines transfer_ownership="1" type_arguments="EngineDesc" ibus_bus_list_names transfer_ownership="1" type_arguments="string" ibus_bus_get_name_owner transfer_ownership="1" ibus_service_get_connections transfer_ownership="1" type_arguments="unowned Connection" +IBusProxy::destroy has_emitter="1" diff --git a/bindings/vala/test/enchant.vala b/bindings/vala/test/enchant.vala index 500cad2..bb88817 100644 --- a/bindings/vala/test/enchant.vala +++ b/bindings/vala/test/enchant.vala @@ -139,7 +139,7 @@ class TestEngine : Engine { } void main (string []argv) { - var bus = new Bus(); + var bus = new IBus.Bus(); if (!bus.is_connected ()) { stderr.printf ("Can not connect to ibus-daemon!\n");