diff options
Diffstat (limited to 'app-i18n/fcitx-configtool/files/fcitx-configtool-0.2.0-fix-gtk.patch')
-rw-r--r-- | app-i18n/fcitx-configtool/files/fcitx-configtool-0.2.0-fix-gtk.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app-i18n/fcitx-configtool/files/fcitx-configtool-0.2.0-fix-gtk.patch b/app-i18n/fcitx-configtool/files/fcitx-configtool-0.2.0-fix-gtk.patch new file mode 100644 index 000000000000..c117fce51a1f --- /dev/null +++ b/app-i18n/fcitx-configtool/files/fcitx-configtool-0.2.0-fix-gtk.patch @@ -0,0 +1,31 @@ +--- fcitx-configtool-0.2.0/gtk/keygrab.c 2010-12-17 14:16:14.000000000 +0800 ++++ fcitx-configtool-0.2.0-patched/gtk/keygrab.c 2010-12-18 18:24:33.345000017 +0800 +@@ -101,10 +101,10 @@ + guint key; + GdkModifierType mods = event->state & gtk_accelerator_get_default_mod_mask(); + +- if ((event->keyval == GDK_KEY_Escape +- || event->keyval == GDK_KEY_Return) && !mods) ++ if ((event->keyval == GDK_Escape ++ || event->keyval == GDK_Return) && !mods) + { +- if (event->keyval == GDK_KEY_Escape) ++ if (event->keyval == GDK_Escape) + gtk_signal_emit_by_name(GTK_OBJECT(b), "changed", b->key, b->mods); + end_key_grab(b); + keygrab_button_set_key(b, 0, 0); +@@ -112,11 +112,11 @@ + } + + key = gdk_keyval_to_upper(event->keyval); +- if (key == GDK_KEY_ISO_Left_Tab) +- key = GDK_KEY_Tab; ++ if (key == GDK_ISO_Left_Tab) ++ key = GDK_Tab; + + if (gtk_accelerator_valid(key, mods) +- || (key == GDK_KEY_Tab && mods)) ++ || (key == GDK_Tab && mods)) + { + keygrab_button_set_key(b, key, mods); + end_key_grab(b); |