[packages/ibus] - updated to 1.4.99.20121109 - updated xkb patch - removed obsolete HEAD patch
qboosh
qboosh at pld-linux.org
Sat Nov 17 20:02:19 CET 2012
commit 83223d0564361b67b37992a833a7f4171d2183c9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Nov 17 20:02:19 2012 +0100
- updated to 1.4.99.20121109
- updated xkb patch
- removed obsolete HEAD patch
ibus-541492-xkb.patch | 88 +++++++++++++++++++++++++--------------------------
ibus-HEAD.patch | 53 -------------------------------
ibus.spec | 18 +++++------
3 files changed, 51 insertions(+), 108 deletions(-)
---
diff --git a/ibus.spec b/ibus.spec
index a8d78a4..edcc110 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -8,20 +8,19 @@
Summary: Intelligent Input Bus for Linux OS
Summary(pl.UTF-8): IBus - inteligentna szyna wejściowa dla Linuksa
Name: ibus
-Version: 1.4.99.20121006
+Version: 1.4.99.20121109
Release: 1
License: LGPL v2+
Group: Libraries
#Source0Download: http://code.google.com/p/ibus/downloads/list
Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5: 28b26c84f021a0c15023d6326d4ad58e
+# Source0-md5: be482479357210283e91a47f43a0a0fe
Source1: %{name}.xinputd
-Patch0: %{name}-HEAD.patch
-Patch1: %{name}-810211-no-switch-by-no-trigger.patch
-Patch2: %{name}-541492-xkb.patch
-Patch3: %{name}-530711-preload-sys.patch
-Patch4: %{name}-xx-setup-frequent-lang.patch
-Patch5: %{name}-xx-no-use.diff
+Patch0: %{name}-810211-no-switch-by-no-trigger.patch
+Patch1: %{name}-541492-xkb.patch
+Patch2: %{name}-530711-preload-sys.patch
+Patch3: %{name}-xx-setup-frequent-lang.patch
+Patch4: %{name}-xx-no-use.diff
URL: http://code.google.com/p/ibus/
BuildRequires: GConf2-devel >= 2.12
BuildRequires: atk-devel
@@ -197,12 +196,11 @@ Bashowe dopełnianie parametrów dla poleceń ibus.
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
%{__rm} bindings/vala/ibus-1.0.vapi
+%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
-%patch5 -p1
%build
%{__libtoolize}
diff --git a/ibus-541492-xkb.patch b/ibus-541492-xkb.patch
index eda3e61..bff737b 100644
--- a/ibus-541492-xkb.patch
+++ b/ibus-541492-xkb.patch
@@ -2708,8 +2708,8 @@ index 5ff0c65..bfe560c 100644
}
diff --git a/ui/gtk3/panel.vala b/ui/gtk3/panel.vala
index 40079ec..8e6f756 100644
---- a/ui/gtk3/panel.vala
-+++ b/ui/gtk3/panel.vala
+--- ibus-1.4.99.20121109/ui/gtk3/panel.vala.orig 2012-11-09 07:16:19.000000000 +0100
++++ ibus-1.4.99.20121109/ui/gtk3/panel.vala 2012-11-17 19:22:03.176142457 +0100
@@ -21,6 +21,20 @@
*/
@@ -2731,10 +2731,10 @@ index 40079ec..8e6f756 100644
private IBus.Bus m_bus;
private IBus.Config m_config;
private Gtk.StatusIcon m_status_icon;
-@@ -33,10 +47,17 @@ class Panel : IBus.PanelService {
- private GLib.Pid m_setup_pid = 0;
+@@ -34,10 +48,17 @@
private Gtk.AboutDialog m_about_dialog;
private Gtk.CssProvider m_css_provider;
+ private int m_switcher_delay_time = 400;
+ private GkbdLayout m_gkbdlayout = null;
+ private XKBLayout m_xkblayout = null;
+ private string[] m_layouts = {};
@@ -2751,15 +2751,15 @@ index 40079ec..8e6f756 100644
public Panel(IBus.Bus bus) {
GLib.assert(bus.is_connected());
-@@ -59,7 +80,6 @@ class Panel : IBus.PanelService {
+@@ -60,7 +81,6 @@
m_candidate_panel.page_down.connect((w) => this.page_down());
m_switcher = new Switcher();
- bind_switch_shortcut();
- m_property_manager = new PropertyManager();
- m_property_manager.property_activate.connect((k, s) => {
-@@ -71,64 +91,135 @@ class Panel : IBus.PanelService {
+ if (m_switcher_delay_time >= 0) {
+ m_switcher.set_popup_delay_time((uint) m_switcher_delay_time);
+@@ -76,64 +96,135 @@
~Panel() {
unbind_switch_shortcut();
@@ -2826,15 +2826,15 @@ index 40079ec..8e6f756 100644
+ switch_modifiers,
+ reverse);
+ m_keybindings.append(keybinding);
-
-- // accelerator already has Shift mask
-- if ((m_switch_modifiers & Gdk.ModifierType.SHIFT_MASK) != 0)
-- return;
++
+ keybinding_manager.bind(switch_keysym, switch_modifiers,
+ (e, _reverse) => handle_engine_switch(e, _reverse),
+ reverse);
+ }
-+
+
+- // accelerator already has Shift mask
+- if ((m_switch_modifiers & Gdk.ModifierType.SHIFT_MASK) != 0)
+- return;
+ // ToDo: Customize the input method with ibus-setup
+ private void bind_switch_shortcut() {
+ string locale = GLib.Intl.setlocale(GLib.LocaleCategory.ALL,
@@ -2845,7 +2845,10 @@ index 40079ec..8e6f756 100644
+
+ string[] ACCELERATOR_IME_HOTKEYS = {};
+ ACCELERATOR_IME_HOTKEYS += ACCELERATOR_SWITCH_IME_FOREWARD;
-+
+
+- keybinding_manager.bind(m_switch_keysym,
+- m_switch_modifiers | Gdk.ModifierType.SHIFT_MASK,
+- (e) => handle_engine_switch(e, true));
+ if (m_config != null) {
+ GLib.Variant variant = m_config.get_value("general/hotkey",
+ "trigger_accel");
@@ -2879,10 +2882,7 @@ index 40079ec..8e6f756 100644
+
+ ACCELERATOR_IME_HOTKEYS = {};
+ ACCELERATOR_IME_HOTKEYS += ACCELERATOR_SWITCH_IME_BACKWARD;
-
-- keybinding_manager.bind(m_switch_keysym,
-- m_switch_modifiers | Gdk.ModifierType.SHIFT_MASK,
-- (e) => handle_engine_switch(e, true));
++
+ if (m_config != null) {
+ GLib.Variant variant = m_config.get_value("general/hotkey",
+ "trigger_accel_backward");
@@ -2924,7 +2924,7 @@ index 40079ec..8e6f756 100644
}
private void set_custom_font() {
-@@ -196,12 +287,16 @@ class Panel : IBus.PanelService {
+@@ -220,13 +311,17 @@
}
m_config = config;
@@ -2933,6 +2933,7 @@ index 40079ec..8e6f756 100644
m_config.value_changed.connect(config_value_changed_cb);
m_config.watch("general", "preload_engines");
m_config.watch("general", "engines_order");
+ m_config.watch("general", "switcher_delay_time");
+ m_config.watch("general/hotkey", "trigger_accel");
+ m_config.watch("general/hotkey", "trigger_accel_backward");
m_config.watch("panel", "custom_font");
@@ -2940,9 +2941,9 @@ index 40079ec..8e6f756 100644
+ init_engines_order();
update_engines(m_config.get_value("general", "preload_engines"),
m_config.get_value("general", "engines_order"));
- } else {
-@@ -211,6 +306,192 @@ class Panel : IBus.PanelService {
- set_custom_font();
+ set_switcher_delay_time(null);
+@@ -282,6 +377,192 @@
+ }
}
+ private void gkbdlayout_changed_cb() {
@@ -3134,24 +3135,16 @@ index 40079ec..8e6f756 100644
private void switch_engine(int i, bool force = false) {
GLib.assert(i >= 0 && i < m_engines.length);
-@@ -225,15 +506,7 @@ class Panel : IBus.PanelService {
+@@ -296,7 +577,7 @@
return;
}
// set xkb layout
-- string cmdline = "setxkbmap %s".printf(engine.get_layout());
-- try {
-- if (!GLib.Process.spawn_command_line_sync(cmdline)) {
-- warning("Switch xkb layout to %s failed.",
-- engine.get_layout());
-- }
-- } catch (GLib.SpawnError e) {
-- warning("Execute setxkbmap failed: %s", e.message);
-- }
+- exec_setxkbmap(engine);
+ set_layout(engine.get_layout());
}
private void config_value_changed_cb(IBus.Config config,
-@@ -245,6 +518,13 @@ class Panel : IBus.PanelService {
+@@ -308,6 +589,13 @@
return;
}
@@ -3165,9 +3158,9 @@ index 40079ec..8e6f756 100644
if (section == "panel" && (name == "custom_font" ||
name == "use_custom_font")) {
set_custom_font();
-@@ -264,8 +544,7 @@ class Panel : IBus.PanelService {
+@@ -331,8 +619,7 @@
event, primary_modifiers);
- if (pressed) {
+ if (pressed && m_switcher_delay_time >= 0) {
int i = revert ? m_engines.length - 1 : 1;
- i = m_switcher.run(m_switch_keysym, m_switch_modifiers, event,
- m_engines, i);
@@ -3177,9 +3170,9 @@ index 40079ec..8e6f756 100644
} else {
diff --git a/ui/gtk3/switcher.vala b/ui/gtk3/switcher.vala
index ab2040b..dff5c96 100644
---- a/ui/gtk3/switcher.vala
-+++ b/ui/gtk3/switcher.vala
-@@ -63,13 +63,26 @@ class Switcher : Gtk.Window {
+--- ibus-1.4.99.20121109/ui/gtk3/switcher.vala.orig 2012-11-17 19:05:59.422829209 +0100
++++ ibus-1.4.99.20121109/ui/gtk3/switcher.vala 2012-11-17 19:23:40.539473761 +0100
+@@ -63,13 +63,26 @@
public string longname { get; set; }
}
@@ -3208,7 +3201,7 @@ index ab2040b..dff5c96 100644
private Gdk.ModifierType m_primary_modifier;
private GLib.MainLoop m_loop;
private int m_result;
-@@ -105,19 +118,17 @@ class Switcher : Gtk.Window {
+@@ -109,19 +122,17 @@
grab_focus();
}
@@ -3231,19 +3224,19 @@ index ab2040b..dff5c96 100644
update_engines(engines);
/* Let gtk recalculate the window size. */
-@@ -305,23 +316,25 @@ class Switcher : Gtk.Window {
+@@ -328,27 +339,29 @@
public override bool key_press_event(Gdk.EventKey e) {
bool retval = true;
Gdk.EventKey *pe = &e;
+ uint modifiers = KeybindingManager.MODIFIER_FILTER & pe->state;
+ if (m_popup_delay_time > 0) {
+ restore_window_position("pressed");
+ }
+
- do {
- uint modifiers = KeybindingManager.MODIFIER_FILTER & pe->state;
-+ for (unowned GLib.List<Keybinding> keybindings = m_keybindings;
-+ keybindings != null;
-+ keybindings = keybindings.next) {
-+ Keybinding keybinding = keybindings.data;
-
+-
- if ((modifiers != m_modifiers) &&
- (modifiers != (m_modifiers | Gdk.ModifierType.SHIFT_MASK))) {
- break;
@@ -3251,6 +3244,11 @@ index ab2040b..dff5c96 100644
-
- if (pe->keyval == m_keyval) {
- if (modifiers == m_modifiers)
++ for (unowned GLib.List<Keybinding> keybindings = m_keybindings;
++ keybindings != null;
++ keybindings = keybindings.next) {
++ Keybinding keybinding = keybindings.data;
++
+ if (pe->keyval == keybinding.keysym &&
+ modifiers == (uint) keybinding.modifiers) {
+ if (!keybinding.reverse) {
diff --git a/ibus-HEAD.patch b/ibus-HEAD.patch
deleted file mode 100644
index 14dda9a..0000000
--- a/ibus-HEAD.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From f0fa7254fb1326489daa88ffed6af6d48cad49d0 Mon Sep 17 00:00:00 2001
-From: fujiwarat <takao.fujiwara1 at gmail.com>
-Date: Thu, 11 Oct 2012 16:04:38 +0900
-Subject: [PATCH] Fix typo in data/dconf/profile/ibus
-
-http://git.gnome.org/browse/gdm/commit/?id=aa25b559c6e907485cc9e
-I copied the typo by mitake. dconf_engine_source_new() supports
-"user-db" or "system-db".
-http://git.gnome.org/browse/dconf/tree/engine/dconf-engine-source.c#n75
----
- data/dconf/profile/ibus | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/data/dconf/profile/ibus b/data/dconf/profile/ibus
-index 1d3fc5f..aa8fe5f 100644
---- a/data/dconf/profile/ibus
-+++ b/data/dconf/profile/ibus
-@@ -1,2 +1,2 @@
- user-db:user
--systemd-db:ibus
-+system-db:ibus
---
-1.7.10.4
-
-From 065ad6c44a665526796dffe91ac7c2ebd83ecd71 Mon Sep 17 00:00:00 2001
-From: fujiwarat <takao.fujiwara1 at gmail.com>
-Date: Thu, 11 Oct 2012 16:43:06 +0900
-Subject: [PATCH] Fix fallback 'C' locale in ibus-setup.
-
----
- setup/main.py | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/setup/main.py b/setup/main.py
-index 8a2391d..81e4301 100644
---- a/setup/main.py
-+++ b/setup/main.py
-@@ -548,7 +548,11 @@ class Setup(object):
- Gtk.main()
-
- if __name__ == "__main__":
-- locale.setlocale(locale.LC_ALL, '')
-+ try:
-+ locale.setlocale(locale.LC_ALL, '')
-+ except locale.Error:
-+ print >> sys.stderr, "IBUS-WARNING **: Using the fallback 'C' locale"
-+ locale.setlocale(locale.LC_ALL, 'C')
- i18n_init()
- setup = Setup()
- setup.run()
---
-1.7.10.4
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ibus.git/commitdiff/83223d0564361b67b37992a833a7f4171d2183c9
More information about the pld-cvs-commit
mailing list