public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Peng Huang <phuang@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/ibus] autotool: Update ibus-HEAD.patch to fix numlock problem
Date: Sun, 31 May 2026 02:04:26 GMT	[thread overview]
Message-ID: <178019306653.1.7483630388023508518.rpms-ibus-4474c8ecd542@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/ibus
Branch : autotool
Commit : 4474c8ecd542925a1f815f216043ea58adff883a
Author : Peng Huang <phuang@fedoraproject.org>
Date   : 2009-08-10T02:19:01+00:00
Stats  : +46/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/ibus/c/4474c8ecd542925a1f815f216043ea58adff883a?branch=autotool

Log:
Update ibus-HEAD.patch to fix numlock problem

---
diff --git a/ibus-HEAD.patch b/ibus-HEAD.patch
index 88eca00..2551e6c 100644
--- a/ibus-HEAD.patch
+++ b/ibus-HEAD.patch
@@ -1,3 +1,15 @@
+diff --git a/bus/ibusimpl.c b/bus/ibusimpl.c
+index 120277f..e841c28 100644
+--- a/bus/ibusimpl.c
++++ b/bus/ibusimpl.c
+@@ -1179,7 +1179,6 @@ bus_ibus_impl_ibus_message (BusIBusImpl     *ibus,
+     ibus_message_set_destination (message, DBUS_SERVICE_DBUS);
+ 
+     if (ibus_message_get_type (message) == DBUS_MESSAGE_TYPE_METHOD_CALL) {
+-        g_debug ("Member = %s", ibus_message_get_member (message));
+         for (i = 0; handlers[i].interface != NULL; i++) {
+             if (ibus_message_is_method_call (message,
+                                              handlers[i].interface,
 diff --git a/client/gtk2/ibusimcontext.c b/client/gtk2/ibusimcontext.c
 index 68a77d8..d914eae 100644
 --- a/client/gtk2/ibusimcontext.c
@@ -28,3 +40,32 @@ index 68a77d8..d914eae 100644
      }
  }
  
+diff --git a/src/ibuskeymap.c b/src/ibuskeymap.c
+index 9f59c73..b248e18 100644
+--- a/src/ibuskeymap.c
++++ b/src/ibuskeymap.c
+@@ -78,11 +78,8 @@ ibus_keymap_init (IBusKeymap *keymap)
+     gint i, j;
+ 
+     keymap->name = NULL;
+-
+-    for (i = 0; i < 256; i++) {
+-        for (j = 0; j < 5; j++) {
+-            keymap->keymap[i][j] = IBUS_VoidSymbol;
+-        }
++    for (i = 0; i < sizeof (keymap->keymap) / sizeof (guint); i++) {
++        ((guint *)keymap->keymap)[i] = IBUS_VoidSymbol;
+     }
+ }
+ 
+@@ -306,8 +303,9 @@ ibus_keymap_lookup_keysym (IBusKeymap *keymap,
+ 
+     if (keycode < 256) {
+         /* numlock */
+-        if (state & IBUS_MOD2_MASK && keymap->keymap[keycode][6] != IBUS_VoidSymbol)
++        if ((state & IBUS_MOD2_MASK) && (keymap->keymap[keycode][6] != IBUS_VoidSymbol)) {
+             return keymap->keymap[keycode][6];
++        }
+ 
+         state &= IBUS_SHIFT_MASK | IBUS_LOCK_MASK | IBUS_MOD5_MASK;
+ 

diff --git a/ibus.spec b/ibus.spec
index 8175d1b..75ecd2b 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -8,7 +8,7 @@
 
 Name:       ibus
 Version:    1.2.0.20090807
-Release:    2%{?dist}
+Release:    3%{?dist}
 Summary:    Intelligent Input Bus for Linux OS
 License:    LGPLv2+
 Group:      System Environment/Libraries
@@ -228,6 +228,10 @@ fi
 %{_datadir}/gtk-doc/html/*
 
 %changelog
+* Mon Aug 10 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.2.0.20090807-3
+- Update ibus-HEAD.patch
+- Fix Numlock problem.
+
 * Fri Aug 07 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.2.0.20090807-2
 - Update ibus-HEAD.patch
 - Fix bug 516154.

                 reply	other threads:[~2026-05-31  2:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178019306653.1.7483630388023508518.rpms-ibus-4474c8ecd542@fedoraproject.org \
    --to=phuang@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox