diff --git a/ibus-anthy-xx-icon-symbol.patch b/ibus-anthy-xx-icon-symbol.patch index 13b7914..75d0558 100644 --- a/ibus-anthy-xx-icon-symbol.patch +++ b/ibus-anthy-xx-icon-symbol.patch @@ -1,27 +1,6 @@ ---- ibus-anthy-1.2.4/engine/anthy.xml.in.in.orig 2011-06-21 18:24:39.000000000 +0900 -+++ ibus-anthy-1.2.4/engine/anthy.xml.in.in 2011-06-22 12:56:29.000000000 +0900 -@@ -22,6 +22,8 @@ - Anthy - Anthy Input Method - 99 -+ @HOTKEYS@ -+ @ICON_SYMBOL@ - - - ---- ibus-anthy-1.2.4/engine/engine.py.orig 2011-06-22 13:16:30.000000000 +0900 -+++ ibus-anthy-1.2.4/engine/engine.py 2011-06-22 13:16:35.000000000 +0900 -@@ -626,6 +626,7 @@ class Engine(ibus.EngineBase): - self.__input_mode = mode - prop = self.__prop_dict[u"InputMode"] - prop.label = label -+ self.set_icon_symbol(label) - self.update_property(prop) - - self.__reset() --- ibus-anthy-1.2.4/configure.ac.orig 2011-06-21 18:25:58.000000000 +0900 -+++ ibus-anthy-1.2.4/configure.ac 2011-06-22 13:14:26.000000000 +0900 -@@ -122,6 +122,36 @@ AC_ARG_WITH(kasumi-icon, ++++ ibus-anthy-1.2.4/configure.ac 2011-06-30 18:10:50.000000000 +0900 +@@ -122,6 +122,37 @@ AC_ARG_WITH(kasumi-icon, [KASUMI_ICON_FILE="$datadir/pixmaps/kasumi.png"]) AC_SUBST(KASUMI_ICON_FILE) @@ -43,22 +22,23 @@ +fi +AC_SUBST(HOTKEYS) + -+ICON_SYMBOL_TEST="import ibus ++SYMBOL_TEST="import ibus +engine = ibus.EngineDesc('test') -+print hasattr(engine, 'icon_symbol') ++exit(not hasattr(engine, 'symbol')) +" -+HAS_ICON_SYMBOL=`$PYTHON -c "$ICON_SYMBOL_TEST"` -+if test x"$HAS_ICON_SYMBOL" = x"True"; then -+ ICON_SYMBOL="" ++$PYTHON -c "$SYMBOL_TEST" ++if test $? -eq 0; then ++ SYMBOL="\xe3\x81\x82" +else -+ ICON_SYMBOL="" ++ SYMBOL="" +fi -+AC_SUBST(ICON_SYMBOL) ++SYMBOL=`printf "$SYMBOL"` ++AC_SUBST(SYMBOL) + dnl - define GETTEXT_* variables GETTEXT_PACKAGE=ibus-anthy AC_SUBST(GETTEXT_PACKAGE) -@@ -146,3 +176,15 @@ m4/Makefile +@@ -146,3 +177,15 @@ m4/Makefile ]) AC_OUTPUT @@ -72,5 +52,16 @@ +KASUMI_EXEC_FILE $KASUMI_EXEC_FILE +KASUMI_ICON_FILE $KASUMI_ICON_FILE +HOTKEYS $HOTKEYS -+ICON_SYMBOL $ICON_SYMBOL ++SYMBOL $SYMBOL +" +--- ibus-anthy-1.2.4/engine/anthy.xml.in.in.orig 2011-06-21 18:24:39.000000000 +0900 ++++ ibus-anthy-1.2.4/engine/anthy.xml.in.in 2011-06-30 17:37:45.000000000 +0900 +@@ -22,6 +22,8 @@ + Anthy + Anthy Input Method + 99 ++ @HOTKEYS@ ++ @SYMBOL@ + + +