indicator-keyboard-0.0.0+14.04.20140410.1/0000755000015301777760000000000012321546061020011 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/COPYING.LESSER0000644000015301777760000001674312321545543022057 0ustar pbusernogroup00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. indicator-keyboard-0.0.0+14.04.20140410.1/Makefile.am0000644000015301777760000000014112321545543022045 0ustar pbusernogroup00000000000000ACLOCAL_AMFLAGS = -I m4 SUBDIRS = po lib data tests include $(top_srcdir)/Makefile.am.coverage indicator-keyboard-0.0.0+14.04.20140410.1/tests/0000755000015301777760000000000012321546061021153 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/tests/autopilot/0000755000015301777760000000000012321546061023173 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/tests/autopilot/test.sh0000755000015301777760000000016012321545543024512 0ustar pbusernogroup00000000000000#!/bin/sh for name in `autopilot list tests | head -n -3 | tail -n +3` do autopilot run $name || exit 1 done indicator-keyboard-0.0.0+14.04.20140410.1/tests/autopilot/Makefile.am0000644000015301777760000000030012321545543025224 0ustar pbusernogroup00000000000000autopilotdir = $(pythondir)/indicator_keyboard autopilot_DATA = __init__.py autopilottestsdir = $(autopilotdir)/tests autopilottests_DATA = tests/__init__.py tests/test_indicator_keyboard.py indicator-keyboard-0.0.0+14.04.20140410.1/tests/autopilot/tests/0000755000015301777760000000000012321546061024335 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/tests/autopilot/tests/Makefile.am0000644000015301777760000000006612321545543026377 0ustar pbusernogroup00000000000000check_PYTHON = __init__.py test_indicator_keyboard.py indicator-keyboard-0.0.0+14.04.20140410.1/tests/autopilot/tests/__init__.py0000644000015301777760000000000012321545543026440 0ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/tests/autopilot/tests/test_indicator_keyboard.py0000644000015301777760000000400112321545543031601 0ustar pbusernogroup00000000000000import autopilot.introspection.gtk import os import pyatspi.registry import pyatspi.utils import time import unity.tests def print_accessible(root, level=0): print level * ' ', root for node in root: print_accessible(node, level + 1) def get_accessible_with_name_and_role(root, name, role): is_accessible = lambda a: a.name == name and a.get_role_name() == role return pyatspi.utils.findDescendant(root, is_accessible, True); def get_panel_accessible(root): return get_accessible_with_name_and_role(root, 'unity-panel-service', 'application') def is_indicator_accessible(root): return root.get_role_name() == 'panel' and \ len(root) == 1 and \ root[0].get_role_name() == 'image' and \ len(root[0]) == 1 and \ root[0][0].get_role_name() == 'menu' and \ len(root[0][0]) > 3 and \ root[0][0][-3].name == 'Character Map' and \ root[0][0][-3].get_role_name() == 'check menu item' and \ root[0][0][-2].name == 'Keyboard Layout Chart' and \ root[0][0][-2].get_role_name() == 'check menu item' and \ root[0][0][-1].name == 'Text Entry Settings...' and \ root[0][0][-1].get_role_name() == 'check menu item' def get_indicator_accessible(root): return pyatspi.utils.findDescendant(root, is_indicator_accessible, True) def get_accessible_index(root, node): for i in xrange(len(root)): if root[i] == node: return i return -1 class IndicatorKeyboardTestCase(unity.tests.UnityTestCase): def setUp(self): super(IndicatorKeyboardTestCase, self).setUp() registry = pyatspi.registry.Registry() desktop = registry.getDesktop(0) panel = get_panel_accessible(desktop) self.indicator = get_indicator_accessible(panel) # This is needed on systems other than the EN locale os.putenv("LC_ALL", "C") self.addCleanup(os.unsetenv, "LC_ALL") def test_indicator(self): print_accessible(self.indicator) indicator-keyboard-0.0.0+14.04.20140410.1/tests/autopilot/__init__.py0000644000015301777760000000032212321545543025305 0ustar pbusernogroup00000000000000# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- # Copyright 2013 Canonical # # This file is part of indicator-keyboard. """indicator-keyboard autopilot tests - top level package.""" indicator-keyboard-0.0.0+14.04.20140410.1/tests/fixture.vala0000644000015301777760000000636212321545543023521 0ustar pbusernogroup00000000000000/* * Copyright (C) 2014 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authored by Michal Hruby * * This file is taken from libunity. */ /* A bit of magic to get proper-ish fixture support */ public interface Fixture : Object { class DelegateWrapper { TestDataFunc func; public DelegateWrapper (owned TestDataFunc f) { func = (owned) f; } } public virtual void setup () {} public virtual void teardown () {} [CCode (has_target = false)] public delegate void Callback (T ptr); private static List _tests; public static unowned TestDataFunc create (Callback cb) requires (typeof (F).is_a (typeof (Fixture))) { TestDataFunc functor = () => { var type = typeof (F); var instance = Object.new (type) as Fixture; instance.setup (); cb (instance); instance.teardown (); }; unowned TestDataFunc copy = functor; _tests.append (new DelegateWrapper ((owned) functor)); return copy; } public static unowned TestDataFunc create_static (Callback cb) { return create ((Callback) cb); } } public static bool run_with_timeout (MainLoop ml, uint timeout_ms = 5000) { bool timeout_reached = false; var t_id = Timeout.add (timeout_ms, () => { timeout_reached = true; debug ("Timeout reached"); ml.quit (); return false; }); ml.run (); if (!timeout_reached) Source.remove (t_id); return !timeout_reached; } /* calling this will ensure that the object was destroyed, but note that * it needs to be called with the (owned) modifier */ public static void ensure_destruction (owned Object obj) { var ml = new MainLoop (); bool destroyed = false; obj.weak_ref (() => { destroyed = true; ml.quit (); }); obj = null; if (!destroyed) { // wait a bit if there were async operations assert (run_with_timeout (ml)); } } public class ErrorHandler { public ErrorHandler () { GLib.Test.log_set_fatal_handler (handle_fatal_func); } private bool handle_fatal_func (string? log_domain, LogLevelFlags flags, string message) { return false; } private uint[] handler_ids; private GenericArray handler_domains; public void ignore_message (string? domain, LogLevelFlags flags) { handler_ids += Log.set_handler (domain, flags | LogLevelFlags.FLAG_FATAL, () => {}); if (handler_domains == null) { handler_domains = new GenericArray (); } handler_domains.add (domain); } ~ErrorHandler () { for(uint i = 0; i < handler_ids.length; i++) Log.remove_handler (handler_domains[i], handler_ids[i]); } } indicator-keyboard-0.0.0+14.04.20140410.1/tests/Makefile.am0000644000015301777760000000124012321545543023210 0ustar pbusernogroup00000000000000SUBDIRS = autopilot TESTS = indicator-keyboard-test check_PROGRAMS = indicator-keyboard-tests AM_CFLAGS = -w AM_LDFLAGS = -lm AM_VALAFLAGS = --metadatadir $(top_srcdir)/deps \ --vapidir $(top_srcdir)/deps indicator_keyboard_tests_SOURCES = main.vala \ fixture.vala \ config.vala indicator_keyboard_tests_VALAFLAGS = $(AM_VALAFLAGS) \ --pkg gio-2.0 indicator_keyboard_tests_CFLAGS = $(AM_CFLAGS) \ $(GIO_CFLAGS) indicator_keyboard_tests_LDFLAGS = $(AM_LDFLAGS) \ $(GIO_LIBS) indicator-keyboard-0.0.0+14.04.20140410.1/tests/execute/0000755000015301777760000000000012321546061022615 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/tests/execute/gkbd-keyboard-display0000777000015301777760000000000012321546061037465 2com.canonical.indicator.keyboard.test.Executeustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/tests/execute/unity-control-center0000777000015301777760000000000012321546061037421 2com.canonical.indicator.keyboard.test.Executeustar pbusernogroup00000000000000././@LongLink0000000000000000000000000000014600000000000011216 Lustar 00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/tests/execute/com.canonical.indicator.keyboard.test.Executeindicator-keyboard-0.0.0+14.04.20140410.1/tests/execute/com.canonical.indicator.keyboard.test.Execut0000755000015301777760000000026412321545543033241 0ustar pbusernogroup00000000000000#!/bin/sh gdbus call -e -d com.canonical.indicator.keyboard.test -o /com/canonical/indicator/keyboard/test -m com.canonical.indicator.keyboard.test.Execute "\'`basename $0` $*\'" indicator-keyboard-0.0.0+14.04.20140410.1/tests/execute/gucharmap0000777000015301777760000000000012321546061035264 2com.canonical.indicator.keyboard.test.Executeustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/tests/services/0000755000015301777760000000000012321546061022776 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/tests/services/ca.desrt.dconf.service0000644000015301777760000000010612321545543027154 0ustar pbusernogroup00000000000000[D-BUS Service] Name=ca.desrt.dconf Exec=/usr/lib/dconf/dconf-service indicator-keyboard-0.0.0+14.04.20140410.1/tests/services/indicator-keyboard.service.in0000644000015301777760000000015512321545543030544 0ustar pbusernogroup00000000000000[D-BUS Service] Name=com.canonical.indicator.keyboard Exec=@abs_top_builddir@/lib/indicator-keyboard-service indicator-keyboard-0.0.0+14.04.20140410.1/tests/services/gvfs-daemon.service0000644000015301777760000000010112321545543026562 0ustar pbusernogroup00000000000000[D-BUS Service] Name=org.gtk.vfs.Daemon Exec=/usr/lib/gvfs/gvfsd indicator-keyboard-0.0.0+14.04.20140410.1/tests/main.vala0000644000015301777760000005411712321545543022760 0ustar pbusernogroup00000000000000/* * Copyright 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ const int TIMEOUT_S = 1; const int TIMEOUT_MS = 1000; const int LONG_TIMEOUT_S = 10; static string display; [DBus (name = "com.canonical.indicator.keyboard.test")] public class Service : Object { [DBus (visible = false)] private string? _command; [DBus (visible = false)] public string? command { get { return _command; } } public void execute (string command) { _command = command; var pspec = get_class ().find_property ("command"); if (pspec != null) { notify["command"] ((!) pspec); } } } public class Tests : Object, Fixture { private TestDBus? _bus; private uint _service_name; private DBusConnection? _connection; private Service? _service; private uint _object_name; public void start_service () { if (_connection != null) { try { _service = new Service (); _object_name = ((!) _connection).register_object ("/com/canonical/indicator/keyboard/test", _service); } catch (IOError error) { _connection = null; _service = null; _object_name = 0; Test.message ("error: %s", error.message); Test.fail (); } } } public void setup () { Environment.set_variable ("DCONF_PROFILE", DCONF_PROFILE, true); Environment.set_variable ("DISPLAY", display, true); Environment.set_variable ("LC_ALL", "C", true); _bus = new TestDBus (TestDBusFlags.NONE); ((!) _bus).add_service_dir (SERVICE_DIR); ((!) _bus).up (); var loop = new MainLoop (null, false); _service_name = Bus.own_name (BusType.SESSION, "com.canonical.indicator.keyboard.test", BusNameOwnerFlags.ALLOW_REPLACEMENT | BusNameOwnerFlags.REPLACE, (connection, name) => { if (loop.is_running ()) { _connection = connection; start_service (); loop.quit (); } }, null, (connection, name) => { if (loop.is_running ()) { _connection = null; _service = null; _object_name = 0; loop.quit (); } }); loop.run (); if (_connection == null) { Test.message ("error: Unable to connect to com.canonical.indicator.keyboard.test."); Test.fail (); } if (_object_name == 0) { Test.message ("error: Test fixture not initialized."); Test.fail (); return; } } public void teardown () { if (_object_name != 0) { ((!) _connection).unregister_object (_object_name); _object_name = 0; } if (_service_name != 0) { Bus.unown_name (_service_name); _service_name = 0; } _service = null; _connection = null; if (_bus != null) { ((!) _bus).down (); _bus = null; } } public void test_activate_input_source () { try { var current = 0; var sources = "[('xkb', 'us'), ('xkb', 'ca+eng'), ('xkb', 'epo'), ('ibus', 'pinyin')]"; Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources current $current"); Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources sources \"$sources\""); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } var action_group = DBusActionGroup.get ((!) _connection, "com.canonical.indicator.keyboard", "/com/canonical/indicator/keyboard"); action_group.list_actions (); action_group.activate_action ("current", new Variant.uint32 (2)); var loop = new MainLoop (null, false); Timeout.add_seconds (TIMEOUT_S, () => { loop.quit (); return false; }); loop.run (); var state = action_group.get_action_state ("current"); var current = state.get_uint32 (); stderr.printf ("current = %u\n", current); assert (current == 2); try { string output; Process.spawn_command_line_sync ("gsettings get org.gnome.desktop.input-sources current", out output); stderr.printf ("output = \"%s\"\n", output); assert (strcmp (output, "uint32 2\n") == 0); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } } public void test_activate_character_map () { var action_group = DBusActionGroup.get ((!) _connection, "com.canonical.indicator.keyboard", "/com/canonical/indicator/keyboard"); var loop = new MainLoop (null, false); var signal_name = ((!) _service).notify["command"].connect ((pspec) => { loop.quit (); }); action_group.activate_action ("map", null); var source = Timeout.add_seconds (LONG_TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); ((!) _service).disconnect (signal_name); stderr.printf ("_service.command = \"%s\"\n", (!) ((!) _service).command); assert (strcmp ((!) ((!) _service).command, "'gucharmap '") == 0); } public void test_activate_keyboard_layout_chart () { try { var current = 1; var sources = "[('xkb', 'us'), ('xkb', 'ca+eng'), ('xkb', 'epo'), ('ibus', 'pinyin')]"; Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources current $current"); Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources sources \"$sources\""); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } var action_group = DBusActionGroup.get ((!) _connection, "com.canonical.indicator.keyboard", "/com/canonical/indicator/keyboard"); var loop = new MainLoop (null, false); var signal_name = ((!) _service).notify["command"].connect ((pspec) => { loop.quit (); }); action_group.activate_action ("chart", null); var source = Timeout.add_seconds (LONG_TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); ((!) _service).disconnect (signal_name); stderr.printf ("_service.command = \"%s\"\n", (!) ((!) _service).command); assert (strcmp ((!) ((!) _service).command, "'gkbd-keyboard-display -l ca\teng'") == 0); } public void test_activate_text_entry_settings () { var action_group = DBusActionGroup.get ((!) _connection, "com.canonical.indicator.keyboard", "/com/canonical/indicator/keyboard"); var loop = new MainLoop (null, false); var signal_name = ((!) _service).notify["command"].connect ((pspec) => { loop.quit (); }); action_group.activate_action ("settings", null); var source = Timeout.add_seconds (LONG_TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); ((!) _service).disconnect (signal_name); stderr.printf ("_service.command = \"%s\"\n", (!) ((!) _service).command); assert (strcmp ((!) ((!) _service).command, "'unity-control-center region layouts'") == 0); } public void test_migration () { try { var migrated = false; var sources = "[('xkb', 'us')]"; var layouts = "['us', 'ca\teng', 'epo']"; Process.spawn_command_line_sync (@"gsettings set com.canonical.indicator.keyboard migrated $migrated"); Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources sources \"$sources\""); Process.spawn_command_line_sync (@"gsettings set org.gnome.libgnomekbd.keyboard layouts \"$layouts\""); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } try { var cancellable = new Cancellable (); var source = Timeout.add_seconds (LONG_TIMEOUT_S, () => { cancellable.cancel (); return true; }); var dbus_proxy = new DBusProxy.sync ((!) _connection, DBusProxyFlags.NONE, null, "org.freedesktop.DBus", "/", "org.freedesktop.DBus", cancellable); Source.remove (source); if (cancellable.is_cancelled ()) { Test.message ("error: Unable to connect to org.freedesktop.DBus."); Test.fail (); return; } dbus_proxy.call_sync ("StartServiceByName", new Variant ("(su)", "com.canonical.indicator.keyboard", 0), DBusCallFlags.NONE, TIMEOUT_MS); } catch (Error error) { Test.message ("error: %s", error.message); Test.fail (); return; } var loop = new MainLoop (null, false); Timeout.add_seconds (TIMEOUT_S, () => { loop.quit (); return false; }); loop.run (); try { string sources; Process.spawn_command_line_sync ("gsettings get org.gnome.desktop.input-sources sources", out sources); stderr.printf ("sources = \"%s\"\n", sources); assert (strcmp (sources, "[('xkb', 'us'), ('xkb', 'ca+eng'), ('xkb', 'epo')]\n") == 0); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } } public void test_no_migration () { try { var migrated = true; var sources = "[('xkb', 'us')]"; var layouts = "['us', 'ca\teng', 'epo']"; Process.spawn_command_line_sync (@"gsettings set com.canonical.indicator.keyboard migrated $migrated"); Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources sources \"$sources\""); Process.spawn_command_line_sync (@"gsettings set org.gnome.libgnomekbd.keyboard layouts \"$layouts\""); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } try { var cancellable = new Cancellable (); var source = Timeout.add_seconds (LONG_TIMEOUT_S, () => { cancellable.cancel (); return true; }); var dbus_proxy = new DBusProxy.sync ((!) _connection, DBusProxyFlags.NONE, null, "org.freedesktop.DBus", "/", "org.freedesktop.DBus", cancellable); Source.remove (source); if (cancellable.is_cancelled ()) { Test.message ("error: Unable to connect to org.freedesktop.DBus."); Test.fail (); return; } dbus_proxy.call_sync ("StartServiceByName", new Variant ("(su)", "com.canonical.indicator.keyboard", 0), DBusCallFlags.NONE, TIMEOUT_MS); } catch (Error error) { Test.message ("error: %s", error.message); Test.fail (); return; } var loop = new MainLoop (null, false); Timeout.add_seconds (TIMEOUT_S, () => { loop.quit (); return false; }); loop.run (); try { string sources; Process.spawn_command_line_sync ("gsettings get org.gnome.desktop.input-sources sources", out sources); stderr.printf ("sources = \"%s\"\n", sources); assert (strcmp (sources, "[('xkb', 'us')]\n") == 0); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } } public void test_update_visible () { bool visible; try { visible = true; Process.spawn_command_line_sync (@"gsettings set com.canonical.indicator.keyboard visible $visible"); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } var action_group = DBusActionGroup.get ((!) _connection, "com.canonical.indicator.keyboard", "/com/canonical/indicator/keyboard"); var loop = new MainLoop (null, false); var signal_name = action_group.action_added["indicator"].connect ((action) => { loop.quit (); }); action_group.list_actions (); var source = Timeout.add_seconds (LONG_TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); action_group.disconnect (signal_name); var state = action_group.get_action_state ("indicator"); assert (state.lookup ("visible", "b", out visible)); stderr.printf ("visible = %s\n", visible ? "true" : "false"); assert (visible); loop = new MainLoop (null, false); signal_name = action_group.action_state_changed["indicator"].connect ((action, state) => { loop.quit (); }); try { visible = false; Process.spawn_command_line_sync (@"gsettings set com.canonical.indicator.keyboard visible $visible"); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } source = Timeout.add_seconds (LONG_TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); action_group.disconnect (signal_name); state = action_group.get_action_state ("indicator"); assert (state.lookup ("visible", "b", out visible)); stderr.printf ("visible = %s\n", visible ? "true" : "false"); assert (!visible); loop = new MainLoop (null, false); signal_name = action_group.action_state_changed["indicator"].connect ((action, state) => { loop.quit (); }); try { visible = true; Process.spawn_command_line_sync (@"gsettings set com.canonical.indicator.keyboard visible $visible"); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } source = Timeout.add_seconds (LONG_TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); action_group.disconnect (signal_name); state = action_group.get_action_state ("indicator"); assert (state.lookup ("visible", "b", out visible)); stderr.printf ("visible = %s\n", visible ? "true" : "false"); assert (visible); } public void test_update_input_source () { try { var current = 0; var sources = "[('xkb', 'us'), ('xkb', 'ca+eng'), ('xkb', 'epo'), ('ibus', 'pinyin')]"; Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources current $current"); Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources sources \"$sources\""); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } var action_group = DBusActionGroup.get ((!) _connection, "com.canonical.indicator.keyboard", "/com/canonical/indicator/keyboard"); var loop = new MainLoop (null, false); var signal_name = action_group.action_state_changed["current"].connect ((action, state) => { loop.quit (); }); action_group.list_actions (); try { var current = 1; Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources current $current"); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } var source = Timeout.add_seconds (TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); action_group.disconnect (signal_name); var state = action_group.get_action_state ("current"); var current = state.get_uint32 (); stderr.printf ("current = %u\n", current); assert (current == 1); try { string output; Process.spawn_command_line_sync ("gsettings get org.gnome.desktop.input-sources current", out output); stderr.printf ("output = \"%s\"\n", output); assert (strcmp (output, "uint32 1\n") == 0); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } loop = new MainLoop (null, false); signal_name = action_group.action_state_changed["current"].connect ((action, state) => { loop.quit (); }); try { current = 0; Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources current $current"); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } source = Timeout.add_seconds (LONG_TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); action_group.disconnect (signal_name); state = action_group.get_action_state ("current"); current = state.get_uint32 (); stderr.printf ("current = %u\n", current); assert (current == 0); try { string output; Process.spawn_command_line_sync ("gsettings get org.gnome.desktop.input-sources current", out output); stderr.printf ("output = \"%s\"\n", output); assert (strcmp (output, "uint32 0\n") == 0); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } } public void test_update_input_sources () { try { var current = 0; var sources = "[('xkb', 'us')]"; Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources current $current"); Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources sources \"$sources\""); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } var menu_model = DBusMenuModel.get ((!) _connection, "com.canonical.indicator.keyboard", "/com/canonical/indicator/keyboard/desktop"); var loop = new MainLoop (null, false); var signal_name = menu_model.items_changed.connect ((position, removed, added) => { loop.quit (); }); menu_model.get_n_items (); var source = Timeout.add_seconds (TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); menu_model.disconnect (signal_name); var menu = menu_model.get_item_link (0, Menu.LINK_SUBMENU); loop = new MainLoop (null, false); signal_name = menu.items_changed.connect ((position, removed, added) => { loop.quit (); }); menu.get_n_items (); source = Timeout.add_seconds (TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); menu.disconnect (signal_name); var section = menu.get_item_link (0, Menu.LINK_SECTION); loop = new MainLoop (null, false); signal_name = section.items_changed.connect ((position, removed, added) => { loop.quit (); }); section.get_n_items (); source = Timeout.add_seconds (TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); section.disconnect (signal_name); string label; stderr.printf ("section.get_n_items () = %d\n", section.get_n_items ()); assert (section.get_n_items () == 1); section.get_item_attribute (0, Menu.ATTRIBUTE_LABEL, "s", out label); stderr.printf ("label = \"%s\"\n", label); assert (strcmp (label, "English (US)") == 0); loop = new MainLoop (null, false); signal_name = section.items_changed.connect ((position, removed, added) => { if (section.get_n_items () == 4) { loop.quit (); } }); try { var sources = "[('xkb', 'us'), ('xkb', 'ca+eng'), ('xkb', 'epo'), ('ibus', 'pinyin')]"; Process.spawn_command_line_sync (@"gsettings set org.gnome.desktop.input-sources sources \"$sources\""); } catch (SpawnError error) { Test.message ("error: %s", error.message); Test.fail (); return; } source = Timeout.add_seconds (LONG_TIMEOUT_S, () => { loop.quit (); return true; }); loop.run (); Source.remove (source); section.disconnect (signal_name); stderr.printf ("section.get_n_items () = %d\n", section.get_n_items ()); assert (section.get_n_items () == 4); section.get_item_attribute (0, Menu.ATTRIBUTE_LABEL, "s", out label); stderr.printf ("label = \"%s\"\n", label); assert (strcmp (label, "English (US)") == 0); section.get_item_attribute (1, Menu.ATTRIBUTE_LABEL, "s", out label); stderr.printf ("label = \"%s\"\n", label); assert (strcmp (label, "English (Canada)") == 0); section.get_item_attribute (2, Menu.ATTRIBUTE_LABEL, "s", out label); stderr.printf ("label = \"%s\"\n", label); assert (strcmp (label, "Esperanto") == 0); section.get_item_attribute (3, Menu.ATTRIBUTE_LABEL, "s", out label); stderr.printf ("label = \"%s\"\n", label); assert (label.ascii_casecmp ("Pinyin") == 0); } } public int main (string[] args) { display = Environment.get_variable ("DISPLAY"); Test.init (ref args); Test.add_data_func ("/indicator-keyboard-service/activate-input-source", Fixture.create (Tests.test_activate_input_source)); Test.add_data_func ("/indicator-keyboard-service/activate-character-map", Fixture.create (Tests.test_activate_character_map)); Test.add_data_func ("/indicator-keyboard-service/activate-keyboard-layout-chart", Fixture.create (Tests.test_activate_keyboard_layout_chart)); Test.add_data_func ("/indicator-keyboard-service/activate-text-entry-settings", Fixture.create (Tests.test_activate_text_entry_settings)); Test.add_data_func ("/indicator-keyboard-service/migration", Fixture.create (Tests.test_migration)); Test.add_data_func ("/indicator-keyboard-service/no-migration", Fixture.create (Tests.test_no_migration)); Test.add_data_func ("/indicator-keyboard-service/update-visible", Fixture.create (Tests.test_update_visible)); Test.add_data_func ("/indicator-keyboard-service/update-input-source", Fixture.create (Tests.test_update_input_source)); Test.add_data_func ("/indicator-keyboard-service/update-input-sources", Fixture.create (Tests.test_update_input_sources)); return Test.run (); } indicator-keyboard-0.0.0+14.04.20140410.1/tests/config.vala.in0000644000015301777760000000023212321545543023673 0ustar pbusernogroup00000000000000const string DCONF_PROFILE = "@abs_top_builddir@/tests/profiles/indicator-keyboard-test"; const string SERVICE_DIR = "@abs_top_builddir@/tests/services"; indicator-keyboard-0.0.0+14.04.20140410.1/tests/manual0000644000015301777760000000073412321545543022363 0ustar pbusernogroup00000000000000 Test-case indicator-keyboard/unity7-items-check
Log in to a Unity 7 user session
Go to the panel and click on the Keyboard indicator
Ensure there are items in the menu
Test-case indicator-keyboard/unity7-greeter-items-check
Start a system and wait for the greeter or logout of the current user session
Go to the panel and click on the Keyboard indicator
Ensure there are items in the menu
indicator-keyboard-0.0.0+14.04.20140410.1/tests/profiles/0000755000015301777760000000000012321546061022776 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/tests/profiles/indicator-keyboard-test0000644000015301777760000000004712321545543027455 0ustar pbusernogroup00000000000000service-db:shm/indicator_keyboard_test indicator-keyboard-0.0.0+14.04.20140410.1/tests/indicator-keyboard-test.in0000644000015301777760000000056112321545543026240 0ustar pbusernogroup00000000000000#!/bin/sh export PATH="@abs_top_builddir@/tests/execute:$PATH" export DCONF_PROFILE="@abs_top_builddir@/tests/profiles/indicator-keyboard-test" export GSETTINGS_SCHEMA_DIR="@abs_top_builddir@/data" export XDG_RUNTIME_DIR="@abs_top_builddir@/tests" if xvfb-run -a ./indicator-keyboard-tests then pkill -f tests/gvfs || exit 0 else pkill -f tests/gvfs && exit 1 fi indicator-keyboard-0.0.0+14.04.20140410.1/Makefile.am.coverage0000644000015301777760000000250512321545543023645 0ustar pbusernogroup00000000000000 # Coverage targets .PHONY: clean-gcno clean-gcda \ coverage-html generate-coverage-html clean-coverage-html \ coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr if HAVE_GCOV clean-gcno: @echo Removing old coverage instrumentation -find -name '*.gcno' -print | xargs -r rm clean-gcda: @echo Removing old coverage results -find -name '*.gcda' -print | xargs -r rm coverage-html: clean-gcda -$(MAKE) $(AM_MAKEFLAGS) -k check $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html generate-coverage-html: @echo Collecting coverage data $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info clean-coverage-html: clean-gcda -$(LCOV) --directory $(top_builddir) -z -rm -rf coverage.info coveragereport if HAVE_GCOVR coverage-gcovr: clean-gcda -$(MAKE) $(AM_MAKEFLAGS) -k check $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr generate-coverage-gcovr: @echo Generating coverage GCOVR report $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml clean-coverage-gcovr: clean-gcda -rm -rf $(top_builddir)/coverage.xml endif # HAVE_GCOVR endif # HAVE_GCOV indicator-keyboard-0.0.0+14.04.20140410.1/configure.ac0000644000015301777760000000555612321545543022316 0ustar pbusernogroup00000000000000AC_PREREQ([2.69]) AC_INIT([indicator-keyboard], [0.0.0]) AC_REVISION([0.0.0]) AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([1.11 foreign serial-tests -Wall -Woverride -Wno-portability]) AM_SILENT_RULES([yes]) LT_INIT AC_PROG_CC AM_PROG_VALAC AC_PROG_LIBTOOL AC_PROG_INSTALL PKG_PROG_PKG_CONFIG([0.26]) AC_ARG_WITH([dbus-service-dir], [AS_HELP_STRING([--with-dbus-service-dir=DIR], [D-Bus service directory [default=$datadir/dbus-1/services]])], [], [with_dbus_service_dir=$datadir/dbus-1/services]) AC_ARG_WITH([indicator-dir], [AS_HELP_STRING([--with-indicator-dir=DIR], [Indicator directory [default=$datadir/unity/indicators]])], [], [with_indicator_dir=$datadir/unity/indicators]) AM_PATH_PYTHON AC_SUBST([DBUS_SERVICE_DIR], [$with_dbus_service_dir]) AC_SUBST([INDICATOR_DIR], [$with_indicator_dir]) GETTEXT_PACKAGE=indicator-keyboard AC_SUBST([GETTEXT_PACKAGE]) AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [The prefix for our gettext translation domains.]) AM_GLIB_GNU_GETTEXT IT_PROG_INTLTOOL GLIB_GSETTINGS PKG_CHECK_MODULES([GEE], [gee-1.0]) AC_SUBST([GEE_CFLAGS]) AC_SUBST([GEE_LIBS]) PKG_CHECK_MODULES([GIO], [gio-2.0]) AC_SUBST([GIO_CFLAGS]) AC_SUBST([GIO_LIBS]) PKG_CHECK_MODULES([GTK], [gtk+-3.0]) AC_SUBST([GTK_CFLAGS]) AC_SUBST([GTK_LIBS]) PKG_CHECK_MODULES([PANGOFT2], [pangoft2]) AC_SUBST([PANGOFT2_CFLAGS]) AC_SUBST([PANGOFT2_LIBS]) PKG_CHECK_MODULES([PANGOCAIRO], [pangocairo]) AC_SUBST([PANGOCAIRO_CFLAGS]) AC_SUBST([PANGOCAIRO_LIBS]) PKG_CHECK_MODULES([GNOME_DESKTOP], [gnome-desktop-3.0]) AC_SUBST([GNOME_DESKTOP_CFLAGS]) AC_SUBST([GNOME_DESKTOP_LIBS]) PKG_CHECK_MODULES([LIBXKLAVIER], [libxklavier]) AC_SUBST([LIBXKLAVIER_CFLAGS]) AC_SUBST([LIBXKLAVIER_LIBS]) PKG_CHECK_MODULES([LIBGNOMEKBD], [libgnomekbdui]) AC_SUBST([LIBGNOMEKBD_CFLAGS]) AC_SUBST([LIBGNOMEKBD_LIBS]) PKG_CHECK_MODULES([IBUS], [ibus-1.0]) AC_SUBST([IBUS_CFLAGS]) AC_SUBST([IBUS_LIBS]) PKG_CHECK_MODULES([ACCOUNTSSERVICE], [accountsservice]) AC_SUBST([ACCOUNTSSERVICE_CFLAGS]) AC_SUBST([ACCOUNTSSERVICE_LIBS]) PKG_CHECK_MODULES([LIGHTDM], [liblightdm-gobject-1]) AC_SUBST([LIGHTDM_CFLAGS]) AC_SUBST([LIGHTDM_LIBS]) m4_include([m4/gcov.m4]) AC_TDD_GCOV AM_CONDITIONAL([HAVE_GCOV], [test "x$ac_cv_check_gcov" = xyes]) AM_CONDITIONAL([HAVE_LCOV], [test "x$ac_cv_check_lcov" = xyes]) AM_CONDITIONAL([HAVE_GCOVR], [test "x$ac_cv_check_gcovr" = xyes]) AC_SUBST(COVERAGE_CFLAGS) AC_SUBST(COVERAGE_CXXFLAGS) AC_SUBST(COVERAGE_LDFLAGS) AC_CONFIG_FILES([Makefile data/Makefile lib/Makefile po/Makefile.in tests/Makefile tests/autopilot/Makefile tests/config.vala tests/services/indicator-keyboard.service]) AC_CONFIG_FILES([tests/indicator-keyboard-test], [chmod +x tests/indicator-keyboard-test]) AC_OUTPUT indicator-keyboard-0.0.0+14.04.20140410.1/data/0000755000015301777760000000000012321546061020722 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/data/Makefile.am0000644000015301777760000001026112321545562022763 0ustar pbusernogroup00000000000000noinst_PROGRAMS = indicator-keyboard-icon-generator AM_CFLAGS = -w -DGNOME_DESKTOP_USE_UNSTABLE_API AM_LDFLAGS = -lm AM_VALAFLAGS = --enable-experimental-non-null \ --metadatadir $(top_srcdir)/deps \ --vapidir $(top_srcdir)/deps indicator_keyboard_icon_generator_SOURCES = main.vala \ $(top_srcdir)/lib/common.vala indicator_keyboard_icon_generator_VALAFLAGS = $(AM_VALAFLAGS) \ --pkg gee-1.0 \ --pkg fontconfig \ --pkg freetype2 \ --pkg pangoft2 \ --pkg gtk+-3.0 \ --pkg GDesktopEnums-3.0 \ --pkg gnome-desktop-3.0 \ --pkg Xkl-1.0 indicator_keyboard_icon_generator_CFLAGS = $(AM_CFLAGS) \ $(GEE_CFLAGS) \ $(PANGOFT2_CFLAGS) \ $(GTK_CFLAGS) \ $(GNOME_DESKTOP_CFLAGS) \ $(LIBXKLAVIER_CFLAGS) \ $(COVERAGE_CFLAGS) indicator_keyboard_icon_generator_LDFLAGS = $(AM_LDFLAGS) \ $(GEE_LIBS) \ $(PANGOFT2_LIBS) \ $(GTK_LIBS) \ $(GNOME_DESKTOP_LIBS) \ $(LIBXKLAVIER_LIBS) \ $(COVERAGE_LDFLAGS) dist_service_DATA = indicator-keyboard.service servicedir = $(DBUS_SERVICE_DIR) indicator-keyboard.service: $(AM_V_GEN) (echo '[D-BUS Service]'; \ echo 'Name=com.canonical.indicator.keyboard'; \ echo 'Exec=${libexecdir}/indicator-keyboard-service --use-gtk') > $@.tmp && \ mv $@.tmp $@ dist_indicator_DATA = com.canonical.indicator.keyboard indicatordir = $(INDICATOR_DIR) com.canonical.indicator.keyboard: $(AM_V_GEN) (echo '[Indicator Service]'; \ echo 'Name=indicator-keyboard'; \ echo 'ObjectPath=/com/canonical/indicator/keyboard'; \ echo 'Position=80'; \ echo ''; \ echo '[desktop]'; \ echo 'ObjectPath=/com/canonical/indicator/keyboard/desktop'; \ echo ''; \ echo '[desktop_greeter]'; \ echo 'ObjectPath=/com/canonical/indicator/keyboard/desktop_greeter'; \ echo ''; \ echo '[desktop_lockscreen]'; \ echo 'ObjectPath=/com/canonical/indicator/keyboard/desktop_lockscreen'; \ echo ''; \ echo '[ubiquity]'; \ echo 'ObjectPath=/com/canonical/indicator/keyboard/desktop') > $@.tmp && \ mv $@.tmp $@ gsettings_SCHEMAS = com.canonical.indicator.keyboard.gschema.xml @GSETTINGS_RULES@ check_DATA = gschemas.compiled gschemas.compiled: $(gsettings_SCHEMAS) $(GLIB_COMPILE_SCHEMAS) --strict . EXTRA_DIST = $(dist_service_DATA) \ $(dist_indicator_DATA) \ $(gsettings_SCHEMAS) indicator-keyboard-0.0.0+14.04.20140410.1/data/icon.svg.in0000644000015301777760000000063712321545543023012 0ustar pbusernogroup00000000000000@LAYOUT@ indicator-keyboard-0.0.0+14.04.20140410.1/data/com.canonical.indicator.keyboard.gschema.xml0000644000015301777760000000114012321545543031330 0ustar pbusernogroup00000000000000 Keyboard layouts migrated True if keyboard layouts were migrated, false otherwise. false Keyboard indicator visibility True if the keyboard indicator is shown, false otherwise. true indicator-keyboard-0.0.0+14.04.20140410.1/data/icon-1.svg.in0000644000015301777760000000077712321545543023155 0ustar pbusernogroup00000000000000@LAYOUT@@SUBSCRIPT@ indicator-keyboard-0.0.0+14.04.20140410.1/data/main.vala0000644000015301777760000002342312321545543022523 0ustar pbusernogroup00000000000000/* * Copyright 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ int main (string[] args) { var force = false; var width = 22.0; var height = 22.0; var icon_width = 20.0; var icon_height = 20.0; var radius = 2.0; var colour = "black"; var font = "Ubuntu"; var weight = 500; var layout_size = 12; var subscript_size = 8; string? output_path = null; string? no_subscript_path = null; string? with_subscript_path = null; OptionEntry[] options = new OptionEntry[15]; options[0] = { "force", 'f', 0, OptionArg.NONE, ref force, "Overwrite existing files" }; options[1] = { "width", 'w', 0, OptionArg.DOUBLE, ref width, "Template width", "DOUBLE" }; options[2] = { "height", 'h', 0, OptionArg.DOUBLE, ref height, "Template height", "DOUBLE" }; options[3] = { "icon-width", 'W', 0, OptionArg.DOUBLE, ref icon_width, "Icon width", "DOUBLE" }; options[4] = { "icon-height", 'H', 0, OptionArg.DOUBLE, ref icon_height, "Icon height", "DOUBLE" }; options[5] = { "radius", 'r', 0, OptionArg.DOUBLE, ref radius, "Icon radius", "DOUBLE" }; options[6] = { "colour", 'c', 0, OptionArg.STRING, ref colour, "Icon colour", "COLOUR" }; options[7] = { "font", 'F', 0, OptionArg.STRING, ref font, "Font family", "NAME" }; options[8] = { "weight", 'G', 0, OptionArg.INT, ref weight, "Font weight (100 to 1000)", "INT" }; options[9] = { "layout-size", 's', 0, OptionArg.INT, ref layout_size, "Layout font size", "INT" }; options[10] = { "subscript-size", 'S', 0, OptionArg.INT, ref subscript_size, "Subscript font size", "INT" }; options[11] = { "output", 'o', 0, OptionArg.FILENAME, ref output_path, "Output directory", "PATH" }; options[12] = { "no-subscript", 'i', 0, OptionArg.FILENAME, ref no_subscript_path, "Icon template", "PATH" }; options[13] = { "with-subscript", 'I', 0, OptionArg.FILENAME, ref with_subscript_path, "Subscript icon template", "PATH" }; options[14] = { }; try { var context = new OptionContext ("- generate keyboard layout icons"); context.add_main_entries (options, null); context.set_help_enabled (true); context.parse (ref args); } catch (OptionError error) { GLib.error ("error: %s", error.message); } if (no_subscript_path == null && with_subscript_path == null) { error ("error: No icon template"); } else if (no_subscript_path == null) { no_subscript_path = with_subscript_path; } else if (with_subscript_path == null) { with_subscript_path = no_subscript_path; } if (output_path != null) { var file = File.new_for_path ((!) output_path); if (!file.query_exists (null)) { try { file.make_directory_with_parents (null); } catch (Error error) { GLib.error ("error: %s", error.message); } } } else { output_path = "."; } Gtk.init (ref args); var info = new Gnome.XkbInfo (); var layouts = info.get_all_layouts (); var occurrences = new Gee.HashMap (); layouts.foreach ((name) => { string? short_name; info.get_layout_info (name, null, out short_name, null, null); var abbreviation = abbreviate (short_name); var has_abbreviation = abbreviation != null && ((!) abbreviation).get_char () != '\0'; if (has_abbreviation) { if (!occurrences.has_key ((!) abbreviation)) { occurrences[(!) abbreviation] = 1; } else { occurrences[(!) abbreviation] = occurrences[(!) abbreviation] + 1; } } }); string no_subscript_data; string with_subscript_data; try { uint8[] contents; var icon_x = 0.5 * (width - icon_width); var icon_y = 0.5 * (height - icon_height); var layout_font = @"font-family:$font;font-weight:$weight;font-size:$layout_size"; var subscript_font = @"font-family:$font;font-weight:$weight;font-size:$subscript_size"; File.new_for_path ((!) no_subscript_path).load_contents (null, out contents, null); no_subscript_data = (string) contents; no_subscript_data = no_subscript_data.replace ("@WIDTH@", @"$width"); no_subscript_data = no_subscript_data.replace ("@HEIGHT@", @"$height"); no_subscript_data = no_subscript_data.replace ("@ICON_X@", @"$icon_x"); no_subscript_data = no_subscript_data.replace ("@ICON_Y@", @"$icon_y"); no_subscript_data = no_subscript_data.replace ("@ICON_WIDTH@", @"$icon_width"); no_subscript_data = no_subscript_data.replace ("@ICON_HEIGHT@", @"$icon_height"); no_subscript_data = no_subscript_data.replace ("@RADIUS@", @"$radius"); no_subscript_data = no_subscript_data.replace ("@COLOUR@", colour); no_subscript_data = no_subscript_data.replace ("@LAYOUT_FONT@", layout_font); no_subscript_data = no_subscript_data.replace ("@SUBSCRIPT_FONT@", subscript_font); File.new_for_path ((!) with_subscript_path).load_contents (null, out contents, null); with_subscript_data = (string) contents; with_subscript_data = with_subscript_data.replace ("@WIDTH@", @"$width"); with_subscript_data = with_subscript_data.replace ("@HEIGHT@", @"$height"); with_subscript_data = with_subscript_data.replace ("@ICON_X@", @"$icon_x"); with_subscript_data = with_subscript_data.replace ("@ICON_Y@", @"$icon_y"); with_subscript_data = with_subscript_data.replace ("@ICON_WIDTH@", @"$icon_width"); with_subscript_data = with_subscript_data.replace ("@ICON_HEIGHT@", @"$icon_height"); with_subscript_data = with_subscript_data.replace ("@RADIUS@", @"$radius"); with_subscript_data = with_subscript_data.replace ("@COLOUR@", colour); with_subscript_data = with_subscript_data.replace ("@LAYOUT_FONT@", layout_font); with_subscript_data = with_subscript_data.replace ("@SUBSCRIPT_FONT@", subscript_font); } catch (Error error) { GLib.error ("error: %s", error.message); } var font_map = new PangoFT2.FontMap (); var layout_layout = new Pango.Layout (font_map.create_context ()); var subscript_layout = new Pango.Layout (font_map.create_context ()); var font_description = new Pango.FontDescription (); font_description.set_family (font); font_description.set_weight ((Pango.Weight) weight); font_description.set_size (layout_size * Pango.SCALE); layout_layout.set_font_description (font_description); font_description = new Pango.FontDescription (); font_description.set_family (font); font_description.set_weight ((Pango.Weight) weight); font_description.set_size (subscript_size * Pango.SCALE); subscript_layout.set_font_description (font_description); foreach (var entry in occurrences.entries) { var layout = entry.key; var count = entry.value; var file = File.new_for_path (@"$((!) output_path)/indicator-keyboard-$layout.svg"); if (force || !file.query_exists (null)) { int layout_width; int layout_height; layout_layout.set_text (layout, -1); layout_layout.get_size (out layout_width, out layout_height); var layout_baseline = layout_layout.get_baseline (); var layout_x = 0.5 * (width - 1.0 * layout_width / Pango.SCALE); var layout_y = 0.5 * (height - 1.0 * layout_height / Pango.SCALE) + 1.0 * layout_baseline / Pango.SCALE; var output_data = no_subscript_data; output_data = output_data.replace ("@LAYOUT@", layout); output_data = output_data.replace ("@LAYOUT_X@", @"$layout_x"); output_data = output_data.replace ("@LAYOUT_Y@", @"$layout_y"); output_data = output_data.replace ("@SUBSCRIPT@", ""); output_data = output_data.replace ("@SUBSCRIPT_X@", "0"); output_data = output_data.replace ("@SUBSCRIPT_Y@", "0"); try { file.replace_contents (output_data.data, null, false, FileCreateFlags.REPLACE_DESTINATION, null, null); } catch (Error error) { GLib.error ("error: %s", error.message); } } if (count > 1) { int layout_width; int layout_height; layout_layout.set_text (layout, -1); layout_layout.get_size (out layout_width, out layout_height); var layout_baseline = layout_layout.get_baseline (); var layout_y = 0.5 * (height - 1.0 * layout_height / Pango.SCALE) + 1.0 * layout_baseline / Pango.SCALE; var partial_data = with_subscript_data; partial_data = partial_data.replace ("@LAYOUT@", layout); partial_data = partial_data.replace ("@LAYOUT_Y@", @"$layout_y"); for (var i = 1; i <= count; i++) { file = File.new_for_path (@"$((!) output_path)/indicator-keyboard-$layout-$i.svg"); if (force || !file.query_exists (null)) { var subscript = @"$i"; int subscript_width; int subscript_height; subscript_layout.set_text (subscript, -1); subscript_layout.get_size (out subscript_width, out subscript_height); var subscript_baseline = subscript_layout.get_baseline (); var layout_x = 0.5 * (width - 1.0 * (layout_width + subscript_width) / Pango.SCALE); var subscript_x = layout_x + 1.0 * layout_width / Pango.SCALE; var subscript_y = layout_y - 0.5 * subscript_height / Pango.SCALE + 1.0 * subscript_baseline / Pango.SCALE; var output_data = partial_data; output_data = output_data.replace ("@LAYOUT_X@", @"$layout_x"); output_data = output_data.replace ("@LAYOUT_Y@", @"$layout_y"); output_data = output_data.replace ("@SUBSCRIPT@", subscript); output_data = output_data.replace ("@SUBSCRIPT_X@", @"$subscript_x"); output_data = output_data.replace ("@SUBSCRIPT_Y@", @"$subscript_y"); try { file.replace_contents (output_data.data, null, false, FileCreateFlags.REPLACE_DESTINATION, null, null); } catch (Error error) { GLib.error ("error: %s", error.message); } } } } } return 0; } indicator-keyboard-0.0.0+14.04.20140410.1/NEWS0000644000015301777760000000000012321545543020502 0ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/INSTALL0000644000015301777760000000000012321545543021034 0ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/po/0000755000015301777760000000000012321546061020427 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/po/fa.po0000644000015301777760000000212212321545543021356 0ustar pbusernogroup00000000000000# Persian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-11-01 05:30+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Persian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s منبع ورودی" #: ../lib/main.vala:824 msgid "Character Map" msgstr "نقشه‌ی نویسه‌ها" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "نمودار چینش صفحه‌کلید" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "تنظیمات ورودی متن…" indicator-keyboard-0.0.0+14.04.20140410.1/po/kn.po0000644000015301777760000000217412321545543021407 0ustar pbusernogroup00000000000000# Kannada translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-16 11:18+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Kannada \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "" #: ../lib/main.vala:824 msgid "Character Map" msgstr "ಅಕ್ಷರ ನಕ್ಷೆ" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "ಕೀಲಿಮಣೆ ವಿನ್ಯಾಸ ಪಟ್ಟಿ" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "ಪಠ್ಯ ನಮೂದಿಸುವ ಸಂಯೋಜನೆಗಳು ..." indicator-keyboard-0.0.0+14.04.20140410.1/po/lv.po0000644000015301777760000000206112321545543021413 0ustar pbusernogroup00000000000000# Latvian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-03 15:03+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Latvian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s ievades avots" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Rakstzīmju tabula" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Klaviatūras Izkārtojuma Tabula" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Teksta Ievades Iestatījumi..." indicator-keyboard-0.0.0+14.04.20140410.1/po/ko.po0000644000015301777760000000203212321545543021401 0ustar pbusernogroup00000000000000# Korean translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-01 10:55+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Korean \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "입력 소스 %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "문자 표" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "키보드 배치 표" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "텍스트 입력창 설정..." indicator-keyboard-0.0.0+14.04.20140410.1/po/zh_CN.po0000644000015301777760000000205512321545543021776 0ustar pbusernogroup00000000000000# Chinese (Simplified) translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-03 12:50+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Chinese (Simplified) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s 输入源" #: ../lib/main.vala:824 msgid "Character Map" msgstr "字符映射表" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "键盘布局图" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "文本输入设置..." indicator-keyboard-0.0.0+14.04.20140410.1/po/it.po0000644000015301777760000000207612321545543021414 0ustar pbusernogroup00000000000000# Italian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-12 11:02+0000\n" "Last-Translator: Milo Casagrande \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Sorgente di input %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Tabella caratteri" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Disposizione tastiera" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Impostazioni inserimento testo..." indicator-keyboard-0.0.0+14.04.20140410.1/po/en_CA.po0000644000015301777760000000205112321545543021736 0ustar pbusernogroup00000000000000# English (Canada) translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-12 10:07+0000\n" "Last-Translator: William Hua \n" "Language-Team: English (Canada) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s input source" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Character Map" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Keyboard Layout Chart" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Text Entry Settings..." indicator-keyboard-0.0.0+14.04.20140410.1/po/es.po0000644000015301777760000000210312321545543021376 0ustar pbusernogroup00000000000000# Spanish translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2014-02-26 21:59+0000\n" "Last-Translator: Adolfo Jayme \n" "Language-Team: Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Fuente de entrada %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa de caracteres" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Ver distribución del teclado" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Configuración de entrada de texto…" indicator-keyboard-0.0.0+14.04.20140410.1/po/bg.po0000644000015301777760000000221712321545543021365 0ustar pbusernogroup00000000000000# Bulgarian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-11-13 14:40+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Bulgarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Входен източник %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Таблица със знаци" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Схема на клавиатурната подредба" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Параметри за въвеждане на текста..." indicator-keyboard-0.0.0+14.04.20140410.1/po/ro.po0000644000015301777760000000207712321545543021421 0ustar pbusernogroup00000000000000# Romanian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-30 07:42+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Romanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s sursă de intrare" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Hartă caractere" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Element grafic pentru harta de caractere" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Configurări introducere text..." indicator-keyboard-0.0.0+14.04.20140410.1/po/POTFILES.skip0000644000015301777760000000004012321545543022542 0ustar pbusernogroup00000000000000lib/main.c lib/indicator-menu.c indicator-keyboard-0.0.0+14.04.20140410.1/po/sr.po0000644000015301777760000000221212321545543021414 0ustar pbusernogroup00000000000000# Serbian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-06-21 11:10+0000\n" "Last-Translator: Иван Благојевић \n" "Language-Team: Serbian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s извор уноса" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Таблица знакова" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Графикон распореда тастатуре" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Подешавања уноса текста..." indicator-keyboard-0.0.0+14.04.20140410.1/po/mhr.po0000644000015301777760000000210312321545543021555 0ustar pbusernogroup00000000000000# Mari (Meadow) translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-12-10 07:43+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Mari (Meadow) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Ӱжвата-влак" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Полдышоҥа Радам График" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Текстым Келыштараш..." indicator-keyboard-0.0.0+14.04.20140410.1/po/uk.po0000644000015301777760000000217712321545543021421 0ustar pbusernogroup00000000000000# Ukrainian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-27 17:20+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Ukrainian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Джерело введення %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Таблиця символів" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Таблиця розкладки клавіатури" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Параметри введення тексту…" indicator-keyboard-0.0.0+14.04.20140410.1/po/br.po0000644000015301777760000000206012321545543021374 0ustar pbusernogroup00000000000000# Breton translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-11-07 15:08+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Breton \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s orin ar gasadenn" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Kartenn al letrennoù" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Neuz aozadur ar c'hlavier" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Arventennoù ar reiñ testennoù" indicator-keyboard-0.0.0+14.04.20140410.1/po/sv.po0000644000015301777760000000205412321545543021424 0ustar pbusernogroup00000000000000# Swedish translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-30 08:08+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s inmatningskälla" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Teckenuppsättning" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Tangentbordsschema" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Inställningar för textinmatning..." indicator-keyboard-0.0.0+14.04.20140410.1/po/zh_HK.po0000644000015301777760000000205612321545543022001 0ustar pbusernogroup00000000000000# Chinese (Hong Kong) translation for indicator-keyboard # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2014-01-26 14:12+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Chinese (Hong Kong) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s 輸入來源" #: ../lib/main.vala:824 msgid "Character Map" msgstr "字元對應表" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "鍵盤佈局圖" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "文本輸入設定..." indicator-keyboard-0.0.0+14.04.20140410.1/po/id.po0000644000015301777760000000205212321545543021366 0ustar pbusernogroup00000000000000# Indonesian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-11-12 16:23+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Indonesian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s sumber masukan" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Peta Karakter" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Bagan Tata Letak Papan Ketik" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Pengaturan Pemasukan Teks" indicator-keyboard-0.0.0+14.04.20140410.1/po/ja.po0000644000015301777760000000206012321545543021363 0ustar pbusernogroup00000000000000# Japanese translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-29 07:25+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Japanese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s 入力ソース" #: ../lib/main.vala:824 msgid "Character Map" msgstr "文字マップ" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "キーボードレイアウト表" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "テキスト入力設定..." indicator-keyboard-0.0.0+14.04.20140410.1/po/oc.po0000644000015301777760000000210512321545543021372 0ustar pbusernogroup00000000000000# Occitan (post 1500) translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-02 06:07+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Occitan (post 1500) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Agençament : %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Taula de caractèrs" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Representacion de l'agençament" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Paramètres d'agençament" indicator-keyboard-0.0.0+14.04.20140410.1/po/si.po0000644000015301777760000000200012321545543021376 0ustar pbusernogroup00000000000000# Sinhalese translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-31 17:57+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Sinhalese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s ආදාන මූලාශ්‍රය" #: ../lib/main.vala:824 msgid "Character Map" msgstr "" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "" indicator-keyboard-0.0.0+14.04.20140410.1/po/nl.po0000644000015301777760000000204212321545543021402 0ustar pbusernogroup00000000000000# Dutch translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-30 07:20+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s invoerbron" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Tekens en symbolen" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Toetsenbordindelingoverzicht" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Tekstinvoerinstellingen…" indicator-keyboard-0.0.0+14.04.20140410.1/po/pa.po0000644000015301777760000000215512321545543021376 0ustar pbusernogroup00000000000000# Punjabi translation for indicator-keyboard # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2014-02-02 00:07+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Punjabi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s ਇੰਪੁੱਟ ਗਲਤੀ" #: ../lib/main.vala:824 msgid "Character Map" msgstr "ਅੱਖਰ ਖਾਕਾ" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "ਕੀਬੋਰਡ ਖਾਕਾ ਚਾਰਟ" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "ਟੈਕਸਟ ਐਂਟਰੀ ਸੈਟਿੰਗ..." indicator-keyboard-0.0.0+14.04.20140410.1/po/tr.po0000644000015301777760000000204612321545543021422 0ustar pbusernogroup00000000000000# Turkish translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-28 21:34+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Turkish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s girdi kaynağı" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Karakter Haritası" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Klavye Düzeni Şeması" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Metin Girdisi Ayarları..." indicator-keyboard-0.0.0+14.04.20140410.1/po/sq.po0000644000015301777760000000206312321545543021417 0ustar pbusernogroup00000000000000# Albanian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-28 13:40+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Albanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s burim hyrjeje" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Harta e Simboleve" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Harta e Daljes së Tastierës" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Parametrat e Hyrjes së Tekstit..." indicator-keyboard-0.0.0+14.04.20140410.1/po/ug.po0000644000015301777760000000220612321545543021406 0ustar pbusernogroup00000000000000# Uyghur translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-30 06:50+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Uyghur \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s كىرگۈزۈش مەنبەسى" #: ../lib/main.vala:824 msgid "Character Map" msgstr "ھەرپ-بەلگە جەدۋىلى" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "ھەرپتاختا ئورۇنلاشتۇرۇش كۆرۈنۈشى" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "تېكىست كىرگۈزۈش تەڭشەكلىرى…" indicator-keyboard-0.0.0+14.04.20140410.1/po/fr_CA.po0000644000015301777760000000211512321545543021744 0ustar pbusernogroup00000000000000# French (Canada) translation for indicator-keyboard # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2014-01-29 20:20+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: French (Canada) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s source d'entrée" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Table de caractères" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Affichage de l'agencement du clavier" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Paramètres de saisie de texte" indicator-keyboard-0.0.0+14.04.20140410.1/po/pl.po0000644000015301777760000000205512321545543021410 0ustar pbusernogroup00000000000000# Polish translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-13 13:52+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Polish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s metoda wprowadzania" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa znaków" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Tabela układów klawiatury" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Ustawienia wprowadzanie tekstu..." indicator-keyboard-0.0.0+14.04.20140410.1/po/am.po0000644000015301777760000000214312321545543021370 0ustar pbusernogroup00000000000000# Amharic translation for indicator-keyboard # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2014-01-18 22:57+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Amharic \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s የማስገቢያ ምንጭ" #: ../lib/main.vala:824 msgid "Character Map" msgstr "የባህሪ ካርታ" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "የፊደል ገበታ እቅድ ካርታ" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "የ ጽሁፍ ማስገቢያ ማሰናጃዎች..." indicator-keyboard-0.0.0+14.04.20140410.1/po/de.po0000644000015301777760000000204512321545543021364 0ustar pbusernogroup00000000000000# German translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-28 11:11+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: German \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s-Eingabequelle" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Zeichentabelle" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Abbild der Tastaturbelegung" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Texteingabe-Einstellungen …" indicator-keyboard-0.0.0+14.04.20140410.1/po/da.po0000644000015301777760000000204212321545543021355 0ustar pbusernogroup00000000000000# Danish translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-28 10:32+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Danish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s-inputkilde" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Tegnoversigt" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Oversigt over tastaturlayout" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Indstillinger for tekstfelt..." indicator-keyboard-0.0.0+14.04.20140410.1/po/ca.po0000644000015301777760000000207312321545543021360 0ustar pbusernogroup00000000000000# Catalan translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-19 10:24+0000\n" "Last-Translator: David Planella \n" "Language-Team: Catalan \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Font d'entrada %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa de caràcters" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Disposició del teclat" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Paràmetres d'entrada de text…" indicator-keyboard-0.0.0+14.04.20140410.1/po/et.po0000644000015301777760000000204312321545543021402 0ustar pbusernogroup00000000000000# Estonian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-28 15:17+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Estonian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s sisendallikas" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Märgikaart" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Klaviatuuripaigutuse skeem" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Tekstisisestamise seaded..." indicator-keyboard-0.0.0+14.04.20140410.1/po/en_AU.po0000644000015301777760000000206312321545543021763 0ustar pbusernogroup00000000000000# English (Australia) translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-07 23:11+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: English (Australia) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s input source" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Character Map" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Keyboard Layout Chart" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Text Entry Settings..." indicator-keyboard-0.0.0+14.04.20140410.1/po/ml.po0000644000015301777760000000232712321545543021407 0ustar pbusernogroup00000000000000# Malayalam translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-12-29 06:40+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Malayalam \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s ഇന്‍പുട്ട് ഉറവിടം" #: ../lib/main.vala:824 msgid "Character Map" msgstr "അക്ഷരങ്ങളുടെ പട്ടിക" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "കീബോഡ് ലേയൗട്ട് പട്ടിക" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "പദാവലി നല്‍കല്‍ സജ്ജീകരണങ്ങള്‍..." indicator-keyboard-0.0.0+14.04.20140410.1/po/gd.po0000644000015301777760000000211112321545543021360 0ustar pbusernogroup00000000000000# Gaelic; Scottish translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-30 10:02+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Gaelic; Scottish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Tùs ion-chur %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa nan caractaran" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Cairt co-dhealbhachd a' mheur-chlàir" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Roghainnean ion-chur teacsa..." indicator-keyboard-0.0.0+14.04.20140410.1/po/sl.po0000644000015301777760000000205012321545543021406 0ustar pbusernogroup00000000000000# Slovenian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-27 18:24+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Slovenian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s vir vnosa" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Preglednica znakov" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Prikaz razporeditve tipk" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Nastavitve vnosa besedila ..." indicator-keyboard-0.0.0+14.04.20140410.1/po/ta.po0000644000015301777760000000222212321545543021375 0ustar pbusernogroup00000000000000# Tamil translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-25 01:48+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Tamil \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s உள்ளீடு மூலம்" #: ../lib/main.vala:824 msgid "Character Map" msgstr "எழுத்து வரைபடம்" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "விசைப்பலகை வரைபடம்" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "உரை நுழைவு அமைப்புகள்..." indicator-keyboard-0.0.0+14.04.20140410.1/po/be.po0000644000015301777760000000172712321545543021370 0ustar pbusernogroup00000000000000# Belarusian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-14 10:04+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Belarusian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "" #: ../lib/main.vala:824 msgid "Character Map" msgstr "" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "" indicator-keyboard-0.0.0+14.04.20140410.1/po/ast.po0000644000015301777760000000206612321545543021566 0ustar pbusernogroup00000000000000# Asturian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-03 15:38+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Asturian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Orixe d'entrada %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa de caráuteres" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Distribución del tecláu" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Configuración d'entrada de testu…" indicator-keyboard-0.0.0+14.04.20140410.1/po/Makefile.in.in0000644000015301777760000001604612321545543023114 0ustar pbusernogroup00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # Copyright (C) 2004-2008 Rodney Dawes # # This file may be copied and used freely without restrictions. It may # be used in projects which are not available under a GNU Public License, # but which still want to provide support for the GNU gettext functionality. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize # # - Modified by Rodney Dawes for use with intltool # # We have the following line for use by intltoolize: # INTLTOOL_MAKEFILE GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ datarootdir = @datarootdir@ libdir = @libdir@ DATADIRNAME = @DATADIRNAME@ itlocaledir = $(prefix)/$(DATADIRNAME)/locale subdir = po install_sh = @install_sh@ # Automake >= 1.8 provides @mkdir_p@. # Until it can be supposed, use the safe fallback: mkdir_p = $(install_sh) -d INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot ALL_LINGUAS = @ALL_LINGUAS@ PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi) USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) DISTFILES = Makefile.in.in POTFILES.in $(POFILES) EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS POTFILES = \ # This comment gets stripped out CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) .SUFFIXES: .SUFFIXES: .po .pox .gmo .mo .msg .cat AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V)) INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY)) INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@; .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $< .po.gmo: $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && gencat $@ $*.msg all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: $(GETTEXT_PACKAGE).pot: $(POTFILES) $(GENPOT) install: install-data install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $$dir; \ if test -r $$lang.gmo; then \ $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \ else \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $(srcdir)/$$lang.gmo as" \ "$$dir/$(GETTEXT_PACKAGE).mo"; \ fi; \ if test -r $$lang.gmo.m; then \ $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ if test -r $(srcdir)/$$lang.gmo.m ; then \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \ $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $(srcdir)/$$lang.gmo.m as" \ "$$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ true; \ fi; \ fi; \ done # Empty stubs to satisfy archaic automake needs dvi info ctags tags CTAGS TAGS ID: # Define this as empty until I found a useful application. install-exec installcheck: uninstall: linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ done check: all $(GETTEXT_PACKAGE).pot rm -f missing notexist srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m if [ -r missing -o -r notexist ]; then \ exit 1; \ fi mostlyclean: rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp rm -f .intltool-merge-cache clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES stamp-it rm -f *.mo *.msg *.cat *.cat.m *.gmo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f Makefile.in.in distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(DISTFILES) dists="$(DISTFILES)"; \ extra_dists="$(EXTRA_DISTFILES)"; \ for file in $$extra_dists; do \ test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \ done; \ for file in $$dists; do \ test -f $$file || file="$(srcdir)/$$file"; \ ln $$file $(distdir) 2> /dev/null \ || cp -p $$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ echo "$$lang:"; \ result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ if $$result; then \ if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.gmo failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done Makefile POTFILES: stamp-it @if test ! -f $@; then \ rm -f stamp-it; \ $(MAKE) stamp-it; \ fi stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: indicator-keyboard-0.0.0+14.04.20140410.1/po/zh_TW.po0000644000015301777760000000206212321545543022026 0ustar pbusernogroup00000000000000# Chinese (Traditional) translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-14 14:50+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Chinese (Traditional) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s 輸入來源" #: ../lib/main.vala:824 msgid "Character Map" msgstr "字元對應表" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "鍵盤配置圖" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "文字輸入設定..." indicator-keyboard-0.0.0+14.04.20140410.1/po/nb.po0000644000015301777760000000206612321545543021376 0ustar pbusernogroup00000000000000# Norwegian Bokmal translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-07 09:55+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Norwegian Bokmal \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s inndatakilde" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Tegnkart" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Kart over tastaturoppsett" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Innstillinger for tekstskriving …" indicator-keyboard-0.0.0+14.04.20140410.1/po/ne.po0000644000015301777760000000221212321545543021372 0ustar pbusernogroup00000000000000# Nepali translation for indicator-keyboard # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2014-01-08 09:58+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Nepali \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s इनपुट स्रोत" #: ../lib/main.vala:824 msgid "Character Map" msgstr "चरित्र नक्शा" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "कुञ्जीपाटी लेआउट चार्ट" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "पाठ प्रविष्टि सेटिङ ..." indicator-keyboard-0.0.0+14.04.20140410.1/po/indicator-keyboard.pot0000644000015301777760000000154412321545562024736 0ustar pbusernogroup00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2014-04-05 11:53+1300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: ../lib/main.vala:706 #, c-format msgid "%s input source" msgstr "" #: ../lib/indicator-menu.vala:48 msgid "Character Map" msgstr "" #: ../lib/indicator-menu.vala:49 msgid "Keyboard Layout Chart" msgstr "" #: ../lib/indicator-menu.vala:50 msgid "Text Entry Settings..." msgstr "" indicator-keyboard-0.0.0+14.04.20140410.1/po/en_GB.po0000644000015301777760000000207512321545543021751 0ustar pbusernogroup00000000000000# English (United Kingdom) translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-29 15:56+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: English (United Kingdom) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s input source" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Character Map" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Keyboard Layout Chart" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Text Entry Settings..." indicator-keyboard-0.0.0+14.04.20140410.1/po/cs.po0000644000015301777760000000204412321545543021400 0ustar pbusernogroup00000000000000# Czech translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-08 06:34+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Czech \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s vstupní zdroj" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa znaků" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Mapa rozložení klávesnice" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Nastavení zadávání textu..." indicator-keyboard-0.0.0+14.04.20140410.1/po/mr.po0000644000015301777760000000221612321545543021412 0ustar pbusernogroup00000000000000# Marathi translation for indicator-keyboard # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2014-01-07 01:54+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Marathi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s मजकूर प्रवेशाचे उगम" #: ../lib/main.vala:824 msgid "Character Map" msgstr "अक्षर नकाशा" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "कळफलकाचा तक्ता" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "मजकूर प्रवेशाचे नेपथ्य" indicator-keyboard-0.0.0+14.04.20140410.1/po/ar.po0000644000015301777760000000212412321545543021374 0ustar pbusernogroup00000000000000# Arabic translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-10 03:47+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Arabic \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "مصدر الإدخال %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "خريطة المحارف" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "رسمة تخطيط لوحة المفاتيح" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "إعدادات إدخال النص..." indicator-keyboard-0.0.0+14.04.20140410.1/po/fi.po0000644000015301777760000000204012321545543021365 0ustar pbusernogroup00000000000000# Finnish translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-03 09:43+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Finnish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Syötelähde %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Merkkikartta" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Näppäimistön asettelu" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Tekstisyötteen asetukset..." indicator-keyboard-0.0.0+14.04.20140410.1/po/eu.po0000644000015301777760000000204512321545543021405 0ustar pbusernogroup00000000000000# Basque translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-01 20:51+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Basque \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s sarrera-iturria" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Karaktere-mapa" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Teklatuaren diseinuaren mapa" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Testu-sarreraren ezarpenak" indicator-keyboard-0.0.0+14.04.20140410.1/po/lt.po0000644000015301777760000000210012321545543021403 0ustar pbusernogroup00000000000000# Lithuanian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-08-30 14:47+0000\n" "Last-Translator: Aurimas Fišeras \n" "Language-Team: Lithuanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s įvesties šaltinis" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Simbolių lentelė" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Klaviatūros klavišų išdėstymas" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Teksto įvedimo nustatymai..." indicator-keyboard-0.0.0+14.04.20140410.1/po/POTFILES.in0000644000015301777760000000014112321545543022204 0ustar pbusernogroup00000000000000# List of source files which contain translatable strings. lib/main.vala lib/indicator-menu.vala indicator-keyboard-0.0.0+14.04.20140410.1/po/az.po0000644000015301777760000000207412321545543021410 0ustar pbusernogroup00000000000000# Azerbaijani translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-12 21:01+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Azerbaijani \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s giriş mənbəyi" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Simvol Xəritəsi" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Klaviatura Düzümü Qrafiki" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Mətn Daxiletmə Seçənəkləri..." indicator-keyboard-0.0.0+14.04.20140410.1/po/cy.po0000644000015301777760000000171512321545543021412 0ustar pbusernogroup00000000000000# Welsh translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-08 00:05+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Welsh \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "" #: ../lib/main.vala:824 msgid "Character Map" msgstr "" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "" indicator-keyboard-0.0.0+14.04.20140410.1/po/sk.po0000644000015301777760000000204212321545543021406 0ustar pbusernogroup00000000000000# Slovak translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-02 13:04+0000\n" "Last-Translator: Pavol Klačanský \n" "Language-Team: Slovak \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "zdroj vstupu %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa znakov" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Rozloženie klávesnice" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Nastavenia vstupu…" indicator-keyboard-0.0.0+14.04.20140410.1/po/ms.po0000644000015301777760000000203112321545543021406 0ustar pbusernogroup00000000000000# Malay translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-28 17:17+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Malay \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "% sumber input" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Peta Aksara" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Carta Bentanga Papan Kekunci" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Tetapan Masukan Teks..." indicator-keyboard-0.0.0+14.04.20140410.1/po/szl.po0000644000015301777760000000172412321545543021607 0ustar pbusernogroup00000000000000# Silesian translation for indicator-keyboard # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2014-03-05 16:03+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Silesian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "" #: ../lib/main.vala:824 msgid "Character Map" msgstr "" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "" indicator-keyboard-0.0.0+14.04.20140410.1/po/gl.po0000644000015301777760000000210112321545543021367 0ustar pbusernogroup00000000000000# Galician translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-29 17:49+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Galician \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Orixe da entrada: %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa de caracteres" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Gráfica da disposición do teclado" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Configuración da entrada de texto..." indicator-keyboard-0.0.0+14.04.20140410.1/po/ga.po0000644000015301777760000000205712321545543021366 0ustar pbusernogroup00000000000000# Irish translation for indicator-keyboard # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2014-02-27 15:27+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Irish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s foinse an ionchuir" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa Carachtar" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Cairt Leagan Amach an an Méarchláir" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Socruithe iontráil téacs" indicator-keyboard-0.0.0+14.04.20140410.1/po/pt_BR.po0000644000015301777760000000213212321545543021777 0ustar pbusernogroup00000000000000# Brazilian Portuguese translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-08-28 01:25+0000\n" "Last-Translator: Adolfo Jayme \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "fonte de entrada %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa de caracteres" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Disposição do teclado" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Configurações de entrada de texto…" indicator-keyboard-0.0.0+14.04.20140410.1/po/pt.po0000644000015301777760000000206612321545543021422 0ustar pbusernogroup00000000000000# Portuguese translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-10 21:34+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "fonte de entrada %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa de Caracteres" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Disposição do teclado" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Definições de entrada de texto..." indicator-keyboard-0.0.0+14.04.20140410.1/po/bs.po0000644000015301777760000000203612321545543021400 0ustar pbusernogroup00000000000000# Bosnian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-28 15:43+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Bosnian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s ulazni izvor" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Mapa znakova" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Crtež rasporeda tastature" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Postavke unosa teksta..." indicator-keyboard-0.0.0+14.04.20140410.1/po/fr.po0000644000015301777760000000210012321545543021373 0ustar pbusernogroup00000000000000# French translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-08-29 08:33+0000\n" "Last-Translator: Matthieu Baerts \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s source d'entrée" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Table de caractères" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Représentation de l'agencement" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Paramètres de saisie de texte..." indicator-keyboard-0.0.0+14.04.20140410.1/po/vi.po0000644000015301777760000000210412321545543021406 0ustar pbusernogroup00000000000000# Vietnamese translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-16 11:12+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Vietnamese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s nguồn đầu vào" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Sơ đồ kí tự" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Biểu đồ Bố cục Bàn phím" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Thiết đặt nhập văn bản..." indicator-keyboard-0.0.0+14.04.20140410.1/po/km.po0000644000015301777760000000223112321545543021400 0ustar pbusernogroup00000000000000# Khmer translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-17 01:42+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Khmer \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "ប្រភព​បញ្ចូល %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "ផែនទី​តួអក្សរ" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "តារាង​ប្លង់​ក្ដារចុច" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "ការ​កំណត់​ធាតុ​អត្ថបទ..." indicator-keyboard-0.0.0+14.04.20140410.1/po/el.po0000644000015301777760000000220712321545543021374 0ustar pbusernogroup00000000000000# Greek translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-28 11:42+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Greek \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s πηγή εισόδου" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Καθορισμός χαρακτήρων" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Διάγραμμα διάταξης πληκτρολογίου" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Ρυθμίσεις εισαγωγής κειμένου..." indicator-keyboard-0.0.0+14.04.20140410.1/po/hi.po0000644000015301777760000000222612321545543021375 0ustar pbusernogroup00000000000000# Hindi translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-28 21:49+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Hindi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s निवेश स्त्रोत" #: ../lib/main.vala:824 msgid "Character Map" msgstr "अक्षर तालिका" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "कुंजीपट विन्यास तालिका" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "शब्द प्रविष्टि समायोजन..." indicator-keyboard-0.0.0+14.04.20140410.1/po/hu.po0000644000015301777760000000205512321545543021411 0ustar pbusernogroup00000000000000# Hungarian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-04 18:45+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Hungarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "%s beviteli forrás" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Karaktertábla" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Billentyűzetkiosztás" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Szövegbeviteli beállítások…" indicator-keyboard-0.0.0+14.04.20140410.1/po/ru.po0000644000015301777760000000217112321545543021422 0ustar pbusernogroup00000000000000# Russian translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-12 22:02+0000\n" "Last-Translator: Igor Zubarev \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Источник ввода %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Таблица символов" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Схема раскладки клавиатуры" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Параметры ввода текста..." indicator-keyboard-0.0.0+14.04.20140410.1/po/tg.po0000644000015301777760000000216512321545543021411 0ustar pbusernogroup00000000000000# Tajik translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-09-28 14:41+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Tajik \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "Манбаи вуруди %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "Тарҳбандии аломатҳо" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "Аломатҳои тарҳбандии клавиатура" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "Танзимоти вуруди матн..." indicator-keyboard-0.0.0+14.04.20140410.1/po/th.po0000644000015301777760000000171312321545543021410 0ustar pbusernogroup00000000000000# Thai translation for indicator-keyboard # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2014-02-23 02:50+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Thai \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "" #: ../lib/main.vala:824 msgid "Character Map" msgstr "" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "" indicator-keyboard-0.0.0+14.04.20140410.1/po/he.po0000644000015301777760000000206512321545543021372 0ustar pbusernogroup00000000000000# Hebrew translation for indicator-keyboard # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the indicator-keyboard package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: indicator-keyboard\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2014-04-09 07:13+0000\n" "PO-Revision-Date: 2013-10-01 12:03+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Hebrew \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-04-10 06:48+0000\n" "X-Generator: Launchpad (build 16976)\n" #: ../lib/main.vala:676 #, c-format msgid "%s input source" msgstr "מקור קלט %s" #: ../lib/main.vala:824 msgid "Character Map" msgstr "מפת תווים" #: ../lib/main.vala:825 msgid "Keyboard Layout Chart" msgstr "תרשים פריסת המקלדת" #: ../lib/main.vala:826 msgid "Text Entry Settings..." msgstr "הגדרות הזנת טקסט…" indicator-keyboard-0.0.0+14.04.20140410.1/lib/0000755000015301777760000000000012321546061020557 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/lib/Makefile.am0000644000015301777760000000575112321545562022630 0ustar pbusernogroup00000000000000libexec_PROGRAMS = indicator-keyboard-service AM_CFLAGS = -w -DGNOME_DESKTOP_USE_UNSTABLE_API AM_LDFLAGS = -lm AM_VALAFLAGS = --enable-experimental-non-null \ --metadatadir $(top_srcdir)/deps \ --vapidir $(top_srcdir)/deps indicator_keyboard_service_SOURCES = main.vala \ source.vala \ common.vala \ ibus-menu.vala \ ibus-panel.vala \ indicator-menu.vala \ keyboard-plugin.vala \ window-stack.vala \ unity-session.vala \ unity-greeter.vala indicator_keyboard_service_VALAFLAGS = $(AM_VALAFLAGS) \ --pkg gee-1.0 \ --pkg posix \ --pkg pangocairo \ --pkg gtk+-3.0 \ --pkg GDesktopEnums-3.0 \ --pkg gnome-desktop-3.0 \ --pkg Xkl-1.0 \ --pkg Gkbd-3.0 \ --pkg ibus-1.0 \ --pkg accountsservice \ --pkg liblightdm-gobject-1 indicator_keyboard_service_CFLAGS = $(AM_CFLAGS) \ $(GEE_CFLAGS) \ $(PANGOCAIRO_CFLAGS) \ $(GTK_CFLAGS) \ $(GNOME_DESKTOP_CFLAGS) \ $(LIBXKLAVIER_CFLAGS) \ $(LIBGNOMEKBD_CFLAGS) \ $(IBUS_CFLAGS) \ $(ACCOUNTSSERVICE_CFLAGS) \ $(LIGHTDM_CFLAGS) \ $(COVERAGE_CFLAGS) indicator_keyboard_service_LDFLAGS = $(AM_LDFLAGS) \ $(GEE_LIBS) \ $(PANGOCAIRO_LIBS) \ $(GTK_LIBS) \ $(GNOME_DESKTOP_LIBS) \ $(LIBXKLAVIER_LIBS) \ $(LIBGNOMEKBD_LIBS) \ $(IBUS_LIBS) \ $(ACCOUNTSSERVICE_LIBS) \ $(LIGHTDM_LIBS) \ $(COVERAGE_LDFLAGS) indicator-keyboard-0.0.0+14.04.20140410.1/lib/source.vala0000644000015301777760000002577112321545543022744 0ustar pbusernogroup00000000000000/* * Copyright 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ public class Indicator.Keyboard.Source : Object { private static Gnome.XkbInfo? xkb_info; private static IBus.Bus? bus; private string? xkb; private string? ibus; private string? _name; private string? _short_name; private string? _layout; private string? _variant; private Icon? _icon; private uint _subscript; private bool _show_subscript; private bool _use_gtk; public string? name { get { if (_name == null) { _name = _get_name (); } return _name; } } public string? short_name { get { if (_short_name == null) { _short_name = _get_short_name (); } return _short_name; } } public string? layout { get { if (_layout == null) { _layout = _get_layout (); } return _layout; } } public string? variant { get { if (_variant == null) { _variant = _get_variant (); } return _variant; } } public Icon? icon { get { if (_icon == null) { _icon = _get_icon (); } return _icon; } set { _icon = value; } } public uint subscript { get { return _subscript; } set { _subscript = value; icon = null; } } public bool show_subscript { get { return _show_subscript; } set { _show_subscript = value; icon = null; } } public bool use_gtk { get { return _use_gtk; } construct set { _use_gtk = value; icon = null; } } public bool is_xkb { get { return xkb != null; } } public bool is_ibus { get { return ibus != null; } } public Source (Variant variant, bool use_gtk = false) { Object (use_gtk: use_gtk); if (variant.is_of_type (new VariantType ("(ss)"))) { unowned string type; unowned string name; variant.get ("(&s&s)", out type, out name); if (type == "xkb") { xkb = name; } else if (type == "ibus") { ibus = name; } } else if (variant.is_of_type (new VariantType ("a{ss}"))) { VariantIter iter; unowned string key; unowned string value; variant.get ("a{ss}", out iter); while (iter.next ("{&s&s}", out key, out value)) { if (key == "xkb") { xkb = value; } else if (key == "ibus") { ibus = value; } } } } private static Gnome.XkbInfo get_xkb_info () { if (xkb_info == null) { xkb_info = new Gnome.XkbInfo (); } return (!) xkb_info; } private static IBus.Bus get_bus () { if (bus == null) { IBus.init (); bus = new IBus.Bus (); } return (!) bus; } private IBus.EngineDesc? get_engine () { IBus.EngineDesc? engine = null; if (ibus != null) { var names = new string[2]; names[0] = (!) ibus; var engines = get_bus ().get_engines_by_names (names); if (engines.length > 0) { engine = engines[0]; } } return engine; } protected virtual string? _get_name () { string? name = null; var engine = get_engine (); if (engine != null) { string? language = ((!) engine).get_language (); string? display_name = ((!) engine).get_longname (); var has_language = language != null && ((!) language).get_char () != '\0'; var has_display_name = display_name != null && ((!) display_name).get_char () != '\0'; if (has_language) { language = Xkl.get_language_name ((!) language); has_language = language != null && ((!) language).get_char () != '\0'; } if (has_language && has_display_name) { name = @"$((!) language) ($((!) display_name))"; } else if (has_language) { name = language; } else if (has_display_name) { name = display_name; } } var has_name = name != null && ((!) name).get_char () != '\0'; if (!has_name && xkb != null) { string? display_name = null; string? layout = null; get_xkb_info ().get_layout_info ((!) xkb, out display_name, null, out layout, null); var has_display_name = display_name != null && ((!) display_name).get_char () != '\0'; var has_layout = layout != null && ((!) layout).get_char () != '\0'; if (has_display_name) { name = display_name; } else if (has_layout) { string? language = Xkl.get_language_name ((!) layout); string? country = Xkl.get_country_name ((!) layout); var has_language = language != null && ((!) language).get_char () != '\0'; var has_country = country != null && ((!) country).get_char () != '\0'; if (has_language && has_country) { name = @"$((!) language) ($((!) country))"; } else if (has_language) { name = language; } else if (has_country) { name = country; } } } if (name == null || ((!) name).get_char () == '\0') { if (ibus != null) { name = ibus; } else if (xkb != null) { name = xkb; } } return name; } protected virtual string? _get_short_name () { string? short_name = null; if (xkb != null) { get_xkb_info ().get_layout_info ((!) xkb, null, out short_name, null, null); } var has_short_name = short_name != null && ((!) short_name).get_char () != '\0'; if (!has_short_name) { var engine = get_engine (); if (engine != null) { short_name = ((!) engine).get_name (); } } if (short_name == null || ((!) short_name).get_char () == '\0') { if (ibus != null) { short_name = ibus; } else if (xkb != null) { short_name = xkb; } } return abbreviate (short_name); } protected virtual string? _get_layout () { string? layout = null; if (xkb != null) { get_xkb_info ().get_layout_info ((!) xkb, null, null, out layout, null); } var has_layout = layout != null && ((!) layout).get_char () != '\0'; if (!has_layout) { var engine = get_engine (); if (engine != null) { layout = ((!) engine).get_layout (); } } if (layout == null || ((!) layout).get_char () == '\0') { layout = xkb; } return layout; } protected virtual string? _get_variant () { string? variant = null; if (xkb != null) { get_xkb_info ().get_layout_info ((!) xkb, null, null, null, out variant); } var has_variant = variant != null && ((!) variant).get_char () != '\0'; if (!has_variant) { var engine = get_engine (); if (engine != null) { variant = ((!) engine).get_layout_variant (); } } if (variant == null || ((!) variant).get_char () == '\0') { variant = null; } return variant; } private Gtk.StyleContext? get_style_context () { Gtk.StyleContext? context = null; if (_use_gtk) { Gdk.Screen? screen = Gdk.Screen.get_default (); if (screen != null) { context = new Gtk.StyleContext (); ((!) context).set_screen ((!) screen); var path = new Gtk.WidgetPath (); path.append_type (typeof (Gtk.MenuItem)); ((!) context).set_path (path); } } return context; } protected virtual Icon? create_icon () { Icon? icon = null; var style = get_style_context (); if (style != null) { const int W = 22; const int H = 22; const int w = 20; const int h = 20; const double R = 2.0; const double TEXT_SIZE = 12.0; const double SUBSCRIPT_SIZE = 8.0; Pango.FontDescription description; var colour = ((!) style).get_color (Gtk.StateFlags.NORMAL); colour = { 0.5, 0.5, 0.5, 1.0 }; ((!) style).get (Gtk.StateFlags.NORMAL, Gtk.STYLE_PROPERTY_FONT, out description); var surface = new Cairo.ImageSurface (Cairo.Format.ARGB32, W, H); var context = new Cairo.Context (surface); context.translate (0.5 * (W - w), 0.5 * (H - h)); context.new_sub_path (); context.arc (R, R, R, Math.PI, -0.5 * Math.PI); context.arc (w - R, R, R, -0.5 * Math.PI, 0); context.arc (w - R, h - R, R, 0, 0.5 * Math.PI); context.arc (R, h - R, R, 0.5 * Math.PI, Math.PI); context.close_path (); context.set_source_rgba (colour.red, colour.green, colour.blue, colour.alpha); context.fill (); context.set_operator (Cairo.Operator.CLEAR); if (short_name != null) { var text_layout = Pango.cairo_create_layout (context); text_layout.set_alignment (Pango.Alignment.CENTER); description.set_absolute_size (Pango.units_from_double (TEXT_SIZE)); text_layout.set_font_description (description); text_layout.set_text ((!) short_name, -1); Pango.cairo_update_layout (context, text_layout); int text_width; int text_height; text_layout.get_pixel_size (out text_width, out text_height); if (_show_subscript) { var subscript_layout = Pango.cairo_create_layout (context); subscript_layout.set_alignment (Pango.Alignment.CENTER); description.set_absolute_size (Pango.units_from_double (SUBSCRIPT_SIZE)); subscript_layout.set_font_description (description); subscript_layout.set_text (@"$_subscript", -1); Pango.cairo_update_layout (context, subscript_layout); int subscript_width; int subscript_height; subscript_layout.get_pixel_size (out subscript_width, out subscript_height); context.save (); context.translate ((w - (text_width + subscript_width)) / 2, (h - text_height) / 2); Pango.cairo_layout_path (context, text_layout); context.fill (); context.restore (); context.save (); context.translate ((w + (text_width - subscript_width)) / 2, (h + text_height) / 2 - subscript_height); Pango.cairo_layout_path (context, subscript_layout); context.fill (); context.restore (); } else { context.save (); context.translate ((w - text_width) / 2, (h - text_height) / 2); Pango.cairo_layout_path (context, text_layout); context.fill (); context.restore (); } } var buffer = new ByteArray (); surface.write_to_png_stream ((data) => { buffer.append (data); return Cairo.Status.SUCCESS; }); icon = new BytesIcon (ByteArray.free_to_bytes ((owned) buffer)); } return icon; } private Icon? _get_icon () { Icon? icon = null; var engine = get_engine (); if (engine != null) { string? icon_name = ((!) engine).get_icon (); var has_icon_name = icon_name != null && ((!) icon_name).get_char () != '\0'; if (has_icon_name) { try { icon = Icon.new_for_string ((!) icon_name); } catch (Error error) { warning ("error: %s", error.message); } } } if (icon == null && short_name != null) { string icon_name; if (_show_subscript) { icon_name = @"indicator-keyboard-$((!) short_name)-$_subscript"; } else { icon_name = @"indicator-keyboard-$((!) short_name)"; } if (_use_gtk) { var icon_theme = Gtk.IconTheme.get_default (); Gtk.IconInfo? icon_info = icon_theme.lookup_icon (icon_name, 22, 0); if (icon_info != null) { icon = new ThemedIcon (icon_name); } } else { icon = new ThemedIcon (icon_name); } } if (icon == null) { icon = create_icon (); } return icon; } } indicator-keyboard-0.0.0+14.04.20140410.1/lib/indicator-menu.vala0000644000015301777760000001116312321545562024351 0ustar pbusernogroup00000000000000/* * Copyright 2014 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ public class Indicator.Keyboard.IndicatorMenu : MenuModel { public enum Options { NONE = 0x0, DCONF = 0x1, IBUS = 0x2, SETTINGS = 0x4 } private Options options; private Menu indicator_menu; private Menu sources_section; private IBusMenu properties_section; public IndicatorMenu (ActionMap? action_map = null, Options options = Options.NONE) { var submenu = new Menu (); sources_section = new Menu (); submenu.append_section (null, sources_section); if ((options & Options.IBUS) != Options.NONE) { properties_section = new IBusMenu (action_map); properties_section.activate.connect ((property, state) => { activate (property, state); }); submenu.append_section (null, properties_section); } if ((options & Options.SETTINGS) != Options.NONE) { var settings_section = new Menu (); settings_section.append (_ ("Character Map"), "indicator.map"); settings_section.append (_ ("Keyboard Layout Chart"), "indicator.chart"); settings_section.append (_ ("Text Entry Settings..."), "indicator.settings"); submenu.append_section (null, settings_section); } var indicator = new MenuItem.submenu (null, submenu); indicator.set_detailed_action ("indicator.indicator"); indicator.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.root"); /* We need special mouse actions on the lock screen. */ if ((options & Options.DCONF) != Options.NONE) { indicator.set_attribute ("x-canonical-secondary-action", "s", "indicator.next"); indicator.set_attribute ("x-canonical-scroll-action", "s", "indicator.scroll"); } else { indicator.set_attribute ("x-canonical-secondary-action", "s", "indicator.locked_next"); indicator.set_attribute ("x-canonical-scroll-action", "s", "indicator.locked_scroll"); } indicator_menu = new Menu (); indicator_menu.append_item (indicator); this.options = options; } public signal void activate (IBus.Property property, IBus.PropState state); public void set_sources (Source[] sources) { sources_section.remove_all (); for (var i = 0; i < sources.length; i++) { if (!sources[i].is_ibus || (options & Options.IBUS) != Options.NONE) { string action; if ((options & Options.DCONF) != Options.NONE) { action = "indicator.current"; } else { action = "indicator.active"; } var item = new MenuItem (sources[i].name, action); item.set_attribute (Menu.ATTRIBUTE_TARGET, "u", i); if (sources[i].icon != null) { item.set_icon ((!) sources[i].icon); } sources_section.append_item (item); } } } public void set_properties (IBus.PropList properties) { if ((options & Options.IBUS) != Options.NONE) { properties_section.set_properties (properties); } } public void update_property (IBus.Property property) { if ((options & Options.IBUS) != Options.NONE) { properties_section.update_property (property); } } public override bool is_mutable () { return indicator_menu.is_mutable (); } public override int get_n_items () { return indicator_menu.get_n_items (); } public override void get_item_attributes (int item_index, out HashTable? attributes) { indicator_menu.get_item_attributes (item_index, out attributes); } public override void get_item_links (int item_index, out HashTable? links) { indicator_menu.get_item_links (item_index, out links); } public override Variant get_item_attribute_value (int item_index, string attribute, VariantType? expected_type) { return indicator_menu.get_item_attribute_value (item_index, attribute, expected_type); } public override MenuModel get_item_link (int item_index, string link) { return indicator_menu.get_item_link (item_index, link); } public override MenuAttributeIter iterate_item_attributes (int item_index) { return indicator_menu.iterate_item_attributes (item_index); } public override MenuLinkIter iterate_item_links (int item_index) { return indicator_menu.iterate_item_links (item_index); } } indicator-keyboard-0.0.0+14.04.20140410.1/lib/keyboard-plugin.vala0000644000015301777760000000155512321545562024533 0ustar pbusernogroup00000000000000/* * Copyright 2014 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ [DBus (name="com.canonical.SettingsDaemon.Keyboard.Private")] public interface KeyboardPlugin : Object { public abstract void activate_input_source (uint index) throws IOError; } indicator-keyboard-0.0.0+14.04.20140410.1/lib/unity-greeter.vala0000644000015301777760000000172412321545543024237 0ustar pbusernogroup00000000000000/* * Copyright 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ [DBus (name="com.canonical.UnityGreeter.List")] public interface UnityGreeter : Object { public abstract string get_active_entry () throws IOError; public abstract void set_active_entry (string entry_name) throws IOError; public signal void entry_selected (string entry_name); } indicator-keyboard-0.0.0+14.04.20140410.1/lib/main.vala0000644000015301777760000007345112321545562022367 0ustar pbusernogroup00000000000000/* * Copyright 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ [DBus (name = "com.canonical.indicator.keyboard")] public class Indicator.Keyboard.Service : Object { private static const uint PROPERTIES_DELAY = 250; private static Service service; private bool force; private bool use_gtk; private MainLoop? loop; private Settings indicator_settings; private Settings source_settings; private Settings per_window_settings; private SList users; private WindowStack? window_stack; private Gee.HashMap? window_sources; private uint focused_window_id; private IBus.Bus? ibus; private IBusPanel? ibus_panel; private ulong ibus_connected_id; private uint panel_timeout; private Source[]? sources; private SimpleActionGroup? action_group; private SimpleAction? indicator_action; private SimpleAction? active_action; private IndicatorMenu? desktop_menu; private IndicatorMenu? desktop_greeter_menu; private IndicatorMenu? desktop_lockscreen_menu; private KeyboardPlugin? keyboard_plugin; private UnitySession? unity_session; private UnityGreeter? unity_greeter; private string? greeter_user; private uint lightdm_current; [DBus (visible = false)] public Service (ref unowned string[] args) { force = "--force" in args; use_gtk = "--use-gtk" in args; if (use_gtk) { use_gtk = Gtk.init_check (ref args); Gtk.IconTheme? icon_theme = Gtk.IconTheme.get_default (); if (icon_theme != null) { ((!) icon_theme).changed.connect (() => { if (sources != null) { foreach (var source in (!) sources) { source.icon = null; } } if (desktop_menu != null) { get_desktop_menu ().set_sources (get_sources ()); } if (desktop_greeter_menu != null) { get_desktop_greeter_menu ().set_sources (get_sources ()); } if (desktop_lockscreen_menu != null) { get_desktop_lockscreen_menu ().set_sources (get_sources ()); } if (indicator_action != null) { update_indicator_action (); } }); } } else { Gdk.init (ref args); } if (is_login_user ()) { var name = Environment.get_variable ("UNITY_GREETER_DBUS_NAME"); if (name != null) { Bus.watch_name (BusType.SESSION, (!) name, BusNameWatcherFlags.NONE, handle_unity_greeter_name_appeared, handle_unity_greeter_name_vanished); } } else { Bus.watch_name (BusType.SESSION, "org.gnome.SettingsDaemon.Keyboard", BusNameWatcherFlags.NONE, handle_keyboard_name_appeared, handle_keyboard_name_vanished); Bus.watch_name (BusType.SESSION, "com.canonical.Unity", BusNameWatcherFlags.NONE, handle_unity_name_appeared, handle_unity_name_vanished); Bus.watch_name (BusType.SESSION, "com.canonical.Unity.WindowStack", BusNameWatcherFlags.NONE, handle_window_stack_name_appeared, handle_window_stack_name_vanished); } indicator_settings = new Settings ("com.canonical.indicator.keyboard"); indicator_settings.changed["visible"].connect (handle_changed_visible); source_settings = new Settings ("org.gnome.desktop.input-sources"); source_settings.changed["current"].connect (handle_changed_current); source_settings.changed["sources"].connect (handle_changed_sources); per_window_settings = new Settings ("org.gnome.libgnomekbd.desktop"); per_window_settings.changed["group-per-window"].connect (handle_changed_group_per_window); migrate_keyboard_layouts (); update_window_sources (); acquire_bus_name (); } [DBus (visible = false)] private static bool is_login_user () { return Environment.get_user_name () == "lightdm"; } [DBus (visible = false)] private IBus.Bus get_ibus () { if (ibus == null) { IBus.init (); ibus = new IBus.Bus (); ((!) ibus).connected.connect (() => { if (desktop_menu != null) { get_desktop_menu ().set_sources (get_sources ()); } if (desktop_greeter_menu != null) { get_desktop_greeter_menu ().set_sources (get_sources ()); } if (desktop_lockscreen_menu != null) { get_desktop_lockscreen_menu ().set_sources (get_sources ()); } if (indicator_action != null) { update_indicator_action (); } }); } return (!) ibus; } [DBus (visible = false)] private IBusPanel? get_ibus_panel () { if (ibus_panel == null && get_ibus ().is_connected ()) { var connection = get_ibus ().get_connection (); var name = "org.freedesktop.IBus.Panel"; var path = "/org/freedesktop/IBus/Panel"; try { ibus_panel = connection.get_proxy_sync (name, path); ((!) ibus_panel).properties_registered.connect ((variant) => { var properties = new IBus.PropList (); properties.deserialize (variant); if (properties is IBus.PropList) { handle_properties_registered ((!) (properties as IBus.PropList)); } }); ((!) ibus_panel).property_updated.connect ((variant) => { var type = IBus.PropType.NORMAL; var state = IBus.PropState.INCONSISTENT; var text = new IBus.Text.from_static_string (""); var property = new IBus.Property ("", type, text, null, text, false, false, state, null); property.deserialize (variant); if (property is IBus.Property) { handle_property_updated ((!) (property as IBus.Property)); } }); } catch (IOError error) { warning ("error: %s", error.message); } } return ibus_panel; } [DBus (visible = false)] public void up () { if (loop == null) { loop = new MainLoop (); ((!) loop).run (); } } [DBus (visible = false)] public void down () { if (loop != null) { ((!) loop).quit (); loop = null; } } [DBus (visible = false)] private void acquire_bus_name () { Bus.own_name (BusType.SESSION, "com.canonical.indicator.keyboard", BusNameOwnerFlags.ALLOW_REPLACEMENT | (force ? BusNameOwnerFlags.REPLACE : 0), handle_bus_acquired, null, handle_name_lost); } [DBus (visible = false)] private void update_greeter_user () { if (greeter_user == null && unity_greeter != null) { try { greeter_user = ((!) unity_greeter).get_active_entry (); } catch (IOError error) { warning ("error: %s", error.message); } } string? source = null; if (greeter_user != null) { var manager = Act.UserManager.get_default (); if (manager.is_loaded) { Act.User? user = manager.get_user ((!) greeter_user); if (user != null && ((!) user).is_loaded) { VariantIter outer; VariantIter inner; var sources = ((!) user).input_sources; sources.get ("aa{ss}", out outer); while (outer.next ("a{ss}", out inner)) { unowned string key; unowned string value; while (inner.next ("{&s&s}", out key, out value)) { if (key == "xkb") { source = value; break; } } if (source != null) { break; } } if (source == null) { var layouts = ((!) user).xkeyboard_layouts; if (layouts.length <= 0) { var user_list = LightDM.UserList.get_instance (); LightDM.User? light_user = user_list.get_user_by_name ((!) greeter_user); if (light_user != null) { layouts = ((!) light_user).get_layouts (); } } if (layouts.length > 0) { source = layouts[0]; source = ((!) source).replace (" ", "+"); source = ((!) source).replace ("\t", "+"); } } } } } if (source == null) { LightDM.Layout? layout = LightDM.get_layout (); if (layout != null) { source = ((!) layout).name; if (source != null) { source = ((!) source).replace (" ", "+"); source = ((!) source).replace ("\t", "+"); } } } if (source != null) { var array = source_settings.get_value ("sources"); for (var i = 0; i < array.n_children (); i++) { unowned string type; unowned string name; array.get_child (i, "(&s&s)", out type, out name); if (type == "xkb" && name == (!) source) { source_settings.set_uint ("current", i); break; } } } } [DBus (visible = false)] private void handle_entry_selected (string entry_name) { if (greeter_user == null || entry_name != (!) greeter_user) { greeter_user = entry_name; update_greeter_user (); } } [DBus (visible = false)] private void migrate_keyboard_layouts () { if (is_login_user ()) { lightdm_current = source_settings.get_uint ("current"); var manager = Act.UserManager.get_default (); if (manager.is_loaded) { users = manager.list_users (); foreach (var user in users) { if (user.is_loaded) { migrate_input_sources (); } else { user.notify["is-loaded"].connect ((pspec) => { if (user.is_loaded) { migrate_input_sources (); } }); } } } else { manager.notify["is-loaded"].connect ((pspec) => { if (manager.is_loaded) { users = manager.list_users (); foreach (var user in users) { if (user.is_loaded) { migrate_input_sources (); } else { user.notify["is-loaded"].connect ((pspec) => { if (user.is_loaded) { migrate_input_sources (); } }); } } } }); } var user_list = LightDM.UserList.get_instance (); user_list.user_added.connect ((user) => { migrate_input_sources (); }); user_list.user_changed.connect ((user) => { migrate_input_sources (); }); user_list.user_removed.connect ((user) => { migrate_input_sources (); }); /* Force the loading of the user list. */ user_list.get_user_by_name (""); } else { if (!indicator_settings.get_boolean ("migrated")) { var builder = new VariantBuilder (new VariantType ("a(ss)")); var length = 0; var layout_settings = new Settings ("org.gnome.libgnomekbd.keyboard"); var layouts = layout_settings.get_strv ("layouts"); foreach (var layout in layouts) { var source = layout; source = source.replace (" ", "+"); source = source.replace ("\t", "+"); builder.add ("(ss)", "xkb", source); length++; } var engines = get_ibus ().list_active_engines (); foreach (var engine in engines) { if (length == 0 || engine.name.has_prefix ("xkb")) { var source = "us"; string? layout = engine.get_layout (); string? variant = engine.get_layout_variant (); if (layout != null && ((!) layout).length == 0) { layout = null; } if (variant != null && ((!) variant).length == 0) { variant = null; } if (layout != null && variant != null) { source = @"$((!) layout)+$((!) variant)"; } else if (layout != null) { source = (!) layout; } builder.add ("(ss)", "xkb", source); length++; } if (!engine.name.has_prefix ("xkb")) { builder.add ("(ss)", "ibus", engine.name); length++; } } source_settings.set_value ("sources", builder.end ()); indicator_settings.set_boolean ("migrated", true); } } } [DBus (visible = false)] private void migrate_input_sources () { var list = new Gee.LinkedList (); var added = new Gee.HashSet (); foreach (var user in users) { if (user.is_loaded) { var done = false; VariantIter outer; VariantIter inner; var sources = user.input_sources; sources.get ("aa{ss}", out outer); while (outer.next ("a{ss}", out inner)) { unowned string key; unowned string source; while (inner.next ("{&s&s}", out key, out source)) { if (key == "xkb") { done = true; if (!added.contains (source)) { list.add (source); added.add (source); } } } } if (!done) { var layouts = user.xkeyboard_layouts; foreach (var layout in layouts) { done = true; var source = layout; source = source.replace (" ", "+"); source = source.replace ("\t", "+"); if (!added.contains (source)) { list.add (source); added.add (source); } } } if (!done) { var user_list = LightDM.UserList.get_instance (); LightDM.User? light_user = user_list.get_user_by_name (user.user_name); if (light_user != null) { var layouts = ((!) light_user).get_layouts (); foreach (var layout in layouts) { done = true; var source = layout; source = source.replace (" ", "+"); source = source.replace ("\t", "+"); if (!added.contains (source)) { list.add (source); added.add (source); } } } } } } LightDM.Layout? layout = LightDM.get_layout (); if (layout != null) { string? source = ((!) layout).name; if (source != null) { source = ((!) source).replace (" ", "+"); source = ((!) source).replace ("\t", "+"); if (!added.contains ((!) source)) { list.add ((!) source); added.add ((!) source); } } } var builder = new VariantBuilder (new VariantType ("a(ss)")); foreach (var name in list) { builder.add ("(ss)", "xkb", name); } if (lightdm_current < list.size) { source_settings.set_uint ("current", lightdm_current); } else { source_settings.set_uint ("current", list.size - 1); } source_settings.set_value ("sources", builder.end ()); update_greeter_user (); } [DBus (visible = false)] private void update_login_layout () { if (is_login_user ()) { unowned List layouts = LightDM.get_layouts (); var current = source_settings.get_uint ("current"); if (current < get_sources ().length) { var source = get_sources ()[current]; string? name = null; if (source.layout != null && source.variant != null) { name = @"$((!) source.layout)\t$((!) source.variant)"; } else if (source.layout != null) { name = source.layout; } if (name != null) { foreach (var layout in layouts) { if (layout.name == (!) name) { LightDM.set_layout (layout); break; } } } } } } [DBus (visible = false)] private void update_window_sources () { if (window_stack != null) { var group_per_window = per_window_settings.get_boolean ("group-per-window"); if (group_per_window != (window_sources != null)) { if (group_per_window) { focused_window_id = 0; try { var windows = ((!) window_stack).get_window_stack (); foreach (var window in windows) { if (window.focused) { focused_window_id = window.window_id; break; } } } catch (IOError error) { warning ("error: %s", error.message); } window_sources = new Gee.HashMap (); ((!) window_stack).focused_window_changed.connect (handle_focused_window_changed); } else { ((!) window_stack).focused_window_changed.disconnect (handle_focused_window_changed); window_sources = null; } } } } [DBus (visible = false)] private void handle_changed_group_per_window (string key) { update_window_sources (); } [DBus (visible = false)] private void handle_focused_window_changed (uint window_id, string app_id, uint stage) { var old_current = source_settings.get_uint ("current"); ((!) window_sources)[focused_window_id] = old_current; if (!(((!) window_sources).has_key (window_id))) { var default_group = per_window_settings.get_int ("default-group"); if (default_group >= 0 && default_group != old_current) { source_settings.set_uint ("current", (uint) default_group); } } else { var current = ((!) window_sources)[window_id]; if (current != old_current) { source_settings.set_uint ("current", current); } } focused_window_id = window_id; } [DBus (visible = false)] private Source[] get_sources () { if (sources == null) { var array = source_settings.get_value ("sources"); sources = new Source[array.n_children ()]; for (var i = 0; i < ((!) sources).length; i++) { sources[i] = new Source(array.get_child_value (i), use_gtk); sources[i].show_subscript = false; sources[i].subscript = 1; for (var j = (int) i - 1; j >= 0; j--) { if ((!) sources[j].short_name == (!) sources[i].short_name) { sources[i].subscript = sources[j].subscript + 1; sources[i].show_subscript = true; sources[j].show_subscript = true; break; } } if (ibus_connected_id == 0 && sources[i].is_ibus) { ibus_connected_id = get_ibus ().connected.connect (() => { get_ibus_panel (); }); get_ibus ().disconnected.connect (() => { ibus_panel = null; }); if (get_ibus ().is_connected ()) { get_ibus_panel (); } } } } return (!) sources; } [DBus (visible = false)] private void handle_properties_registered (IBus.PropList list) { if (panel_timeout > 0) { GLib.Source.remove (panel_timeout); panel_timeout = 0; } panel_timeout = Timeout.add (PROPERTIES_DELAY, () => { get_desktop_menu ().set_properties (list); panel_timeout = 0; return false; }); } [DBus (visible = false)] private void handle_property_updated (IBus.Property property) { get_desktop_menu ().update_property (property); } [DBus (visible = false)] private void update_indicator_action () { Icon? icon = null; string? name = null; var sources = get_sources (); var active = get_active_action ().get_state ().get_uint32 (); if (active < sources.length) { icon = sources[active].icon; name = sources[active].name; } var builder = new VariantBuilder (new VariantType ("a{sv}")); builder.add ("{sv}", "visible", indicator_settings.get_value ("visible")); if (name != null) { var description = _ ("%s input source").printf ((!) name); builder.add ("{sv}", "accessible-desc", new Variant.string (description)); } if (icon != null) { builder.add ("{sv}", "icon", ((!) icon).serialize ()); } get_indicator_action ().set_state (builder.end ()); } [DBus (visible = false)] private SimpleAction get_indicator_action () { if (indicator_action == null) { var state = new Variant.parsed ("{ 'visible' : }"); indicator_action = new SimpleAction.stateful ("indicator", null, state); update_indicator_action (); } return (!) indicator_action; } [DBus (visible = false)] private void handle_changed_active (Variant? value) { if (value != null) { ((!) active_action).set_state ((!) value); update_indicator_action (); if (keyboard_plugin != null) { try { ((!) keyboard_plugin).activate_input_source (((!) value).get_uint32 ()); } catch (IOError error) { warning ("error: %s", error.message); } } } } [DBus (visible = false)] private void update_active_action () { if (active_action != null) { ((!) active_action).set_state (source_settings.get_value ("current")); update_indicator_action (); } } [DBus (visible = false)] private Action get_active_action () { if (active_action == null) { var current = source_settings.get_value ("current"); active_action = new SimpleAction.stateful ("active", VariantType.UINT32, current); ((!) active_action).activate.connect ((parameter) => { ((!) active_action).change_state (parameter); }); ((!) active_action).change_state.connect (handle_changed_active); } return (!) active_action; } [DBus (visible = false)] private void handle_middle_click (Variant? parameter) { handle_scroll_wheel (new Variant.int32 (-1)); } [DBus (visible = false)] private void handle_scroll_wheel (Variant? parameter) { if (parameter != null) { var sources = source_settings.get_value ("sources"); var current = source_settings.get_uint ("current"); var length = (int) sources.n_children (); if (length > 0) { var offset = ((!) parameter).get_int32 () % length; source_settings.set_uint ("current", (current + (length - offset)) % length); } } } [DBus (visible = false)] private void handle_middle_click_when_locked (Variant? parameter) { handle_scroll_wheel_when_locked (new Variant.int32 (-1)); } [DBus (visible = false)] private void handle_scroll_wheel_when_locked (Variant? parameter) { if (parameter != null) { var sources = get_sources (); var non_ibus_length = 0; /* Figure out how many non-IBus sources we have. */ foreach (var source in sources) { if (!source.is_ibus) { non_ibus_length++; } } if (non_ibus_length > 1) { var active_action = get_active_action (); var active = active_action.state.get_uint32 (); var offset = -((!) parameter).get_int32 () % non_ibus_length; /* Make offset positive modulo non_ibus_length. */ if (offset < 0) { offset += non_ibus_length; } /* We need to cycle through non-IBus sources only. */ while (offset > 0) { do { active = (active + 1) % sources.length; } while (sources[active].is_ibus); offset--; } active_action.change_state (new Variant.uint32 (active)); } } } [DBus (visible = false)] protected virtual SimpleActionGroup create_action_group (Action root_action) { var group = new SimpleActionGroup (); /* * The 'current' action reflects the current setting in * GSettings and the 'active' action only exists to set the * active input source without persisting it. * * The lock screen menu uses the 'active' action while the * other menus instead persist the current input source. */ group.add_action (root_action); group.add_action (get_active_action ()); group.add_action (source_settings.create_action ("current")); var action = new SimpleAction ("next", null); action.activate.connect (handle_middle_click); group.add_action (action); action = new SimpleAction ("scroll", VariantType.INT32); action.activate.connect (handle_scroll_wheel); group.add_action (action); action = new SimpleAction ("locked_next", null); action.activate.connect (handle_middle_click_when_locked); group.add_action (action); action = new SimpleAction ("locked_scroll", VariantType.INT32); action.activate.connect (handle_scroll_wheel_when_locked); group.add_action (action); action = new SimpleAction ("map", null); action.activate.connect (handle_activate_map); group.add_action (action); action = new SimpleAction ("chart", null); action.activate.connect (handle_activate_chart); group.add_action (action); action = new SimpleAction ("settings", null); action.activate.connect (handle_activate_settings); group.add_action (action); return group; } [DBus (visible = false)] public SimpleActionGroup get_action_group () { if (action_group == null) { action_group = create_action_group (get_indicator_action ()); } return (!) action_group; } [DBus (visible = false)] public IndicatorMenu get_desktop_menu () { if (desktop_menu == null) { var options = IndicatorMenu.Options.DCONF | IndicatorMenu.Options.IBUS | IndicatorMenu.Options.SETTINGS; desktop_menu = new IndicatorMenu (get_action_group (), options); ((!) desktop_menu).set_sources (get_sources ()); ((!) desktop_menu).activate.connect ((property, state) => { var panel = get_ibus_panel (); if (panel != null) { try { ((!) panel).activate_property (property.key, state); } catch (IOError error) { warning ("error: %s", error.message); } } }); } return (!) desktop_menu; } [DBus (visible = false)] public IndicatorMenu get_desktop_greeter_menu () { if (desktop_greeter_menu == null) { var options = IndicatorMenu.Options.DCONF; desktop_greeter_menu = new IndicatorMenu (get_action_group (), options); ((!) desktop_greeter_menu).set_sources (get_sources ()); } return (!) desktop_greeter_menu; } [DBus (visible = false)] public IndicatorMenu get_desktop_lockscreen_menu () { if (desktop_lockscreen_menu == null) { var options = IndicatorMenu.Options.NONE; desktop_lockscreen_menu = new IndicatorMenu (get_action_group (), options); ((!) desktop_lockscreen_menu).set_sources (get_sources ()); } return (!) desktop_lockscreen_menu; } [DBus (visible = false)] private void handle_changed_visible (string key) { update_indicator_action (); } [DBus (visible = false)] private void handle_changed_current (string key) { update_indicator_action (); update_active_action (); update_login_layout (); } [DBus (visible = false)] private void handle_changed_sources (string key) { sources = null; get_desktop_menu ().set_sources (get_sources ()); get_desktop_greeter_menu ().set_sources (get_sources ()); get_desktop_lockscreen_menu ().set_sources (get_sources ()); update_indicator_action (); update_login_layout (); } [DBus (visible = false)] private void handle_activate_map (Variant? parameter) { try { Process.spawn_command_line_async ("gucharmap"); } catch (SpawnError error) { warning ("error: %s", error.message); } } [DBus (visible = false)] private void handle_activate_chart (Variant? parameter) { string? layout = "us"; string? variant = null; var sources = get_sources (); var current = source_settings.get_uint ("current"); if (current < sources.length) { layout = sources[current].layout; variant = sources[current].variant; } var has_layout = layout != null && ((!) layout).get_char () != '\0'; var has_variant = variant != null && ((!) variant).get_char () != '\0'; try { string command; if (has_layout && has_variant) { command = @"gkbd-keyboard-display -l \"$((!) layout)\t$((!) variant)\""; } else if (has_layout) { command = @"gkbd-keyboard-display -l $((!) layout)"; } else { command = @"gkbd-keyboard-display -l us"; } Process.spawn_command_line_async (command); } catch (SpawnError error) { warning ("error: %s", error.message); } } [DBus (visible = false)] private void handle_activate_settings (Variant? parameter) { try { Process.spawn_command_line_async ("unity-control-center region layouts"); } catch (SpawnError error) { warning ("error: %s", error.message); } } [DBus (visible = false)] private void handle_unity_greeter_name_appeared (DBusConnection connection, string name, string name_owner) { try { unity_greeter = Bus.get_proxy_sync (BusType.SESSION, name, "/list"); ((!) unity_greeter).entry_selected.connect (handle_entry_selected); } catch (IOError error) { warning ("error: %s", error.message); } } [DBus (visible = false)] private void handle_unity_greeter_name_vanished (DBusConnection connection, string name) { unity_greeter = null; } [DBus (visible = false)] private void handle_keyboard_name_appeared (DBusConnection connection, string name, string name_owner) { try { keyboard_plugin = Bus.get_proxy_sync (BusType.SESSION, name, "/org/gnome/SettingsDaemon/Keyboard"); } catch (IOError error) { warning ("error: %s", error.message); } } [DBus (visible = false)] private void handle_keyboard_name_vanished (DBusConnection connection, string name) { keyboard_plugin = null; } [DBus (visible = false)] private void handle_unity_name_appeared (DBusConnection connection, string name, string name_owner) { try { unity_session = Bus.get_proxy_sync (BusType.SESSION, name, "/com/canonical/Unity/Session"); ((!) unity_session).locked.connect (() => { var sources = get_sources (); if (sources.length > 0) { var current = source_settings.get_uint ("current"); if (current < sources.length && sources[current].is_ibus) { for (var i = 0; i < sources.length; i++) { if (!sources[i].is_ibus) { get_active_action ().change_state (new Variant.uint32 (i)); break; } } } } }); ((!) unity_session).unlocked.connect (() => { get_active_action ().change_state (source_settings.get_value ("current")); }); } catch (IOError error) { warning ("error: %s", error.message); } } [DBus (visible = false)] private void handle_unity_name_vanished (DBusConnection connection, string name) { unity_session = null; } [DBus (visible = false)] private void handle_window_stack_name_appeared (DBusConnection connection, string name, string name_owner) { try { window_stack = Bus.get_proxy_sync (BusType.SESSION, name, "/com/canonical/Unity/WindowStack"); update_window_sources (); } catch (IOError error) { warning ("error: %s", error.message); } } [DBus (visible = false)] private void handle_window_stack_name_vanished (DBusConnection connection, string name) { window_stack = null; } [DBus (visible = false)] private void handle_bus_acquired (DBusConnection connection, string name) { try { connection.export_action_group ("/com/canonical/indicator/keyboard", get_action_group ()); connection.export_menu_model ("/com/canonical/indicator/keyboard/desktop", get_desktop_menu ()); connection.export_menu_model ("/com/canonical/indicator/keyboard/desktop_greeter", get_desktop_greeter_menu ()); connection.export_menu_model ("/com/canonical/indicator/keyboard/desktop_lockscreen", get_desktop_lockscreen_menu ()); } catch (Error error) { warning ("error: %s", error.message); } } [DBus (visible = false)] private void handle_name_lost (DBusConnection? connection, string name) { down (); } [DBus (visible = false)] public static int main (string[] args) { Service.service = new Service (ref args); Posix.signal (Posix.SIGTERM, (code) => { Service.service.down (); }); Service.service.up (); return 0; } } indicator-keyboard-0.0.0+14.04.20140410.1/lib/window-stack.vala0000644000015301777760000000256012321545543024045 0ustar pbusernogroup00000000000000/* * Copyright 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ public struct WindowInfo { public uint window_id; public string app_id; public bool focused; public uint stage; } [DBus (name="com.canonical.Unity.WindowStack")] public interface WindowStack : Object { public abstract string get_app_id_from_pid (uint pid) throws IOError; public abstract string[] get_window_properties (uint window_id, string app_id, string[] property_names) throws IOError; public abstract WindowInfo[] get_window_stack () throws IOError; public signal void focused_window_changed (uint window_id, string app_id, uint stage); public signal void window_created (uint window_id, string app_id); public signal void window_destroyed (uint window_id, string app_id); } indicator-keyboard-0.0.0+14.04.20140410.1/lib/unity-session.vala0000644000015301777760000000152012321545562024260 0ustar pbusernogroup00000000000000/* * Copyright 2014 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ [DBus (name="com.canonical.Unity.Session")] public interface UnitySession : Object { public signal void locked (); public signal void unlocked (); } indicator-keyboard-0.0.0+14.04.20140410.1/lib/ibus-panel.vala0000644000015301777760000000173212321545543023472 0ustar pbusernogroup00000000000000/* * Copyright 2014 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ [DBus (name="com.canonical.IBus.Panel.Private")] public interface IBusPanel : Object { public abstract void activate_property (string name, uint state) throws IOError; public signal void properties_registered (Variant variant); public signal void property_updated (Variant variant); } indicator-keyboard-0.0.0+14.04.20140410.1/lib/common.vala0000644000015301777760000000213312321545543022717 0ustar pbusernogroup00000000000000/* * Copyright 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ string? abbreviate (string? name) { var index = 0; unichar first; unichar second; if (name != null) { if (((!) name).get_next_char (ref index, out first)) { if (((!) name).get_next_char (ref index, out second)) { return @"$((!) first.toupper ().to_string ())$((!) second.to_string ())"; } else { return first.toupper ().to_string (); } } else { return ""; } } else { return null; } } indicator-keyboard-0.0.0+14.04.20140410.1/lib/ibus-menu.vala0000644000015301777760000002121312321545543023333 0ustar pbusernogroup00000000000000/* * Copyright 2014 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: William Hua */ public class Indicator.Keyboard.IBusMenu : MenuModel { private static uint radio_counter = 0; private IBus.PropList? properties; private Menu menu; private ActionMap? action_map; private string? radio_name; private SimpleAction? radio_action; private Gee.HashMap radio_properties; /* A list of the action names this menu registers. */ private Gee.LinkedList names; public IBusMenu (ActionMap? action_map = null, IBus.PropList? properties = null) { menu = new Menu (); menu.items_changed.connect ((position, removed, added) => { items_changed (position, removed, added); }); names = new Gee.LinkedList (); set_action_map (action_map); set_properties (properties); } ~IBusMenu () { remove_actions (); } public signal void activate (IBus.Property property, IBus.PropState state); private string get_action_name (string key) { string name; if (!action_name_is_valid (key)) { var builder = new StringBuilder.sized (key.length + 1); unichar letter = 0; int index = 0; while (key.get_next_char (ref index, out letter)) { if (letter == '-' || letter == '.' || letter.isalnum ()) { builder.append_unichar (letter); } else { builder.append_c ('-'); } } name = @"ibus-$(builder.str)"; } else { name = @"ibus-$key"; } /* Find an unused action name using a counter. */ if (action_map != null && (Action?) ((!) action_map).lookup_action (name) != null) { var i = 0; var unique_name = @"$name-$i"; while ((Action?) ((!) action_map).lookup_action (unique_name) != null) { i++; unique_name = @"$name-$i"; } name = unique_name; } return name; } private string? get_label (IBus.Property property) { string? label = null; if ((IBus.Text?) property.label != null) { label = property.label.text; } if (label == null && (IBus.Text?) property.symbol != null) { label = property.symbol.text; } return label; } private void append_normal_property (IBus.Property property) { if (property.prop_type == IBus.PropType.NORMAL) { if ((string?) property.key != null) { var name = get_action_name (property.key); if (action_map != null) { var action = new SimpleAction (name, null); action.activate.connect ((parameter) => { activate (property, property.state); }); ((!) action_map).add_action (action); names.add (name); } menu.append (get_label (property), property.sensitive ? @"indicator.$name" : "-private-disabled"); } } } private void append_toggle_property (IBus.Property property) { if (property.prop_type == IBus.PropType.TOGGLE) { if ((string?) property.key != null) { var name = get_action_name (property.key); if (action_map != null) { var state = new Variant.boolean (property.state == IBus.PropState.CHECKED); var action = new SimpleAction.stateful (name, null, state); action.activate.connect ((parameter) => { action.change_state (new Variant.boolean (!action.get_state ().get_boolean ())); }); action.change_state.connect ((value) => { if (value != null) { action.set_state ((!) value); activate (property, ((!) value).get_boolean () ? IBus.PropState.CHECKED : IBus.PropState.UNCHECKED); } }); ((!) action_map).add_action (action); names.add (name); } menu.append (get_label (property), property.sensitive ? @"indicator.$name" : "-private-disabled"); } } } private void append_radio_property (IBus.Property property) { if (property.prop_type == IBus.PropType.RADIO) { if ((string?) property.key != null) { /* Create a single action for all radio properties. */ if (action_map != null && radio_name == null) { radio_counter++; radio_name = @"-private-radio-$radio_counter"; radio_action = new SimpleAction.stateful ((!) radio_name, VariantType.STRING, new Variant.string ("")); ((!) radio_action).activate.connect ((parameter) => { ((!) radio_action).change_state (parameter); }); ((!) radio_action).change_state.connect ((value) => { if (value != null) { var key = ((!) value).get_string (); if (radio_properties.has_key (key)) { ((!) radio_action).set_state ((!) value); activate (radio_properties[key], IBus.PropState.CHECKED); } } }); ((!) action_map).add_action ((!) radio_action); names.add ((!) radio_name); } radio_properties[property.key] = property; if (property.state == IBus.PropState.CHECKED) { ((!) radio_action).change_state (new Variant.string (property.key)); } var item = new MenuItem (get_label (property), "-private-disabled"); if (property.sensitive) { item.set_action_and_target_value (@"indicator.$((!) radio_name)", new Variant.string (property.key)); } menu.append_item (item); } } } private void append_menu_property (IBus.Property property) { if (property.prop_type == IBus.PropType.MENU) { var submenu = new IBusMenu (action_map, ((!) property).sub_props); submenu.activate.connect ((property, state) => { activate (property, state); }); menu.append_submenu (get_label (property), submenu); } } private void append_property (IBus.Property? property) { if (property != null && ((!) property).visible) { switch (((!) property).prop_type) { case IBus.PropType.NORMAL: append_normal_property ((!) property); break; case IBus.PropType.TOGGLE: append_toggle_property ((!) property); break; case IBus.PropType.RADIO: append_radio_property ((!) property); break; case IBus.PropType.MENU: append_menu_property ((!) property); break; case IBus.PropType.SEPARATOR: break; } } } private void update_menu () { /* Break reference cycle between action map and submenus. */ for (var i = 0; i < menu.get_n_items (); i++) { var submenu = menu.get_item_link (i, Menu.LINK_SUBMENU) as IBusMenu; if (submenu != null) { ((!) submenu).remove_actions (); } } menu.remove_all (); if (properties != null) { for (var i = 0; i < ((!) properties).properties.length; i++) { append_property (((!) properties).get (i)); } } } private void remove_actions () { radio_action = null; radio_name = null; if (action_map != null) { foreach (var name in names) { ((!) action_map).remove_action (name); } } names.clear (); } public void set_action_map (ActionMap? action_map) { if (action_map != this.action_map) { remove_actions (); this.action_map = action_map; update_menu (); } } public void set_properties (IBus.PropList? properties) { if (properties != this.properties) { remove_actions (); radio_properties = new Gee.HashMap (); this.properties = properties; update_menu (); } } public void update_property (IBus.Property property) { remove_actions (); radio_properties = new Gee.HashMap (); update_menu (); } /* Forward all menu model calls to our internal menu. */ public override Variant get_item_attribute_value (int item_index, string attribute, VariantType? expected_type) { return menu.get_item_attribute_value (item_index, attribute, expected_type); } public override void get_item_attributes (int item_index, out HashTable? attributes) { menu.get_item_attributes (item_index, out attributes); } public override MenuModel get_item_link (int item_index, string link) { return menu.get_item_link (item_index, link); } public override void get_item_links (int item_index, out HashTable? links) { menu.get_item_links (item_index, out links); } public override int get_n_items () { return menu.get_n_items (); } public override bool is_mutable () { return menu.is_mutable (); } public override MenuAttributeIter iterate_item_attributes (int item_index) { return menu.iterate_item_attributes (item_index); } public override MenuLinkIter iterate_item_links (int item_index) { return menu.iterate_item_links (item_index); } } indicator-keyboard-0.0.0+14.04.20140410.1/TODO0000644000015301777760000000000012321545543020473 0ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/autogen.sh0000755000015301777760000000014512321545543022016 0ustar pbusernogroup00000000000000#!/bin/sh -e mkdir -p m4 autoreconf -i intltoolize -c -f test -n "$NOCONFIGURE" || ./configure "$@" indicator-keyboard-0.0.0+14.04.20140410.1/MERGE-REVIEW0000644000015301777760000000125312321545543021577 0ustar pbusernogroup00000000000000 This documents the expections that the project has on what both submitters and reviewers should ensure that they've done for a merge into the project. == Submitter Responsibilities == * Ensure the project compiles and the test suite executes without error * Ensure that non-obvious code has comments explaining it * If the change works on specific profiles, please include those in the merge description. == Reviewer Responsibilities == * Did the Jenkins build compile? Pass? Run unit tests successfully? * Are there appropriate tests to cover any new functionality? * If the description says this effects the desktop profile: * Run tests indicator-keyboard/unity7* indicator-keyboard-0.0.0+14.04.20140410.1/COPYING0000644000015301777760000010451312321545543021054 0ustar pbusernogroup00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . indicator-keyboard-0.0.0+14.04.20140410.1/m4/0000755000015301777760000000000012321546061020331 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/m4/gcov.m40000644000015301777760000000470512321545543021543 0ustar pbusernogroup00000000000000# Checks for existence of coverage tools: # * gcov # * lcov # * genhtml # * gcovr # # Sets ac_cv_check_gcov to yes if tooling is present # and reports the executables to the variables LCOV, GCOVR and GENHTML. AC_DEFUN([AC_TDD_GCOV], [ AC_ARG_ENABLE(gcov, AS_HELP_STRING([--enable-gcov], [enable coverage testing with gcov]), [use_gcov=$enableval], [use_gcov=no]) if test "x$use_gcov" = "xyes"; then # we need gcc: if test "$GCC" != "yes"; then AC_MSG_ERROR([GCC is required for --enable-gcov]) fi # Check if ccache is being used AC_CHECK_PROG(SHTOOL, shtool, shtool) case `$SHTOOL path $CC` in *ccache*[)] gcc_ccache=yes;; *[)] gcc_ccache=no;; esac if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then AC_MSG_ERROR([ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1.]) fi lcov_version_list="1.6 1.7 1.8 1.9" AC_CHECK_PROG(LCOV, lcov, lcov) AC_CHECK_PROG(GENHTML, genhtml, genhtml) if test "$LCOV"; then AC_CACHE_CHECK([for lcov version], glib_cv_lcov_version, [ glib_cv_lcov_version=invalid lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'` for lcov_check_version in $lcov_version_list; do if test "$lcov_version" = "$lcov_check_version"; then glib_cv_lcov_version="$lcov_check_version (ok)" fi done ]) else lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list" AC_MSG_ERROR([$lcov_msg]) fi case $glib_cv_lcov_version in ""|invalid[)] lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)." AC_MSG_ERROR([$lcov_msg]) LCOV="exit 0;" ;; esac if test -z "$GENHTML"; then AC_MSG_ERROR([Could not find genhtml from the lcov package]) fi ac_cv_check_gcov=yes ac_cv_check_lcov=yes # Remove all optimization flags from CFLAGS changequote({,}) CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'` changequote([,]) # Add the special gcc flags COVERAGE_CFLAGS="-O0 -fprofile-arcs -ftest-coverage" COVERAGE_CXXFLAGS="-O0 -fprofile-arcs -ftest-coverage" COVERAGE_LDFLAGS="-lgcov" # Check availability of gcovr AC_CHECK_PROG(GCOVR, gcovr, gcovr) if test -z "$GCOVR"; then ac_cv_check_gcovr=no else ac_cv_check_gcovr=yes fi fi ]) # AC_TDD_GCOV indicator-keyboard-0.0.0+14.04.20140410.1/deps/0000755000015301777760000000000012321546061020744 5ustar pbusernogroup00000000000000indicator-keyboard-0.0.0+14.04.20140410.1/deps/accountsservice.vapi0000644000015301777760000001423512321545543025036 0ustar pbusernogroup00000000000000/* accountsservice.vapi generated by vapigen, do not modify. */ [CCode (cprefix = "Act", gir_namespace = "AccountsService", gir_version = "1.0", lower_case_cprefix = "act_")] namespace Act { [CCode (cheader_filename = "act/act.h", type_id = "act_user_get_type ()")] public class User : GLib.Object { [CCode (has_construct_function = false)] protected User (); public int collate (Act.User user2); public Act.UserAccountType get_account_type (); public bool get_automatic_login (); public unowned string get_email (); public unowned string get_formats_locale (); public unowned string get_home_dir (); public unowned string get_icon_file (); public unowned GLib.Variant get_input_sources (); public unowned string get_language (); public unowned string get_location (); public bool get_locked (); public int get_login_frequency (); public unowned GLib.Variant get_login_history (); public int64 get_login_time (); public uint get_num_sessions (); public uint get_num_sessions_anywhere (); public unowned string get_object_path (); public unowned string get_password_hint (); public Act.UserPasswordMode get_password_mode (); public unowned string get_primary_session_id (); public unowned string get_real_name (); public unowned string get_shell (); public uint get_uid (); public unowned string get_user_name (); public unowned string get_x_session (); public bool is_local_account (); public bool is_logged_in (); public bool is_logged_in_anywhere (); public bool is_nonexistent (); public bool is_system_account (); public void set_account_type (Act.UserAccountType account_type); public void set_automatic_login (bool enabled); public void set_email (string email); public void set_formats_locale (string formats_locale); public void set_icon_file (string icon_file); public void set_input_sources (GLib.Variant sources); public void set_language (string language); public void set_location (string location); public void set_locked (bool locked); public void set_multiple_passwords (GLib.HashTable password_map); public void set_password (string password, string hint); public void set_password_mode (Act.UserPasswordMode password_mode); public void set_real_name (string real_name); public void set_user_name (string user_name); public void set_x_session (string x_session); public int account_type { get; } public bool automatic_login { get; } [NoAccessorMethod] public string background_file { owned get; } public string email { get; } public string formats_locale { get; } [NoAccessorMethod] public string home_directory { owned get; } public string icon_file { get; } public GLib.Variant input_sources { get; } [NoAccessorMethod] public bool is_loaded { get; } public string language { get; } [NoAccessorMethod] public bool local_account { get; } public string location { get; } public bool locked { get; } public int login_frequency { get; } public GLib.Variant login_history { get; } public int64 login_time { get; } [NoAccessorMethod] public bool nonexistent { get; } public string password_hint { get; } public int password_mode { get; } public string real_name { get; } public string shell { get; } [NoAccessorMethod] public bool system_account { get; } public int uid { get; } public string user_name { get; } public string x_session { get; } [NoAccessorMethod] public bool xhas_messages { get; } [CCode (array_length = false, array_null_terminated = true)] [NoAccessorMethod] public string[] xkeyboard_layouts { owned get; } public signal void changed (); public signal void sessions_changed (); } [CCode (cheader_filename = "act/act.h", type_id = "act_user_manager_get_type ()")] public class UserManager : GLib.Object { [CCode (has_construct_function = false)] protected UserManager (); public bool activate_user_session (Act.User user); public Act.User cache_user (string username) throws GLib.Error; public async Act.User cache_user_async (string username, GLib.Cancellable? cancellable) throws GLib.Error; public bool can_switch (); public Act.User create_user (string username, string fullname, Act.UserAccountType accounttype) throws GLib.Error; public async Act.User create_user_async (string username, string fullname, Act.UserAccountType accounttype, GLib.Cancellable? cancellable) throws GLib.Error; public bool delete_user (Act.User user, bool remove_files) throws GLib.Error; public async bool delete_user_async (Act.User user, bool remove_files, GLib.Cancellable? cancellable) throws GLib.Error; public static unowned Act.UserManager get_default (); public unowned Act.User get_user (string username); public unowned Act.User get_user_by_id (uint id); public bool goto_login_session (); public GLib.SList list_users (); public bool no_service (); public bool uncache_user (string username) throws GLib.Error; [NoAccessorMethod] public void* exclude_usernames_list { get; set; } [NoAccessorMethod] public bool has_multiple_users { get; } [NoAccessorMethod] public void* include_usernames_list { get; set; } [NoAccessorMethod] public bool is_loaded { get; } public virtual signal void user_added (Act.User user); public virtual signal void user_changed (Act.User user); public virtual signal void user_is_logged_in_changed (Act.User user); public virtual signal void user_removed (Act.User user); } [CCode (cheader_filename = "act/act.h", cprefix = "ACT_USER_ACCOUNT_TYPE_", type_id = "act_user_account_type_get_type ()")] public enum UserAccountType { STANDARD, ADMINISTRATOR } [CCode (cheader_filename = "act/act.h", cprefix = "ACT_USER_PASSWORD_MODE_", type_id = "act_user_password_mode_get_type ()")] public enum UserPasswordMode { REGULAR, SET_AT_LOGIN, NONE } [CCode (cheader_filename = "act/act.h", cprefix = "ACT_USER_PASSWORD_", type_id = "act_user_password_type_get_type ()")] public enum UserPasswordType { REGULAR, HINT, PIN } [CCode (cheader_filename = "act/act.h", cprefix = "ACT_USER_MANAGER_ERROR_")] public errordomain UserManagerError { FAILED, USER_EXISTS, USER_DOES_NOT_EXIST, PERMISSION_DENIED, NOT_SUPPORTED; public static GLib.Quark quark (); } } indicator-keyboard-0.0.0+14.04.20140410.1/deps/gnome-desktop-3.0.vapi0000644000015301777760000007071112321545543024711 0ustar pbusernogroup00000000000000/* gnome-desktop-3.0.vapi generated by vapigen, do not modify. */ [CCode (cprefix = "Gnome", gir_namespace = "GnomeDesktop", gir_version = "3.0", lower_case_cprefix = "gnome_")] namespace Gnome { [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_bg_get_type ()")] public class BG : GLib.Object { [CCode (has_construct_function = false)] public BG (); public bool changes_with_time (); public Gdk.Pixbuf create_frame_thumbnail (Gnome.DesktopThumbnailFactory factory, Gdk.Screen screen, int dest_width, int dest_height, int frame_num); public Cairo.Surface create_surface (Gdk.Window window, int width, int height, bool root); public Gdk.Pixbuf create_thumbnail (Gnome.DesktopThumbnailFactory factory, Gdk.Screen screen, int dest_width, int dest_height); public void draw (Gdk.Pixbuf dest, Gdk.Screen screen, bool is_root); public void get_color (GDesktop.BackgroundShading type, Gdk.Color primary, Gdk.Color secondary); public bool get_draw_background (); public unowned string get_filename (); public bool get_image_size (Gnome.DesktopThumbnailFactory factory, int best_width, int best_height, int width, int height); public GDesktop.BackgroundStyle get_placement (); public static Cairo.Surface get_surface_from_root (Gdk.Screen screen); public bool has_multiple_sizes (); public bool is_dark (int dest_width, int dest_height); public void load_from_preferences (GLib.Settings settings); public void save_to_preferences (GLib.Settings settings); public void set_color (GDesktop.BackgroundShading type, Gdk.Color primary, Gdk.Color secondary); public void set_draw_background (bool draw_background); public void set_filename (string filename); public void set_placement (GDesktop.BackgroundStyle placement); public static void set_surface_as_root (Gdk.Screen screen, Cairo.Surface surface); public static Gnome.BGCrossfade set_surface_as_root_with_crossfade (Gdk.Screen screen, Cairo.Surface surface); public signal void changed (); public signal void transitioned (); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_bg_crossfade_get_type ()")] public class BGCrossfade : GLib.Object { [CCode (has_construct_function = false)] public BGCrossfade (int width, int height); public bool is_started (); public bool set_end_surface (Cairo.Surface surface); public bool set_start_surface (Cairo.Surface surface); public void start (Gdk.Window window); public void stop (); [NoAccessorMethod] public int height { get; construct; } [NoAccessorMethod] public int width { get; construct; } public virtual signal void finished (GLib.Object window); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_bg_slide_show_get_type ()")] public class BGSlideShow : GLib.Object { [CCode (has_construct_function = false)] public BGSlideShow (string filename); public void get_current_slide (int width, int height, out double progress, out double duration, out bool is_fixed, out unowned string file1, out unowned string file2); public bool get_has_multiple_sizes (); public int get_num_slides (); public bool get_slide (int frame_number, int width, int height, double progress, out double duration, out bool is_fixed, out unowned string file1, out unowned string file2); public double get_start_time (); public double get_total_duration (); public bool load () throws GLib.Error; public async void load_async (GLib.Cancellable? cancellable); [NoAccessorMethod] public string filename { owned get; construct; } public bool has_multiple_sizes { get; } public double start_time { get; } public double total_duration { get; } } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_desktop_thumbnail_factory_get_type ()")] public class DesktopThumbnailFactory : GLib.Object { [CCode (has_construct_function = false)] public DesktopThumbnailFactory (Gnome.DesktopThumbnailSize size); public bool can_thumbnail (string uri, string mime_type, long mtime); public void create_failed_thumbnail (string uri, long mtime); public Gdk.Pixbuf generate_thumbnail (string uri, string mime_type); public bool has_valid_failed_thumbnail (string uri, long mtime); public string lookup (string uri, long mtime); public void save_thumbnail (Gdk.Pixbuf thumbnail, string uri, long original_mtime); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_idle_monitor_get_type ()")] public class IdleMonitor : GLib.Object, GLib.Initable { [CCode (has_construct_function = false)] public IdleMonitor (); public uint add_idle_watch (uint64 interval_msec, owned Gnome.IdleMonitorWatchFunc? callback); public uint add_user_active_watch (owned Gnome.IdleMonitorWatchFunc? callback); [CCode (has_construct_function = false)] public IdleMonitor.for_device (Gdk.Device device); public int64 get_idletime (); public void remove_watch (uint id); [NoAccessorMethod] public Gdk.Device device { owned get; construct; } } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_pnp_ids_get_type ()")] public class PnpIds : GLib.Object { [CCode (has_construct_function = false)] public PnpIds (); public string get_pnp_id (string pnp_id); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_rr_config_get_type ()")] public class RRConfig : GLib.Object { [CCode (has_construct_function = false)] protected RRConfig (); public bool applicable (Gnome.RRScreen screen) throws GLib.Error; public static bool apply_from_filename_with_time (Gnome.RRScreen screen, string filename, uint32 timestamp) throws GLib.Error; public bool apply_with_time (Gnome.RRScreen screen, uint32 timestamp) throws GLib.Error; [CCode (has_construct_function = false)] public RRConfig.current (Gnome.RRScreen screen) throws GLib.Error; public bool ensure_primary (); public bool equal (Gnome.RRConfig config2); public static string get_backup_filename (); public bool get_clone (); public static string get_intended_filename (); [CCode (array_length = false, array_null_terminated = true)] public unowned Gnome.RROutputInfo[] get_outputs (); public bool load_current () throws GLib.Error; public bool load_filename (string filename) throws GLib.Error; public bool match (Gnome.RRConfig config2); public void sanitize (); public bool save () throws GLib.Error; public void set_clone (bool clone); [CCode (has_construct_function = false)] public RRConfig.stored (Gnome.RRScreen screen) throws GLib.Error; public Gnome.RRScreen screen { construct; } } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gnome_rr_crtc_get_type ()")] [Compact] public class RRCrtc { public bool can_drive_output (Gnome.RROutput output); public Gnome.RRMode get_current_mode (); public Gnome.RRRotation get_current_rotation (); public bool get_gamma (int size, ushort red, ushort green, ushort blue); public uint32 get_id (); public void get_position (out int x, out int y); public Gnome.RRRotation get_rotations (); public bool set_config_with_time (uint32 timestamp, int x, int y, Gnome.RRMode mode, Gnome.RRRotation rotation, Gnome.RROutput outputs, int n_outputs) throws GLib.Error; public void set_gamma (int size, ushort red, ushort green, ushort blue); public bool supports_rotation (Gnome.RRRotation rotation); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gnome_rr_mode_get_type ()")] [Compact] public class RRMode { public int get_freq (); public uint get_height (); public uint32 get_id (); public uint get_width (); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gnome_rr_output_get_type ()")] [Compact] public class RROutput { public bool can_clone (Gnome.RROutput clone); public int get_backlight () throws GLib.Error; public int get_backlight_max (); public int get_backlight_min (); public unowned string get_connector_type (); public Gnome.RRCrtc get_crtc (); public Gnome.RRMode get_current_mode (); public unowned string get_display_name (); public uint8 get_edid_data (size_t size); public int get_height_mm (); public uint32 get_id (); public bool get_ids_from_edid (out string vendor, out int product, out int serial); public bool get_is_primary (); public unowned string get_name (); public void get_position (out int x, out int y); public Gnome.RRCrtc get_possible_crtcs (); public Gnome.RRMode get_preferred_mode (); public int get_size_inches (); public int get_width_mm (); public bool is_connected (); public bool is_laptop (); public Gnome.RRMode list_modes (); public bool set_backlight (int value) throws GLib.Error; public bool supports_mode (Gnome.RRMode mode); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_rr_output_info_get_type ()")] public class RROutputInfo : GLib.Object { [CCode (has_construct_function = false)] protected RROutputInfo (); public double get_aspect_ratio (); public unowned string get_display_name (); public void get_geometry (out int x, out int y, out int width, out int height); public unowned string get_name (); public int get_preferred_height (); public int get_preferred_width (); public bool get_primary (); public uint get_product (); public int get_refresh_rate (); public Gnome.RRRotation get_rotation (); public uint get_serial (); public void get_vendor ([CCode (array_length = false)] out unowned string[] vendor); public bool is_active (); public bool is_connected (); public void set_active (bool active); public void set_geometry (int x, int y, int width, int height); public void set_primary (bool primary); public void set_refresh_rate (int rate); public void set_rotation (Gnome.RRRotation rotation); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_rr_screen_get_type ()")] public class RRScreen : GLib.Object, GLib.Initable { [CCode (has_construct_function = false)] public RRScreen (Gdk.Screen screen) throws GLib.Error; public Gnome.RRMode create_clone_modes (); public unowned Gnome.RRCrtc get_crtc_by_id (uint32 id); public bool get_dpms_mode (out Gnome.RRDpmsMode mode) throws GLib.Error; public unowned Gnome.RROutput get_output_by_id (uint32 id); public unowned Gnome.RROutput get_output_by_name (string name); public void get_ranges (out int min_width, out int max_width, out int min_height, out int max_height); public void get_timestamps (out uint32 change_timestamp_ret, out uint32 config_timestamp_ret); [CCode (array_length = false, array_null_terminated = true)] public unowned Gnome.RRMode[] list_clone_modes (); [CCode (array_length = false, array_null_terminated = true)] public unowned Gnome.RRCrtc[] list_crtcs (); [CCode (array_length = false, array_null_terminated = true)] public unowned Gnome.RRMode[] list_modes (); [CCode (array_length = false, array_null_terminated = true)] public unowned Gnome.RROutput[] list_outputs (); public bool refresh () throws GLib.Error; public bool set_dpms_mode (Gnome.RRDpmsMode mode) throws GLib.Error; public void set_primary_output (Gnome.RROutput output); public void set_size (int width, int height, int mm_width, int mm_height); [NoAccessorMethod] public Gdk.Screen gdk_screen { owned get; construct; } public virtual signal void changed (); public virtual signal void output_connected (void* output); public virtual signal void output_disconnected (void* output); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_wall_clock_get_type ()")] public class WallClock : GLib.Object { [CCode (has_construct_function = false)] public WallClock (); public unowned string get_clock (); public unowned GLib.TimeZone get_timezone (); public string clock { get; } [NoAccessorMethod] public bool time_only { get; set; } public GLib.TimeZone timezone { get; } } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_xkb_info_get_type ()")] public class XkbInfo : GLib.Object { [CCode (has_construct_function = false)] public XkbInfo (); public unowned string description_for_group (string group_id); public unowned string description_for_option (string group_id, string id); public GLib.List get_all_layouts (); public GLib.List get_all_option_groups (); public bool get_layout_info (string id, out unowned string display_name, out unowned string short_name, out unowned string xkb_layout, out unowned string xkb_variant); public GLib.List get_layouts_for_country (string country_code); public GLib.List get_layouts_for_language (string language_code); public GLib.List get_options_for_group (string group_id); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_DESKTOP_THUMBNAIL_SIZE_", has_type_id = false)] public enum DesktopThumbnailSize { NORMAL, LARGE } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_RR_DPMS_", has_type_id = false)] public enum RRDpmsMode { ON, STANDBY, SUSPEND, OFF, DISABLED, UNKNOWN } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_RR_", has_type_id = false)] [Flags] public enum RRRotation { ROTATION_NEXT, ROTATION_0, ROTATION_90, ROTATION_180, ROTATION_270, REFLECT_X, REFLECT_Y } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_RR_ERROR_")] public errordomain RRError { UNKNOWN, NO_RANDR_EXTENSION, RANDR_ERROR, BOUNDS_ERROR, CRTC_ASSIGNMENT, NO_MATCHING_CONFIG, NO_DPMS_EXTENSION; public static GLib.Quark quark (); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", instance_pos = 2.9)] public delegate void IdleMonitorWatchFunc (Gnome.IdleMonitor monitor, uint id); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cname = "GNOME_RR_CONNECTOR_TYPE_PANEL")] public const string RR_CONNECTOR_TYPE_PANEL; [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static bool desktop_thumbnail_has_uri (Gdk.Pixbuf pixbuf, string uri); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static bool desktop_thumbnail_is_valid (Gdk.Pixbuf pixbuf, string uri, long mtime); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] [Deprecated (since = "2.22")] public static string desktop_thumbnail_md5 (string uri); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static string desktop_thumbnail_path_for_uri (string uri, Gnome.DesktopThumbnailSize size); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static Gdk.Pixbuf desktop_thumbnail_scale_down_pixbuf (Gdk.Pixbuf pixbuf, int dest_width, int dest_height); [CCode (array_length = false, array_null_terminated = true, cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static string[] get_all_languages (); [CCode (array_length = false, array_null_terminated = true, cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static string[] get_all_locales (); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static string get_country_from_code (string code, string? translation); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static string get_country_from_locale (string locale, string? translation); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static bool get_input_source_from_locale (string locale, out unowned string type, out unowned string id); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static string get_language_from_code (string code, string? translation); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static string get_language_from_locale (string locale, string? translation); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static bool language_has_translations (string code); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static string normalize_locale (string locale); [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")] public static bool parse_locale (string locale, out string language_codep, out string country_codep, out string codesetp, out string modifierp); } indicator-keyboard-0.0.0+14.04.20140410.1/deps/freetype2.vapi0000644000015301777760000000137212321545543023541 0ustar pbusernogroup00000000000000/* freetype2.vapi generated by vapigen, do not modify. */ [CCode (cprefix = "FT", gir_namespace = "freetype2", gir_version = "2.0", lower_case_cprefix = "FT_")] namespace FT { [CCode (cheader_filename = "freetype2-2.0.h", cname = "FT_Bitmap", has_type_id = false)] public struct Bitmap { } [CCode (cheader_filename = "freetype2-2.0.h", cname = "FT_Face", has_type_id = false)] public struct Face { } [CCode (cheader_filename = "freetype2-2.0.h", cname = "FT_Int32")] [SimpleType] public struct Int32 : int32 { } [CCode (cheader_filename = "freetype2-2.0.h", cname = "FT_Library", has_type_id = false)] public struct Library { } [CCode (cheader_filename = "freetype2-2.0.h", cname = "FT_Library_Version")] public static void library_version (); } indicator-keyboard-0.0.0+14.04.20140410.1/deps/Gkbd-3.0.metadata0000644000015301777760000000306512321545543023623 0ustar pbusernogroup00000000000000Configuration cheader_filename="libgnomekbd/gkbd-configuration.h" Indicator cheader_filename="libgnomekbd/gkbd-indicator.h" KeyboardDrawing cheader_filename="libgnomekbd/gkbd-keyboard-drawing.h" Status cheader_filename="libgnomekbd/gkbd-status.h" DesktopConfig cheader_filename="libgnomekbd/gkbd-desktop-config.h" IndicatorConfig cheader_filename="libgnomekbd/gkbd-indicator-config.h" KeyboardConfig cheader_filename="libgnomekbd/gkbd-keyboard-config.h" KeyboardDrawingDoodad cheader_filename="libgnomekbd/gkbd-keyboard-drawing.h" KeyboardDrawingGroupLevel cheader_filename="libgnomekbd/gkbd-keyboard-drawing.h" KeyboardDrawingItem cheader_filename="libgnomekbd/gkbd-keyboard-drawing.h" KeyboardDrawingKey cheader_filename="libgnomekbd/gkbd-keyboard-drawing.h" KeyboardDrawingRenderContext cheader_filename="libgnomekbd/gkbd-keyboard-drawing.h" KeyboardDrawingGroupLevelPosition cheader_filename="libgnomekbd/gkbd-keyboard-drawing.h" KeyboardDrawingItemType cheader_filename="libgnomekbd/gkbd-keyboard-drawing.h" DESKTOP_SCHEMA cheader_filename="libgnomekbd/gkbd-desktop-config.h" KEYBOARD_DRAWING_H cheader_filename="libgnomekbd/gkbd-keyboard-drawing.h" KEYBOARD_SCHEMA cheader_filename="libgnomekbd/gkbd-keyboard-config.h" install_glib_log_appender cheader_filename="libgnomekbd/gkbd-util.h" preview_load_position cheader_filename="libgnomekbd/gkbd-util.h" preview_save_position cheader_filename="libgnomekbd/gkbd-util.h" strv_append cheader_filename="libgnomekbd/gkbd-util.h" strv_behead cheader_filename="libgnomekbd/gkbd-util.h" strv_remove cheader_filename="libgnomekbd/gkbd-util.h" indicator-keyboard-0.0.0+14.04.20140410.1/deps/fontconfig.vapi0000644000015301777760000000073112321545543023766 0ustar pbusernogroup00000000000000/* fontconfig.vapi generated by vapigen, do not modify. */ [CCode (cprefix = "Fc", gir_namespace = "fontconfig", gir_version = "2.0", lower_case_cprefix = "fc_")] namespace Fc { [CCode (cheader_filename = "fontconfig-2.0.h", has_type_id = false)] public struct CharSet { } [CCode (cheader_filename = "fontconfig-2.0.h", has_type_id = false)] public struct Pattern { } [CCode (cheader_filename = "fontconfig-2.0.h", cname = "FcInit")] public static void init (); } indicator-keyboard-0.0.0+14.04.20140410.1/deps/pangoft2.vapi0000644000015301777760000000371612321545543023360 0ustar pbusernogroup00000000000000/* pangoft2.vapi generated by vapigen, do not modify. */ [CCode (cprefix = "PangoFT2", gir_namespace = "PangoFT2", gir_version = "1.0", lower_case_cprefix = "pango_ft2_")] namespace PangoFT2 { [CCode (cheader_filename = "pango/pangoft2.h", type_id = "pango_ft2_font_map_get_type ()")] public class FontMap : Pango.FontMap { [CCode (has_construct_function = false, type = "PangoFontMap*")] public FontMap (); public void set_default_substitute (owned PangoFT2.SubstituteFunc func); public void set_resolution (double dpi_x, double dpi_y); public void substitute_changed (); } [CCode (cheader_filename = "pango/pangoft2.h", has_target = false)] public delegate void SubstituteFunc (Fc.Pattern pattern, void* data); [CCode (cheader_filename = "pango/pangoft2.h")] public static int font_get_kerning (Pango.Font font, Pango.Glyph left, Pango.Glyph right); [CCode (cheader_filename = "pango/pangoft2.h")] public static Pango.Glyph get_unknown_glyph (Pango.Font font); [CCode (cheader_filename = "pango/pangoft2.h")] public static void render (FT.Bitmap bitmap, Pango.Font font, Pango.GlyphString glyphs, int x, int y); [CCode (cheader_filename = "pango/pangoft2.h")] public static void render_layout (FT.Bitmap bitmap, Pango.Layout layout, int x, int y); [CCode (cheader_filename = "pango/pangoft2.h")] public static void render_layout_line (FT.Bitmap bitmap, Pango.LayoutLine line, int x, int y); [CCode (cheader_filename = "pango/pangoft2.h")] public static void render_layout_line_subpixel (FT.Bitmap bitmap, Pango.LayoutLine line, int x, int y); [CCode (cheader_filename = "pango/pangoft2.h")] public static void render_layout_subpixel (FT.Bitmap bitmap, Pango.Layout layout, int x, int y); [CCode (cheader_filename = "pango/pangoft2.h")] public static void render_transformed (FT.Bitmap bitmap, Pango.Matrix matrix, Pango.Font font, Pango.GlyphString glyphs, int x, int y); [CCode (cheader_filename = "pango/pangoft2.h")] public static void shutdown_display (); } indicator-keyboard-0.0.0+14.04.20140410.1/deps/Xkl-1.0.metadata0000644000015301777760000000210412321545543023501 0ustar pbusernogroup00000000000000ConfigItem cheader_filename="libxklavier/xklavier.h" ConfigRec cheader_filename="libxklavier/xklavier.h" ConfigRegistry cheader_filename="libxklavier/xklavier.h" Engine cheader_filename="libxklavier/xklavier.h" State cheader_filename="libxklavier/xklavier.h" EngineFeatures cheader_filename="libxklavier/xklavier.h" EngineListenModes cheader_filename="libxklavier/xklavier.h" EngineStateChange cheader_filename="libxklavier/xklavier.h" ConfigItemProcessFunc cheader_filename="libxklavier/xklavier.h" TwoConfigItemsProcessFunc cheader_filename="libxklavier/xklavier.h" MAX_CI_DESC_LENGTH cheader_filename="libxklavier/xklavier.h" MAX_CI_NAME_LENGTH cheader_filename="libxklavier/xklavier.h" MAX_CI_SHORT_DESC_LENGTH cheader_filename="libxklavier/xklavier.h" get_country_name cheader_filename="libxklavier/xklavier.h" get_language_name cheader_filename="libxklavier/xklavier.h" get_last_error cheader_filename="libxklavier/xklavier.h" restore_names_prop cheader_filename="libxklavier/xklavier.h" set_debug_level cheader_filename="libxklavier/xklavier.h" Engine.filter_events.evt type="X.Event" indicator-keyboard-0.0.0+14.04.20140410.1/AUTHORS0000644000015301777760000000005012321545543021060 0ustar pbusernogroup00000000000000William Hua indicator-keyboard-0.0.0+14.04.20140410.1/README0000644000015301777760000000142712321545543020701 0ustar pbusernogroup00000000000000indicator-keyboard-icon-generator ================================= To refresh the keyboard layout icons, I usually enter the data directory and run: ./indicator-keyboard-icon-generator -i icon.svg.in -I icon-1.svg.in -o dark -c '#dfdbd2' ./indicator-keyboard-icon-generator -i icon.svg.in -I icon-1.svg.in -o light -c '#3c3c3c' ('#dfdbd2' and '#3c3c3c' are the colours for the dark and light themes.) Then I just copy the files in the dark and light directories to ubuntu-mono-dark/status/22 and ubuntu-mono-light/status/22 in the ubuntu-themes source package. data/icon.svg.in and data/icon-1.svg.in are template files for the un-subscripted and subscripted icons. Parameters can be tweaked on the command line for the generator: './indicator-keyboard-icon-generator -?' for details.