diff options
author | William Hua <william.hua@canonical.com> | 2013-07-30 16:57:12 -0400 |
---|---|---|
committer | William Hua <william.hua@canonical.com> | 2013-07-30 16:57:12 -0400 |
commit | 6c62ed4e45323d47f3d6ceb53d1a633a261d7ce6 (patch) | |
tree | f279ba0e6cb53b400268ad180c57707d6501d95a | |
parent | f4a3c189ea0f4869e223426f93ad54881c08bd0c (diff) | |
download | ayatana-indicator-keyboard-6c62ed4e45323d47f3d6ceb53d1a633a261d7ce6.tar.gz ayatana-indicator-keyboard-6c62ed4e45323d47f3d6ceb53d1a633a261d7ce6.tar.bz2 ayatana-indicator-keyboard-6c62ed4e45323d47f3d6ceb53d1a633a261d7ce6.zip |
Remove libbamf3.vapi, libgnomekbd.vapi, and libxklavier.vapi.
-rw-r--r-- | deps/libbamf3.vapi | 180 | ||||
-rw-r--r-- | deps/libgnomekbd.vapi | 220 | ||||
-rw-r--r-- | deps/libxklavier.vapi | 181 | ||||
-rw-r--r-- | lib/Makefile.am | 2 |
4 files changed, 1 insertions, 582 deletions
diff --git a/deps/libbamf3.vapi b/deps/libbamf3.vapi deleted file mode 100644 index 7d48dcbb..00000000 --- a/deps/libbamf3.vapi +++ /dev/null @@ -1,180 +0,0 @@ -/* libbamf3.vapi generated by vapigen, do not modify. */ - -[CCode (cprefix = "Bamf", gir_namespace = "Bamf", gir_version = "3", lower_case_cprefix = "bamf_")] -namespace Bamf { - [CCode (cheader_filename = "libbamf/libbamf.h", type_id = "bamf_application_get_type ()")] - public class Application : Bamf.View { - [CCode (has_construct_function = false)] - protected Application (); - public bool get_application_menu (string name, string object_path); - public unowned string get_application_type (); - public unowned string get_desktop_file (); - public unowned Bamf.View get_focusable_child (); - public bool get_show_menu_stubs (); - [CCode (array_length = false, array_null_terminated = true)] - public string[] get_supported_mime_types (); - public GLib.List<weak Bamf.Window> get_windows (); - public GLib.Array<uint32> get_xids (); - public signal void window_added (Bamf.View object); - public signal void window_removed (Bamf.View object); - } - [CCode (cheader_filename = "libbamf/libbamf.h", type_id = "bamf_control_get_type ()")] - public class Control : GLib.Object { - [CCode (has_construct_function = false)] - protected Control (); - public static unowned Bamf.Control get_default (); - public void insert_desktop_file (string desktop_file); - public void register_application_for_pid (string application, int32 pid); - public void register_tab_provider (string path); - } - [CCode (cheader_filename = "libbamf/libbamf.h", type_id = "bamf_matcher_get_type ()")] - public class Matcher : GLib.Object { - [CCode (has_construct_function = false)] - protected Matcher (); - public bool application_is_running (string application); - public unowned Bamf.Application get_active_application (); - public unowned Bamf.Window get_active_window (); - public unowned Bamf.Application get_application_for_desktop_file (string desktop_file_path, bool create_if_not_found); - public unowned Bamf.Application get_application_for_window (Bamf.Window window); - public unowned Bamf.Application get_application_for_xid (uint32 xid); - public GLib.List<weak Bamf.Application> get_applications (); - public static Bamf.Matcher get_default (); - public GLib.List<weak Bamf.Application> get_running_applications (); - public GLib.List<weak Bamf.View> get_tabs (); - public GLib.List<weak Bamf.View> get_window_stack_for_monitor (int monitor); - public GLib.List<weak Bamf.View> get_windows (); - public GLib.Array<uint32> get_xids_for_application (string application); - public void register_favorites ([CCode (array_length = false)] string[] favorites); - public signal void active_application_changed (Bamf.View object, Bamf.View p0); - public signal void active_window_changed (Bamf.View object, Bamf.View p0); - public signal void stacking_order_changed (); - public signal void view_closed (Bamf.View object); - public signal void view_opened (Bamf.View object); - } - [CCode (cheader_filename = "libbamf/libbamf.h", type_id = "bamf_tab_get_type ()")] - public class Tab : Bamf.View { - [CCode (has_construct_function = false)] - public Tab (string path); - public bool close (); - public virtual unowned string get_desktop_name (); - public virtual bool get_is_foreground_tab (); - public virtual unowned string get_location (); - public virtual uint64 get_xid (); - public bool raise (); - [NoAccessorMethod] - public string desktop_id { owned get; set; } - [NoAccessorMethod] - public bool is_foreground_tab { get; set; } - [NoAccessorMethod] - public string location { owned get; set; } - [NoAccessorMethod] - public uint64 xid { get; set; } - } - [CCode (cheader_filename = "libbamf/libbamf.h", type_id = "bamf_tab_source_get_type ()")] - public class TabSource : GLib.Object { - [CCode (has_construct_function = false)] - protected TabSource (); - [CCode (array_length = false, array_null_terminated = true)] - public unowned string[] get_tab_ids (); - public string get_tab_uri (string tab_id); - public uint32 get_tab_xid (string tab_id); - [NoWrapper] - public virtual void show_tab (string tab_id); - [NoWrapper] - public virtual string tab_uri (string tab_id); - [NoWrapper] - public virtual uint32 tab_xid (string tab_id); - [NoAccessorMethod] - public string id { owned get; set construct; } - public signal void tab_closed (string object); - public signal void tab_opened (string object); - public signal void tab_uri_changed (string object, string p0, string p1); - } - [CCode (cheader_filename = "libbamf/libbamf.h", type_id = "bamf_view_get_type ()")] - public class View : GLib.InitiallyUnowned { - [CCode (has_construct_function = false)] - protected View (); - [NoWrapper] - public virtual Bamf.ClickBehavior click_behavior (); - public virtual GLib.List<weak Bamf.View> get_children (); - public Bamf.ClickBehavior get_click_suggestion (); - public virtual string get_icon (); - public virtual string get_name (); - [CCode (vfunc_name = "view_type")] - public virtual unowned string get_view_type (); - public virtual bool is_active (); - public bool is_closed (); - public virtual bool is_running (); - public bool is_sticky (); - public virtual bool is_urgent (); - public bool is_user_visible (); - [NoWrapper] - public virtual void set_path (string path); - public virtual void set_sticky (bool value); - [NoAccessorMethod] - public bool active { get; } - [NoAccessorMethod] - public string path { owned get; } - [NoAccessorMethod] - public bool running { get; } - [NoAccessorMethod] - public bool urgent { get; } - [NoAccessorMethod] - public bool user_visible { get; } - public virtual signal void active_changed (bool active); - public virtual signal void child_added (Bamf.View child); - public virtual signal void child_moved (Bamf.View child); - public virtual signal void child_removed (Bamf.View child); - public virtual signal void closed (); - public virtual signal void name_changed (string old_name, string new_name); - public virtual signal void running_changed (bool running); - public virtual signal void urgent_changed (bool urgent); - public virtual signal void user_visible_changed (bool user_visible); - } - [CCode (cheader_filename = "libbamf/libbamf.h", type_id = "bamf_window_get_type ()")] - public class Window : Bamf.View { - [CCode (has_construct_function = false)] - protected Window (); - public virtual int get_monitor (); - public virtual uint32 get_pid (); - 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 (); - public virtual long last_active (); - public virtual Bamf.WindowMaximizationType maximized (); - public virtual signal void maximized_changed (int old_value, int new_value); - public virtual signal void monitor_changed (int old_value, int new_value); - } - [CCode (cheader_filename = "libbamf/libbamf.h", cprefix = "BAMF_CLICK_BEHAVIOR_", has_type_id = false)] - public enum ClickBehavior { - NONE, - OPEN, - FOCUS, - FOCUS_ALL, - MINIMIZE, - RESTORE, - RESTORE_ALL, - PICKER - } - [CCode (cheader_filename = "libbamf/libbamf.h", cprefix = "BAMF_WINDOW_", has_type_id = false)] - public enum WindowMaximizationType { - FLOATING, - HORIZONTAL_MAXIMIZED, - VERTICAL_MAXIMIZED, - MAXIMIZED - } - [CCode (cheader_filename = "libbamf/libbamf.h", cprefix = "BAMF_WINDOW_", has_type_id = false)] - public enum WindowType { - NORMAL, - DESKTOP, - DOCK, - DIALOG, - TOOLBAR, - MENU, - UTILITY, - SPLASHSCREEN - } - [CCode (cheader_filename = "libbamf/libbamf.h", instance_pos = 2.9)] - public delegate void TabPreviewReadyCallback (Bamf.Tab self, string preview_data); -} diff --git a/deps/libgnomekbd.vapi b/deps/libgnomekbd.vapi deleted file mode 100644 index f555bdad..00000000 --- a/deps/libgnomekbd.vapi +++ /dev/null @@ -1,220 +0,0 @@ -/* libgnomekbd.vapi generated by vapigen, do not modify. */ - -[CCode (cprefix = "Gkbd", gir_namespace = "Gkbd", gir_version = "3.0", lower_case_cprefix = "gkbd_")] -namespace Gkbd { - [CCode (cheader_filename = "libgnomekbd/gkbd-configuration.h", type_id = "gkbd_configuration_get_type ()")] - public class Configuration : GLib.Object { - [CCode (has_construct_function = false)] - protected Configuration (); - public void append_object (GLib.Object obj); - public static string create_label_title (int group, GLib.HashTable<void*,void*> ln2cnt_map, string layout_name); - public string extract_layout_name (int group); - public void free_images (GLib.SList<Gdk.Pixbuf> images); - public static Gkbd.Configuration @get (); - public unowned GLib.SList<GLib.Object> get_all_objects (); - public bool get_caps_lock_state (); - public uint get_current_group (); - public string get_current_tooltip (); - public string get_group_name (uint group); - [CCode (array_length = false, array_null_terminated = true)] - public unowned string[] get_group_names (); - public string get_image_filename (uint group); - public unowned Gkbd.IndicatorConfig? get_indicator_config (); - public unowned Gkbd.KeyboardConfig? get_keyboard_config (); - public bool get_num_lock_state (); - public bool get_scroll_lock_state (); - [CCode (array_length = false, array_null_terminated = true)] - public unowned string[] get_short_group_names (); - public unowned Xkl.Engine get_xkl_engine (); - public bool if_any_object_exists (); - public bool if_flags_shown (); - public GLib.SList<Gdk.Pixbuf> load_images (); - public void lock_group (uint group); - public void lock_next_group (); - public void remove_object (GLib.Object obj); - public void start_listen (); - public void stop_listen (); - public signal void changed (); - public signal void group_changed (int object); - public signal void indicators_changed (); - } - [CCode (cheader_filename = "libgnomekbd/gkbd-indicator.h", type_id = "gkbd_indicator_get_type ()")] - public class Indicator : Gtk.Notebook, Atk.Implementor, Gtk.Buildable { - [CCode (has_construct_function = false, type = "GtkWidget*")] - public Indicator (); - [CCode (array_length = false, array_null_terminated = true)] - public static unowned string[] get_group_names (); - public static string get_image_filename (uint group); - public static double get_max_width_height_ratio (); - public static unowned Xkl.Engine get_xkl_engine (); - public void set_angle (double angle); - public void set_parent_tooltips (bool ifset); - [HasEmitter] - public virtual signal void reinit_ui (); - } - [CCode (cheader_filename = "libgnomekbd/gkbd-keyboard-drawing.h", type_id = "gkbd_keyboard_drawing_get_type ()")] - public class KeyboardDrawing : Gtk.DrawingArea, Atk.Implementor, Gtk.Buildable { - [CCode (has_construct_function = false, type = "GtkWidget*")] - public KeyboardDrawing (); - [CCode (cname = "gkbd_keyboard_drawing_dialog_new", has_construct_function = false, type = "GtkWidget*")] - public KeyboardDrawing.dialog_new (); - public static void dialog_set_group (Gtk.Widget dialog, Xkl.ConfigRegistry registry, int group); - public static void dialog_set_layout (Gtk.Widget dialog, Xkl.ConfigRegistry registry, string layout); - public unowned string get_compat (); - public unowned string get_geometry (); - public unowned string get_keycodes (); - public unowned string get_symbols (); - public unowned string get_types (); - public void print (Gtk.Window parent_window, string description); - public bool render (Cairo.Context cr, Pango.Layout layout, double x, double y, double width, double height, double dpi_x, double dpi_y); - public void set_groups_levels (Gkbd.KeyboardDrawingGroupLevel groupLevels); - public void set_layout (string id); - public void set_track_config (bool enable); - public void set_track_modifiers (bool enable); - public virtual signal void bad_keycode (uint keycode); - } - [CCode (cheader_filename = "libgnomekbd/gkbd-status.h", type_id = "gkbd_status_get_type ()")] - public class Status : Gtk.StatusIcon { - [CCode (has_construct_function = false, type = "GtkStatusIcon*")] - public Status (); - [CCode (array_length = false, array_null_terminated = true)] - public static unowned string[] get_group_names (); - public static string get_image_filename (uint group); - public static unowned Xkl.Engine get_xkl_engine (); - public void reinit_ui (); - } - [CCode (cheader_filename = "libgnomekbd/gkbd-desktop-config.h", has_type_id = false)] - public struct DesktopConfig { - public int default_group; - public bool group_per_app; - public bool handle_indicators; - public bool layout_names_as_group_names; - public bool load_extra_items; - public weak GLib.Settings settings; - public int config_listener_id; - public weak Xkl.Engine engine; - public bool activate (); - public void init (Xkl.Engine engine); - public void load (); - public bool load_group_descriptions (Xkl.ConfigRegistry registry, string layout_ids, string variant_ids, string short_group_names, string full_group_names); - public void lock_next_group (); - public void lock_prev_group (); - public void restore_group (); - public void save (); - public void start_listen (GLib.Callback func); - public void stop_listen (); - public void term (); - } - [CCode (cheader_filename = "libgnomekbd/gkbd-indicator-config.h", has_type_id = false)] - public struct IndicatorConfig { - public int secondary_groups_mask; - public bool show_flags; - public weak string font_family; - public int font_size; - public weak string foreground_color; - public weak string background_color; - public weak GLib.Settings settings; - public weak GLib.SList<void*> image_filenames; - public weak Gtk.IconTheme icon_theme; - public int config_listener_id; - public weak Xkl.Engine engine; - public void activate (); - public void free_image_filenames (); - public string get_fg_color_for_widget (Gtk.Widget widget); - public void get_font_for_widget (Gtk.Widget widget, string font_family, int font_size); - public string get_images_file (Gkbd.KeyboardConfig kbd_config, int group); - public void init (Xkl.Engine engine); - public void load (); - public void load_image_filenames (Gkbd.KeyboardConfig kbd_config); - public void refresh_style (); - public void save (); - public void start_listen (GLib.Callback func); - public void stop_listen (); - public void term (); - } - [CCode (cheader_filename = "libgnomekbd/gkbd-keyboard-config.h", has_type_id = false)] - public struct KeyboardConfig { - public weak string model; - public weak string layouts_variants; - public weak string options; - public weak GLib.Settings settings; - public int config_listener_id; - public weak Xkl.Engine engine; - public bool activate (); - [CCode (array_length = false, array_null_terminated = true)] - public static string[] add_default_switch_option_if_necessary (string layouts_list, string options_list, bool was_appended); - public bool equals (Gkbd.KeyboardConfig kbd_config2); - public static unowned string format_full_description (string layout_descr, string variant_descr); - public static bool get_descriptions (Xkl.ConfigRegistry config_registry, string name, string layout_short_descr, string layout_descr, string variant_short_descr, string variant_descr); - public void init (Xkl.Engine engine); - public void load (Gkbd.KeyboardConfig kbd_config_default); - public void load_from_x_current (Xkl.ConfigRec buf); - public void load_from_x_initial (Xkl.ConfigRec buf); - public static unowned string merge_items (string parent, string child); - public void save (); - public static bool split_items (string merged, string parent, string child); - public void start_listen (GLib.Callback func); - public void stop_listen (); - public void term (); - public string to_string (); - } - [CCode (cheader_filename = "libgnomekbd/gkbd-keyboard-drawing.h", has_type_id = false)] - public struct KeyboardDrawingDoodad { - } - [CCode (cheader_filename = "libgnomekbd/gkbd-keyboard-drawing.h", has_type_id = false)] - public struct KeyboardDrawingGroupLevel { - public int group; - public int level; - } - [CCode (cheader_filename = "libgnomekbd/gkbd-keyboard-drawing.h", has_type_id = false)] - public struct KeyboardDrawingItem { - } - [CCode (cheader_filename = "libgnomekbd/gkbd-keyboard-drawing.h", has_type_id = false)] - public struct KeyboardDrawingKey { - } - [CCode (cheader_filename = "libgnomekbd/gkbd-keyboard-drawing.h", has_type_id = false)] - public struct KeyboardDrawingRenderContext { - public weak Cairo.Context cr; - public int angle; - public weak Pango.Layout layout; - public weak Pango.FontDescription font_desc; - public int scale_numerator; - public int scale_denominator; - public Gdk.RGBA dark_color; - } - [CCode (cheader_filename = "libgnomekbd/gkbd-keyboard-drawing.h", cprefix = "GKBD_KEYBOARD_DRAWING_POS_", has_type_id = false)] - public enum KeyboardDrawingGroupLevelPosition { - TOPLEFT, - TOPRIGHT, - BOTTOMLEFT, - BOTTOMRIGHT, - TOTAL, - FIRST, - LAST - } - [CCode (cheader_filename = "libgnomekbd/gkbd-keyboard-drawing.h", cprefix = "GKBD_KEYBOARD_DRAWING_ITEM_TYPE_", has_type_id = false)] - public enum KeyboardDrawingItemType { - INVALID, - KEY, - KEY_EXTRA, - DOODAD - } - [CCode (cheader_filename = "libgnomekbd/gkbd-desktop-config.h", cname = "GKBD_DESKTOP_SCHEMA")] - public const string DESKTOP_SCHEMA; - [CCode (cheader_filename = "libgnomekbd/gkbd-keyboard-drawing.h", cname = "GKBD_KEYBOARD_DRAWING_H")] - public const int KEYBOARD_DRAWING_H; - [CCode (cheader_filename = "libgnomekbd/gkbd-keyboard-config.h", cname = "GKBD_KEYBOARD_SCHEMA")] - public const string KEYBOARD_SCHEMA; - [CCode (cheader_filename = "libgnomekbd/gkbd-util.h")] - public static void install_glib_log_appender (); - [CCode (cheader_filename = "libgnomekbd/gkbd-util.h")] - public static Gdk.Rectangle? preview_load_position (); - [CCode (cheader_filename = "libgnomekbd/gkbd-util.h")] - public static void preview_save_position (Gdk.Rectangle rect); - [CCode (array_length = false, array_null_terminated = true, cheader_filename = "libgnomekbd/gkbd-util.h")] - public static string[] strv_append (string arr, string element); - [CCode (cheader_filename = "libgnomekbd/gkbd-util.h")] - public static void strv_behead (string arr); - [CCode (cheader_filename = "libgnomekbd/gkbd-util.h")] - public static bool strv_remove (string arr, string element); -} diff --git a/deps/libxklavier.vapi b/deps/libxklavier.vapi deleted file mode 100644 index a2b7738c..00000000 --- a/deps/libxklavier.vapi +++ /dev/null @@ -1,181 +0,0 @@ -/* libxklavier.vapi generated by vapigen, do not modify. */ - -[CCode (cprefix = "Xkl", gir_namespace = "Xkl", gir_version = "1.0", lower_case_cprefix = "xkl_")] -namespace Xkl { - [CCode (cheader_filename = "libxklavier/xklavier.h", type_id = "xkl_config_item_get_type ()")] - public class ConfigItem : GLib.Object { - [CCode (array_length = false, array_null_terminated = true)] - public weak char[] description; - [CCode (array_length = false, array_null_terminated = true)] - public weak char[] name; - [CCode (array_length = false, array_null_terminated = true)] - public weak char[] short_description; - [CCode (has_construct_function = false)] - public ConfigItem (); - public void set_description (string? description); - public void set_name (string? name); - public void set_short_description (string? short_description); - } - [CCode (cheader_filename = "libxklavier/xklavier.h", type_id = "xkl_config_rec_get_type ()")] - public class ConfigRec : GLib.Object { - [CCode (array_length = false, array_null_terminated = true)] - public weak string[] layouts; - public weak string model; - [CCode (array_length = false, array_null_terminated = true)] - public weak string[] options; - [CCode (array_length = false, array_null_terminated = true)] - public weak string[] variants; - [CCode (has_construct_function = false)] - public ConfigRec (); - public bool activate (Xkl.Engine engine); - public bool equals (Xkl.ConfigRec data2); - public bool get_from_backup (Xkl.Engine engine); - public bool get_from_root_window_property (X.Atom rules_atom_name, string rules_file_out, Xkl.Engine engine); - public bool get_from_server (Xkl.Engine engine); - public void reset (); - public void set_layouts ([CCode (array_length = false, array_null_terminated = true)] string[] new_layouts); - public void set_options ([CCode (array_length = false, array_null_terminated = true)] string[] new_options); - public bool set_to_root_window_property (X.Atom rules_atom_name, string rules_file, Xkl.Engine engine); - public void set_variants ([CCode (array_length = false, array_null_terminated = true)] string[] new_variants); - public static bool write_to_file (Xkl.Engine engine, string file_name, Xkl.ConfigRec data, bool binary); - } - [CCode (cheader_filename = "libxklavier/xklavier.h", type_id = "xkl_config_registry_get_type ()")] - public class ConfigRegistry : GLib.Object { - [CCode (has_construct_function = false)] - protected ConfigRegistry (); - public bool find_layout (Xkl.ConfigItem item); - public bool find_model (Xkl.ConfigItem item); - public bool find_option (string option_group_name, Xkl.ConfigItem item); - public bool find_option_group (Xkl.ConfigItem item); - public bool find_variant (string layout_name, Xkl.ConfigItem item); - public void foreach_country (Xkl.ConfigItemProcessFunc func); - public void foreach_country_variant (string country_code, Xkl.TwoConfigItemsProcessFunc func); - public void foreach_language (Xkl.ConfigItemProcessFunc func); - public void foreach_language_variant (string language_code, Xkl.TwoConfigItemsProcessFunc func); - public void foreach_layout (Xkl.ConfigItemProcessFunc func); - public void foreach_layout_variant (string layout_name, Xkl.ConfigItemProcessFunc func); - public void foreach_model (Xkl.ConfigItemProcessFunc func); - public void foreach_option (string option_group_name, Xkl.ConfigItemProcessFunc func); - public void foreach_option_group (Xkl.ConfigItemProcessFunc func); - public static unowned Xkl.ConfigRegistry get_instance (Xkl.Engine engine); - public bool load (bool if_extras_needed); - public void search_by_pattern (string pattern, Xkl.TwoConfigItemsProcessFunc func); - [NoAccessorMethod] - public Xkl.Engine engine { owned get; construct; } - } - [CCode (cheader_filename = "libxklavier/xklavier.h", type_id = "xkl_engine_get_type ()")] - public class Engine : GLib.Object { - [CCode (has_construct_function = false)] - protected Engine (); - public static void INT__LONG_LONG (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data); - public static void VOID__FLAGS_INT_BOOLEAN (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data); - public void allow_one_switch_to_secondary_group (); - public bool backup_names_prop (); - [NoWrapper] - public virtual void config_notify (); - public void delete_state (X.Window win); - public int filter_events ([CCode (type = "XEvent*")] X.Event evt); - public unowned string get_backend_name (); - public unowned Xkl.State get_current_state (); - public X.Window get_current_window (); - public int get_current_window_group (); - public int get_default_group (); - public uint get_features (); - [CCode (array_length = false, array_null_terminated = true)] - public unowned string[] get_groups_names (); - public bool get_indicators_handling (); - [CCode (array_length = false, array_null_terminated = true)] - public unowned string[] get_indicators_names (); - public static unowned Xkl.Engine get_instance (X.Display display); - public uint get_max_num_groups (); - public int get_next_group (); - public uint get_num_groups (); - public int get_prev_group (); - public uint get_secondary_groups_mask (); - public bool get_state (X.Window win, Xkl.State state_out); - public string get_window_title (X.Window win); - public bool grab_key (int keycode, uint modifiers); - public bool is_group_per_toplevel_window (); - public bool is_window_from_same_toplevel_window (X.Window win1, X.Window win2); - public bool is_window_transparent (X.Window win); - public void lock_group (int group); - [NoWrapper] - public virtual void new_device_notify (); - [NoWrapper] - public virtual int new_window_notify (X.Window win, X.Window parent); - public int pause_listen (); - public int resume_listen (); - public void save_state (X.Window win, Xkl.State state); - public void set_default_group (int group); - public void set_group_per_toplevel_window (bool is_global); - public void set_indicators_handling (bool whether_handle); - public void set_secondary_groups_mask (uint mask); - public void set_window_transparent (X.Window win, bool transparent); - public int start_listen (uint flags); - [NoWrapper] - public virtual void state_notify (Xkl.EngineStateChange change_type, int group, bool restore); - public int stop_listen (uint flags); - public bool ungrab_key (int keycode, uint modifiers); - [NoAccessorMethod] - public string backendName { owned get; } - public uint default_group { get; } - [NoAccessorMethod] - public void* display { get; construct; } - public bool indicators_handling { get; } - public uint max_num_groups { get; } - public uint num_groups { get; } - public uint secondary_groups_mask { get; } - public signal void X_config_changed (); - public signal void X_new_device (); - public signal int new_toplevel_window (long object, long p0); - } - [CCode (cheader_filename = "libxklavier/xklavier.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "xkl_state_get_type ()")] - [Compact] - public class State { - public int32 group; - public uint32 indicators; - } - [CCode (cheader_filename = "libxklavier/xklavier.h", cprefix = "XKLF_", has_type_id = false)] - [Flags] - public enum EngineFeatures { - CAN_TOGGLE_INDICATORS, - CAN_OUTPUT_CONFIG_AS_ASCII, - CAN_OUTPUT_CONFIG_AS_BINARY, - MULTIPLE_LAYOUTS_SUPPORTED, - REQUIRES_MANUAL_LAYOUT_MANAGEMENT, - DEVICE_DISCOVERY - } - [CCode (cheader_filename = "libxklavier/xklavier.h", cprefix = "XKLL_", has_type_id = false)] - public enum EngineListenModes { - MANAGE_WINDOW_STATES, - TRACK_KEYBOARD_STATE, - MANAGE_LAYOUTS - } - [CCode (cheader_filename = "libxklavier/xklavier.h", cprefix = "", has_type_id = false)] - public enum EngineStateChange { - [CCode (cname = "GROUP_CHANGED")] - ROUP_CHANGED, - [CCode (cname = "INDICATORS_CHANGED")] - NDICATORS_CHANGED - } - [CCode (cheader_filename = "libxklavier/xklavier.h", has_target = false)] - public delegate void ConfigItemProcessFunc (Xkl.ConfigRegistry config, Xkl.ConfigItem item, void* data); - [CCode (cheader_filename = "libxklavier/xklavier.h", has_target = false)] - public delegate void TwoConfigItemsProcessFunc (Xkl.ConfigRegistry config, Xkl.ConfigItem item, Xkl.ConfigItem subitem, void* data); - [CCode (cheader_filename = "libxklavier/xklavier.h", cname = "XKL_MAX_CI_DESC_LENGTH")] - public const int MAX_CI_DESC_LENGTH; - [CCode (cheader_filename = "libxklavier/xklavier.h", cname = "XKL_MAX_CI_NAME_LENGTH")] - public const int MAX_CI_NAME_LENGTH; - [CCode (cheader_filename = "libxklavier/xklavier.h", cname = "XKL_MAX_CI_SHORT_DESC_LENGTH")] - public const int MAX_CI_SHORT_DESC_LENGTH; - [CCode (cheader_filename = "libxklavier/xklavier.h")] - public static unowned string get_country_name (string code); - [CCode (cheader_filename = "libxklavier/xklavier.h")] - public static unowned string get_language_name (string code); - [CCode (cheader_filename = "libxklavier/xklavier.h")] - public static unowned string get_last_error (); - [CCode (cheader_filename = "libxklavier/xklavier.h")] - public static bool restore_names_prop (Xkl.Engine engine); - [CCode (cheader_filename = "libxklavier/xklavier.h")] - public static void set_debug_level (int level); -} diff --git a/lib/Makefile.am b/lib/Makefile.am index 3fca1215..169a2de0 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -16,7 +16,7 @@ indicator_keyboard_service_VALAFLAGS = $(AM_VALAFLAGS) \ --pkg GDesktopEnums-3.0 \ --pkg gnome-desktop-3.0 \ --pkg Xkl-1.0 \ - --pkg libgnomekbd \ + --pkg Gkbd-3.0 \ --pkg ibus-1.0 \ --pkg libbamf3 indicator_keyboard_service_CFLAGS = $(AM_CFLAGS) \ |